Open kjmtaylor22 opened 2 years ago
Hi, it seems somehow related to the new plotting engine of rstudio. Other ppl encountered the same issue on ubuntu when a) the R version and RStudio version didn't match (e.g. see here) or b) the graphic drivers were outdated (e.g. see here)
Do you have a nvidia GPU? Did you try the RStudio preview version?
I did try the preview version with no success. I tried all sorts of combinations of R and Rstudio. Currently, I've got it set on R/4.1.2 and RStudio/2022.02.3+492. It's not making a difference, but since I can still run code out of the terminal, I'd decided to let it go for now. I can try going down to RStudio 2021.09.2+382 to see if that makes a difference?
But I'm willing to bet it's something related to the GPU. The graphics card I have is absolutely ancient, but it worked fine with RStudio on my previous build (using 20.04). It's drivers might not be compatible with 22.04 though, so that's something to look into.
So I'll try those two things, and if nothing else, just invest in a new GPU ahead of schedule...
Cheers, I'll let you know if something works.
Hi Kara, I assume you installed the GPU drivers via ubuntu's apt package manager? I never use it because the drivers are often completely outdated and rarely match my GPUs. Maybe you can get it running by first purging all the GPU drivers (nvidia and/or nouveau) and downloading+installing the drivers directly from the nvidia homepage.
So here's my output from glxinfo... Unless I'm completely off base, my current drivers are the opensource X.Org ones. Ubuntu installed them by default probably because the hardware is beyond old.
name of display: :0 display: :0 screen: 0 direct rendering: Yes Extended renderer info (GLX_MESA_query_renderer): Vendor: X.Org (0x1002) Device: AMD CAICOS (DRM 2.50.0 / 5.15.0-40-generic, LLVM 13.0.1) (0x6779) Version: 22.0.1 Accelerated: yes Video memory: 1024MB Unified memory: no Preferred profile: core (0x1) Max core profile version: 3.3 Max compat profile version: 3.1 Max GLES1 profile version: 1.1 Max GLES[23] profile version: 3.1 Memory info (GL_ATI_meminfo): VBO free memory - total: 1023 MB, largest block: 1023 MB VBO free aux. memory - total: 1021 MB, largest block: 1021 MB Texture free memory - total: 1023 MB, largest block: 1023 MB Texture free aux. memory - total: 1021 MB, largest block: 1021 MB Renderbuffer free memory - total: 1023 MB, largest block: 1023 MB Renderbuffer free aux. memory - total: 1021 MB, largest block: 1021 MB Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 1024 MB Total available memory: 2045 MB Currently available dedicated video memory: 1023 MB OpenGL vendor string: X.Org OpenGL renderer string: AMD CAICOS (DRM 2.50.0 / 5.15.0-40-generic, LLVM 13.0.1) OpenGL core profile version string: 3.3 (Core Profile) Mesa 22.0.1 OpenGL core profile shading language version string: 3.30 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 3.1 Mesa 22.0.1 OpenGL shading language version string: 1.40 OpenGL context flags: (none) OpenGL ES profile version string: OpenGL ES 3.1 Mesa 22.0.1 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
Hi Kara, sorry but I don't think I can help you with this. If the problem occurs only if you load sjSDM, maybe it is related to the ggplot package which is a dependency of sjSDM, so try to load only the ggplot package to see if it works or not. If it doesn't work I suggest you start an issue in the ggplot2 github, maybe they have an idea how to solve this problem (or maybe do a backroll to Ubuntu 18 or 20 LTS)
If this is really a ggplot problem, maybe we could be a bit more frugal with the import field ... seems to me quite a lot of these packages are only needed for specialized things, so maybe they could be moved to suggest.
I'm not sure though how exactly import and suggest differ in how packages are attached on library() or package:: commands. See also here https://stackoverflow.com/questions/6895852/load-a-package-only-when-needed-in-r-package
I haven't had any problems loading ggplot or any other package.
At least now I understand what the message means. I am considering a hardware upgrade or (if all else fails) a rollback, but I won't be able to do anything about it for a few weeks anyway.
I cannot run sjSDM in rstudio server on ubuntu. It crashes the session. Sorry -- hard to create a reproducible example.
Hi @thk686, can you please post the output of sessionInfo() here? It seems to be a problem related to ubuntu and the latest R version.
I'm putting this here because I'm not sure where else to ask the question. I cannot even call
sjSDM::
in RStudio without an immediate session abort (see screenshot below). The package works fine in R using the terminal (and in Windows) and all other packages seem to load just fine. I originally tried it in R/4.2.0, but I've tried installing other versions of both R and RStudio and it seems to make no difference. Any ideas what this readout means?