Skip to content
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

Loading library rgl leaves an infinite process under Windows Server 2016 #108

Open
ribeiroi opened this issue Jun 2, 2021 · 3 comments
Open

Comments

@ribeiroi
Copy link

ribeiroi commented Jun 2, 2021

On Windows Server 2016. This is not happening on Windows 10.
Already tried both CRAN and latest version from GitHub.
Used R versions 4.0.4 and 4.1.0.
This is happening both in R and RScript (RScript is more visible because it prevents RScript from finishing).

Test 1: Open R, type library(rgl), close R. Open Task Manager, there will be an open R instance.

Test 2: create a test.R with just library(rgl) inside; open Command Prompt, call RScript test.R; it will never leave RScript, it will hang there indefinitely.

There are no error messages, and all code, including those after library(rgl) are executed.

Seems to be a memory leak or something that rgl library is not closing properly, leaving open even after closing R.

@dmurdoch
Copy link
Owner

dmurdoch commented Jun 2, 2021

I don't have access to Windows Server 2016, just Windows 10, where I also don't see this. I don't know what debugging tools are available to you (in fact, I don't really know modern Windows debugging at all), but if you could force a stack trace of the leftover process, it might be informative.

@adilapapaya
Copy link

adilapapaya commented Jun 17, 2021

Apologies if this is the wrong place - it seemed related to this issue so I posted it here but can open a new issue if you'd prefer.

I'm seeing the same thing on R 3.6.3, Mac OS Catalina (10.15.7): library(rgl) causes the R session to hang / get stuck indefinitely at that step, and I have to force quit that session.

This happened to me after an upgrade to the latest version of XQuartz (to 2.8.1). Reverting back to XQuartz 2.8.0 seems to have fixed the issue.

@dmurdoch are you on an older version of XQuartz?
@ribeiroi, could this be related to your issue?

Also, thank you for this library!!! :)

@dmurdoch
Copy link
Owner

I believe there may be problems if your XQuartz version doesn't match the version of XQuartz used to build the rgl binary you are trying to load. One way to fix this is to build rgl yourself, which is what I do. I have nothing to do with the binary builds on CRAN, and I don't know what version of XQuartz they use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants