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
rgl crashes in RStudio #11043
Comments
|
I noticed this too while testing rgl with the R 4.2.0 RC on Windows yesterday. And oddly enough, RStudio doesn't crash if you set options(rgl.debug = TRUE)
library(rgl) |
|
I noticed a similar crash, but after building a homemade package depending on rgl. It occurred with the latest RStudio (RStudio-2022.02.1-461) on R4.2.0. OS: Windows10. Since then, it keeps on crashing without even loading rgl, even after re-installing RStudio... Edit : setting options(rgl.debug = TRUE) in my .Rprofile worked perfectly, thank you |
|
As a workaround, you can set |
|
Yes, @kevinushey is right: the workaround prevents the crash, and the devel version has a check added so the workaround isn't necessary. (The issue was that some Unix systems print spurious error messages on startup, so rgl directed those to the nul device unless you set |
Originally reported at dmurdoch/rgl#208
System details
Steps to reproduce the problem
install.packages("rgl")(orinstall_github("dmurdoch/rgl"))library("rgl")Describe the problem in detail
RStudio crashes with "R Session Aborted".
Describe the behavior you expected
The rgl library loads fine in RStudio with R4.1.3, and with the standalone R 4.2 GUI
Possibly relevant? I've noticed a change in RStudio's behaviour from R4.1.3 to R4.2:
throwin c++ code in R packages was handled safely, but now causes RStudio to crash. I wonder whether there's a change in how R handles exceptions in the new version?The text was updated successfully, but these errors were encountered: