-
Notifications
You must be signed in to change notification settings - Fork 33
R session crash associated with graphic device in makePNG() called from within makeDisplay() #157
Copy link
Copy link
Open
Description
The following code crashes R 3.4.1 on my Windows machine:
library(datadr)
library(trelliscope)
# set up viz database
conn <- vdbConn("vdb", name = "Example")
data(iris)
div <- divide(iris, by = "Species")
# create panel function
exPanel <- function(data) {
hist(data$Sepal.Length)
return(NULL)
}
# make display
makeDisplay(div,
name = "foo",
desc = "bar",
panelFn = exPanel)
Debugging with Visual Studio, the error I get is
Unhandled exception at 0x0000000300000002 in rsession.exe: 0xC0000005: Access violation at location 0x0000000300000002.
It looks like it happens right after a call to grDevices.dll!000000006fc827ef(); stepping through makeDisplay(), it appears that the issue arises from the following call:
suppressMessages(makePNG(datadr::kvExample(data), panelFn = panelFn,
file = file.path(tempPrefix, "thumb.png"), width = width,
height = height, lims = lims))
And specifically, the following call within makePNG()
tmp <- datadr::kvApply(dat, panelFn)$value
I changed my .Renviron file to point my temp path to the same drive/partition as where the vdb is located, but to no avail. Any help would be appreciated.
Session info:
R version 3.4.1 (2017-06-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] trelliscope_0.9.8 datadr_0.8.6
loaded via a namespace (and not attached):
[1] Rcpp_0.12.12 bindr_0.1 magrittr_1.5 munsell_0.4.3 xtable_1.8-2
[6] colorspace_1.3-2 lattice_0.20-35 R6_2.2.2 jpeg_0.1-8 rlang_0.1.2
[11] plyr_1.8.4 dplyr_0.7.2 tools_3.4.1 parallel_3.4.1 grid_3.4.1
[16] data.table_1.10.4 gtable_0.2.0 png_0.1-7 htmltools_0.3.6 lazyeval_0.2.0
[21] assertthat_0.2.0 digest_0.6.12 tibble_1.3.4 bindrcpp_0.2 shiny_1.0.5
[26] ggplot2_2.2.1 htmlwidgets_0.9 DistributionUtils_0.5-1 base64enc_0.1-3 codetools_0.2-15
[31] rsconnect_0.8.5 curl_2.8.1 mime_0.5 glue_1.1.1 compiler_3.4.1
[36] scales_0.5.0 jsonlite_1.5 httpuv_1.3.5 hexbin_1.27.1 pkgconfig_2.0.1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels