Bug 15980 - Hard crash while using cairo_pdf on Windows
Summary: Hard crash while using cairo_pdf on Windows
Status: NEW
Alias: None
Product: R
Classification: Unclassified
Component: Graphics (show other bugs)
Version: R 3.1.1
Hardware: x86_64/x64/amd64 (64-bit) Windows 64-bit
: P5 normal
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2014-09-15 23:32 UTC by Kevin Wright
Modified: 2017-03-16 16:39 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Wright 2014-09-15 23:32:09 UTC
Using the standard build of R for Windows (from CRAN), this minimal example causes a hard crash for me.  Also causes a crash on R 2.15.1.

cairo_pdf("test.pdf")
strheight("A",units="in")


My setup:

R> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252 
[2] LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base
Comment 1 Simon Chenery 2016-04-25 17:23:30 UTC
Still crashes R in version 3.2.5. My setup:

> sessionInfo()
R version 3.2.5 (2016-04-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8.1 x64 (build 9600)

locale:
[1] LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252
[3] LC_MONETARY=English_Australia.1252 LC_NUMERIC=C           
[5] LC_TIME=English_Australia.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base
Comment 2 Mikko Korpela 2017-03-16 16:39:39 UTC
Seems to be working in the 2017-03-16 r72357 development snapshot of R (64 bit binary build for Windows). Tested on Wine (Linux), where I could also reproduce the crash with R 3.3.3.

This was probably fixed in R-devel r72242. Related mailing list thread:
https://stat.ethz.ch/pipermail/r-devel/2017-February/073779.html

From the SVN log:

r72242 | murrell | 2017-02-22 01:27:51 +0200 (Wed, 22 Feb 2017) | 1 line

cairo_pdf() and svg() and cairo_ps() all now initialize a device on dev_Open() rather than waiting until dev_NewPage() to avoid problems replaying display list.  Reported by Yihui Xie