Displaying 3 results from an estimated 3 matches for "bm_newpage".
2017 Feb 20
2
[FORGED] Re: Replaying a recorded plot (mixed base and grid) from pdf() in cairo_pdf() crashes R
Hi
This appears to be happening (at least) because cairo_pdf() delays
initialising a Cairo surface until BM_NewPage(), rather than
initiliasing a Cairo surface in BM_Open(), and replayPlot() triggers
some activity (set clip region) on the device BEFORE a new page is
started (so the pointer to the Cairo surface is null, so BOOM).
Not sure yet whether to blame replayPlot() for not starting with a new
page ope...
2017 Feb 21
0
[FORGED] Re: Replaying a recorded plot (mixed base and grid) from pdf() in cairo_pdf() crashes R
...anyone else seeing that ?
I would appreciate confirmation from a heavier user of cairo_pdf() that
I have not broken anything.
Paul
On 21/02/17 08:27, Paul Murrell wrote:
> Hi
>
> This appears to be happening (at least) because cairo_pdf() delays
> initialising a Cairo surface until BM_NewPage(), rather than
> initiliasing a Cairo surface in BM_Open(), and replayPlot() triggers
> some activity (set clip region) on the device BEFORE a new page is
> started (so the pointer to the Cairo surface is null, so BOOM).
>
> Not sure yet whether to blame replayPlot() for not starting...
2017 Feb 20
3
Replaying a recorded plot (mixed base and grid) from pdf() in cairo_pdf() crashes R
Hi,
I wonder if this is expected or I'm doing a wrong thing.
pdf()
dev.control('enable')
library("grid")
plot(1)
grid.text("A")
res = recordPlot()
dev.off()
cairo_pdf()
replayPlot(res)
dev.off()
*** caught segfault ***
address 0x4, cause 'memory not mapped'
> sessionInfo()
R version 3.3.2 (2016-10-31)
Platform: x86_64-apple-darwin13.4.0 (64-bit)