RStudio error starting R

I am using Pop!_OS 22.04 LTS, a variant of Ubuntu 22. I reinstalled R 4.3.1 from source. It works perfectly, and I got all my packages successfully updated and all dependencies installed. I downloaded and installed RStudio (rstudio-2023.09.0-463-amd64.deb), but it does not work. The startup failure report is below. Thanks for any help you can give!

I have followed the steps in https://www.rstudio.org/links/troubleshooting_startup.

R Session Startup Failure Report

RStudio Version

RStudio 2023.09.0+463 "Desert Sunflower " (b51c81cc, 2023-09-25) for Ubuntu Jammy

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) rstudio/2023.09.0+463 Chrome/114.0.5735.289 Electron/25.5.0 Safari/537.36

Error message

[No error available]

Process Output

The R session exited with code 2.

Error output:

unable to initialize the JIT


Standard output:

[No output emitted]

Logs

/home/jcarson/.local/share/rstudio/log/rsession-jcarson.log

2023-09-28T14:12:00.766394Z [rsession-jcarson] ERROR R SUICIDE: unable to initialize the JIT; LOGGED FROM: void {anonymous}::rSuicide(const string&) src/cpp/session/SessionMain.cpp:1245
2023-09-28T14:12:00.766394Z [rsession-jcarson] ERROR R SUICIDE: unable to initialize the JIT; LOGGED FROM: void {anonymous}::rSuicide(const string&) src/cpp/session/SessionMain.cpp:1245

We are on the same version of Pop!_OS

Differences

  1. I'm using R 4.3.1, but installed with apt
  2. I'm using RStudio RStudio 2023.03.0+386 "Cherry Blossom" Release (3c53477afb13ab959aeb5b34df1f10c237b256c3, 2023-03-09) for Ubuntu Jammy
    Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) rstudio/2023.03.0+386 Chrome/108.0.5359.179 Electron/22.0.3 Safari/537.36

So, you might try downversioning from dailies.rstudio.com or see if my .Rprofile works for your setup

1   β”‚ if (interactive() && requireNamespace("rprofile", quietly = TRUE)) {
   2   β”‚ 
   3   β”‚   # Only useful if you use Makefiles
   4   β”‚   rprofile::create_make_functions()
   5   β”‚   
   6   β”‚   # Startup options
   7   β”‚   rprofile::set_startup_options()
   8   β”‚   
   9   β”‚   # Not RStudio console
  10   β”‚   if (rprofile::is_terminal()) {
  11   β”‚     rprofile::set_terminal()
  12   β”‚   } else {
  13   β”‚     rprofile::set_rstudio()
  14   β”‚   }
  15   β”‚ 
  16   β”‚   .env = rprofile::set_functions()
  17   β”‚   attach(.env)
  18   β”‚   # Display wifi and no of R sessions
  19   β”‚   # Linux only
  20   β”‚   rprofile::set_startup_info()
  21   β”‚ }
  22   β”‚ utils::assignInNamespace(
  23   β”‚   "q", 
  24   β”‚   function(save = "no", status = 0, runLast = TRUE) 
  25   β”‚   {
  26   β”‚     .Internal(quit(save, status, runLast))
  27   β”‚   }, 
  28   β”‚   "base"
  29   β”‚ )
1   β”‚ if (interactive() && requireNamespace("rprofile", quietly = TRUE)) {
   2   β”‚ 
   3   β”‚   # Only useful if you use Makefiles
   4   β”‚   rprofile::create_make_functions()
   5   β”‚   
   6   β”‚   # Startup options
   7   β”‚   rprofile::set_startup_options()
   8   β”‚   
   9   β”‚   # Not RStudio console
  10   β”‚   if (rprofile::is_terminal()) {
  11   β”‚     rprofile::set_terminal()
  12   β”‚   } else {
  13   β”‚     rprofile::set_rstudio()
  14   β”‚   }
  15   β”‚ 
  16   β”‚   .env = rprofile::set_functions()
  17   β”‚   attach(.env)
  18   β”‚   # Display wifi and no of R sessions
  19   β”‚   # Linux only
  20   β”‚   rprofile::set_startup_info()
  21   β”‚ }
  22   β”‚ utils::assignInNamespace(
  23   β”‚   "q", 
  24   β”‚   function(save = "no", status = 0, runLast = TRUE) 
  25   β”‚   {
  26   β”‚     .Internal(quit(save, status, runLast))
  27   β”‚   }, 
  28   β”‚   "base"
  29   β”‚ )

Thanks, Technocrat! I'll try it!

1 Like

Come back if that doesn’t work. There are other tweaks we can try

I got tied up and couldn't try it until this morning. Neither worked. The error was the same.

I also tried installing an earlier version, rstudio-2023.06.2-561-amd64.deb.

Starting from the command line I got this error:
jcarson@pop-os:~$ rstudio
[33656:1002/103946.969806:ERROR:gl_factory.cc(128)] Requested GL implementation (gl=desktop-gl,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none),(gl=egl-angle,angle=swiftshader)].
[33656:1002/103946.970848:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[33712:1002/103947.046292:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[33687:1002/103947.047159:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

So, apparently there is some issue with the gpu setup or compatibility.

I was able to resolve this by uninstalling all GPU components and reinstalling
nvidia-driver-535 and nvidia-dkms-535.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.