-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tikzDevice + R 4.1.0 +ggplot2 = segfault address (nil), cause 'memory not mapped' #212
Comments
|
That is expected since the graphics API has changed. Which version of tikzDevice did you use before? |
I installed with devtools the master branch and I got the same issue with R version 4.1.0. With the previous version (R 4.0.5) I constructed succesfully the master branch. I need the master branch in order to use knitr + tikzDevice using child documents and cutom *.cls classes.
|
Installing the package from the cran repository seems to work but I can't build from the repository correctly. I tried to buid the package with the following options:
The 3 options get the same result when I run a .Rnw with tikzplots:
|
I'm facing the same issue. The first function will run and the second fails, so I suspect there is something wrong with ggplot2? tikzDevice::tikz("example.tex"); plot(mtcars[["mpg"]]); dev.off()
tikzDevice::tikz("example2.tex"); ggplot2::qplot(mtcars[["mpg"]]); dev.off() This, however does work!! tikzDevice::tikz("example2.tex"); plot(cowplot::as_grob(ggplot2::qplot(mtcars[["mpg"]]))); dev.off() |
I have finally merged PR #206 which should fix this issue. Can you please recheck? |
My comment works for me! That's fantastic, thanks @rstub |
Seg fault.
lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.2 LTS Release: 20.04 Codename: focal
`R
R version 4.1.0 (2021-05-18) -- "Camp Pontanezen"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
[Previously saved workspace restored]
*** caught segfault ***
address (nil), cause 'memory not mapped'
Traceback:
1: .setMask(NULL, NULL)
2: resolveMask.NULL(NULL)
3: (function (path) { UseMethod("resolveMask")})(NULL)
4: grid.newpage()
5: print.ggplot(x)
6: (function (x, ...) UseMethod("print"))(x)
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
`
The text was updated successfully, but these errors were encountered: