-
Notifications
You must be signed in to change notification settings - Fork 21
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 causing R and R Studio to abort #43
Comments
There are a couple of issues with XQuartz recently, related to its updates. See issue #27. I believe the current
Note that |
Thank you. Unfortunately this did not solve the problem. I installed the devel version of rgl as suggested and R still aborts. I have already tried downgrading XQuartz; R doesn't abort but the output doesn't show up either. I can still run the process on my iMac just fine, it's just a little slower. Hopefully CRAN will have a fix soon. Thanks again for your help and efforts! |
The devel version has just been submitted to CRAN, so unless something new shows up in their tests, waiting for CRAN isn't going to help. Some tests that might help: Does Does If you run |
I have rgl version 1.105.22 installed. x11() does open a graphics window. running quartz() before library(rgl) still causes R to abort.
To be clear, the issues I am having that cause R to abort when calling rgl is on a system running macOS Big Sur 11.2.3. All other things the same (i.e., R, R Studio, XQuartz, and rgl) do not cause R to abort on a system running macOS Catalina 10.15.7. Could the issue be with the OS?
Thanks again for your efforts!
On Mar 4, 2021, at 11:18 AM, dmurdoch ***@***.***> wrote:
The devel version has just been submitted to CRAN, so unless something new shows up in their tests, waiting for CRAN isn't going to help.
Some tests that might help:
Does x11() work in the places where rgl causes an abort? It should open a graphics window. If it doesn't work, the problem is with XQuartz.
Does sessionInfo() show the rgl version is 0.105.22? Maybe the devel install failed.
If you run quartz() before library(rgl), do you still get an abort? One of the problems that was supposed to be fixed was caused by running quartz() after rgl, so it now tries to run it during the loading process. That might not be happening if it doesn't detect a need for it, but you can force the workaround by setting options(rgl.startQuartz = TRUE) before loading rgl.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <https://urldefense.com/v3/__https://github.com/dmurdoch/rgl/issues/43*issuecomment-790783906__;Iw!!KwNVnqRv!T24cKo2IVZspVjOqrqKpkMLBbQ-Tde-UE0q6eXpQHhADXTaPl8M2eODyWP_Tl_4aEH_Y$>, or unsubscribe <https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AFJR6LI7R3DXH32NY2TH4OLTB66HFANCNFSM4YTMS5TA__;!!KwNVnqRv!T24cKo2IVZspVjOqrqKpkMLBbQ-Tde-UE0q6eXpQHhADXTaPl8M2eODyWP_Tl9wdYg8G$>.
Brian White, M.S.
Aramayo Lab
Dept. of Biology
Texas A&M University
|
I don't really know what to suggest, other than the fairly unsatisfactory
That will build |
Okay. Like I said, rgl is working as expected on my older system. For what it’s worth, when I issue x11() in R Studio on the machine running macOS Big Sur 11.2.3, I get the following warning:
Warning messages:
1: In x11() :
X11 protocol error: BadName (named color or font does not exist)
2: In x11() : X11 protocol error: BadFont (invalid Font parameter)
3: In x11() : X11 protocol error: BadFont (invalid Font parameter)
4: In x11() : X11 protocol error: BadFont (invalid Font parameter)
5: In x11() : X11 protocol error: BadCursor (invalid Cursor parameter)
I do not get this warning when I issue x11() on the machine running macOS Catalina 10.15.7. Maybe this helps?
Best,
Brian
On Mar 8, 2021, at 3:50 PM, dmurdoch ***@***.***> wrote:
I don't really know what to suggest, other than the fairly unsatisfactory
remotes::install_github("dmurdoch/rgl", install.opts = "--disable-opengl")
That will build rgl to skip X11 completely. You will be able to see output in a browser using rglwidget() calls, or options(rgl.printRglwidget = TRUE). This is not too bad in RStudio, but very irritating in other front ends.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <https://urldefense.com/v3/__https://github.com/dmurdoch/rgl/issues/43*issuecomment-793105382__;Iw!!KwNVnqRv!SIArGv8AMBGVqx81IzQ3PLZKDJMsttI5vEo70zlAwvFuyMci-hZggKRqYmgfasnSHBJS$>, or unsubscribe <https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AFJR6LI4KA3BHVWIKWS2VLTTCVBBHANCNFSM4YTMS5TA__;!!KwNVnqRv!SIArGv8AMBGVqx81IzQ3PLZKDJMsttI5vEo70zlAwvFuyMci-hZggKRqYmgfaqLoxKSx$>.
Brian White, M.S.
Aramayo Lab
Dept. of Biology
Texas A&M University
|
That does make it sound like an XQuartz issue, but from the look of the messages, maybe one that can be fixed. It looks something like this one: XQuartz/XQuartz#97 |
That did the trick! It is now working like a charm! Thank you very much for your efforts!
Best,
Brian
…Sent from my iPhone
On Mar 9, 2021, at 5:06 AM, dmurdoch ***@***.***> wrote:
That does make it sound like an XQuartz issue, but from the look of the messages, maybe one that can be fixed. It looks something like this one: XQuartz/XQuartz#97
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Just for the record, could you describe what you did that worked? |
I uninstalled XQuartz and then removed all existing sub-directories in opt/X11. I then reinstalled XQuartz.
…Sent from my iPhone
On Mar 9, 2021, at 2:15 PM, dmurdoch ***@***.***> wrote:
Just for the record, could you describe what you did that worked?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I am running macOS Big Sur 11.2.2 on a MBP 16-inch, 2019. I recently updated to R 4.0.4 and R Studio 1.4.1103. I have XQuartz 2.8.0_rc2 installed. I have rgl version 0.105.13 installed. Every time I try to load rgl in either R Studio or Terminal the session aborts. Curiously, my desktop, which is running macOS Catalina 10.15.7 21.5-inch, late 2013, R 4.0.3, R Studio 1.4.1103, and XQuartz 2.8.0_rc2 loads and runs rgl as expected.
The text was updated successfully, but these errors were encountered: