-
Notifications
You must be signed in to change notification settings - Fork 40
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
Segfault in svglite 1.2.0 #80
Comments
judging from the error message, that would be gdtools. I'll look into it.
I ran |
On mac you can test using docker for mac: docker pull fedora:latest
docker run -i -t fedora:latest /bin/bash And then install R and svglite, etc. |
Could you give the result of |
Seems to be the same issue: https://groups.google.com/forum/#!topic/shiny-discuss/5kuGWnEb_LE |
I just checked on Windows 10, and no error. It did hang for a while but eventually worked. |
The hang is fontconfig building a cache of the system fonts and should only happen once. |
second try was quick as you suggest. Thanks! |
The Cairo svg device initialises fontconfig only once per session: and doesn't finalise it. Maybe it does not clean up other related resources correctly and this triggers the crash when we try to finalise fontconfig in gdtools. Quick solution: not finalising fontconfig in gdtools to be on the safe side. |
Fixes r-lib/svglite#80 The R Cairo device also uses Fontconfig and does not finalise it. It's possible it does not clean up other resources linked to Fontconfig correctly, which triggers a crash on some platforms when we try to finalise Fontconfig.
An example in the
rsvg
package is segfaulting after thesvglite
update (or perhaps one of it's dependencies). The problem is in svglite; I can reproduce the problem without rsvg as well (on the latest Fedora stable).The crash appears somewhat randomly which suggests a memory corruption caused earlier on. A reproducible example without rsvg:
This problem does not appear on mac and windows I think.
The text was updated successfully, but these errors were encountered: