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

RStudio hangs on start on Ubuntu 24 with error message in background: "Network service crashed, restarting service" #14927

Open
3 of 4 tasks
prusswan opened this issue Jul 5, 2024 · 15 comments
Labels
bug startup Problems with starting up, installation, etc.
Milestone

Comments

@prusswan
Copy link

prusswan commented Jul 5, 2024

System details

RStudio Edition : Desktop
RStudio Version :  2024.04.0 Build 735 (installed from deb)
OS Version      :  Ubuntu 24.04
R Version       :  4.3.3 (managed by Anaconda)

Steps to reproduce the problem

Create and activate a conda environment for R

conda install -c conda-forge atk (this is one of the dependencies to r-magisk)

Attempt to start rstudio

Describe the problem in detail

RStudio window GUI appears to load (but could not complete loading). In the command line, this error goes on indefinitely:

"ERROR:network_service_instance_impl.cc(601)] Network service crashed, restarting service."

Suspect to be related to this reported issue for chromium: https://issues.chromium.org/issues/41487253

Describe the behavior you expected

RStudio to load normally, or display a more informative error message, or provide an option to disable the problematic feature

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
@prusswan prusswan added bug new New incoming issues, ready for initial review. labels Jul 5, 2024
@gtritchie
Copy link
Member

RStudio 2024.04.x is not supported on Ubuntu 24. The next release (2024.07.x), coming later in July, will support it. Can you try a daily build (https://dailies.rstudio.com/) and see if anything changes?

@prusswan
Copy link
Author

prusswan commented Jul 10, 2024

RStudio 2024.04.x is not supported on Ubuntu 24. The next release (2024.07.x), coming later in July, will support it. Can you try a daily build (https://dailies.rstudio.com/) and see if anything changes?

Same issue with rstudio-2024.07.0-daily-303-amd64.deb, just a slight difference in error line number:

ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.

I suspect this is related to electron somehow (e.g. electron/electron#40328).

@ronblum ronblum added startup Problems with starting up, installation, etc. qa repro and removed new New incoming issues, ready for initial review. labels Jul 12, 2024
@lxs602
Copy link

lxs602 commented Jul 16, 2024

Hi, I get the same error on Ubuntu 24.04 with rstudio [2024.07.0+321], but rstudio GUI window does not appear.

Rstudio-diagnostics file attached.

diagnostics-report.txt

`(env1) user@userPC:~/Downloads/rstudio-diagnostics$ rstudio --run-diagnostics

(rstudio:15820): Gtk-WARNING **: 17:34:00.780: Theme parsing error: gtk.css:2:0: Expected a valid selector
[15820:0716/173400.896739:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
[15820:0716/173400.896772:ERROR:select_file_dialog_linux_portal.cc(290)] Failed to read portal version property
[15857:0716/173400.907337:ERROR:gl_factory.cc(120)] Requested GL implementation (gl=none,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none)].
[15857:0716/173400.909155:ERROR:viz_main_impl.cc(198)] Exiting GPU process due to errors during initialization

Attempting to launch R session...
. RSTUDIO_WHICH_R = /home/user/miniconda3/envs/env1/bin/R
. R_HOME = /home/user/miniconda3/envs/env1/lib/R
. R_DOC_DIR = /home/user/miniconda3/envs/env1/lib/R/doc
. R_INCLUDE_DIR = /home/user/miniconda3/envs/env1/lib/R/include
. R_SHARE_DIR = /home/user/miniconda3/envs/env1/lib/R/share
. LD_LIBRARY_PATH = /home/user/miniconda3/envs/env1/lib/R/lib:/home/user/miniconda3/envs/env1/lib
. PATH = /home/user/miniconda3/envs/env1/bin:/home/user/miniconda3/condabin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user/.local/bin:/home/user/.local/bin:/home/user/.cargo/bin:/opt/Telegram
. HOME = /home/user

R session launched, attempting to connect on port 44145...
TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/home/user/.local/share/rstudio/log/rsession-user.log'.

Connected to R session, attempting to initialize...

[15907:0716/173401.602789:ERROR:gl_factory.cc(120)] Requested GL implementation (gl=none,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none)].
[15820:0716/173401.604518:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[15907:0716/173401.604776:ERROR:viz_main_impl.cc(198)] Exiting GPU process due to errors during initialization
[15917:0716/173401.626559:ERROR:gl_factory.cc(120)] Requested GL implementation (gl=none,angle=none) not found in allowed implementations: [(gl=egl-angle,angle=default),(gl=egl-gles2,angle=none)].
[15917:0716/173401.628553:ERROR:viz_main_impl.cc(198)] Exiting GPU process due to errors during initialization
[15820:0716/173401.631940:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[15820:0716/173401.655874:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[15820:0716/173401.675509:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[15820:0716/173401.697663:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[15820:0716/173401.718150:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[15820:0716/173401.738384:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[15820:0716/173401.760783:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
...`

@ronblum ronblum removed the qa repro label Jul 29, 2024
@ronblum
Copy link
Contributor

ronblum commented Jul 29, 2024

I have been unable to reproduce the issue using RStudio Desktop 2024.08.0+341 on Ubuntu 24.04.

@ronblum ronblum added this to the Later milestone Jul 29, 2024
@gdevenyi
Copy link

I have been unable to reproduce the issue using RStudio Desktop 2024.08.0+341 on Ubuntu 24.04.

That version doesn't exist as an official release.

@gdevenyi
Copy link

I can confirm that rstudio-2024.08.0-342-amd64.deb is still broken on 24.04

@prusswan
Copy link
Author

I have been unable to reproduce the issue using RStudio Desktop 2024.08.0+341 on Ubuntu 24.04.

@ronblum does that mean you have yet to reproduce this issue in any of the previous versions? Also, is there a way for users to choose a different version of electron or disable/ignore network service?

@gtritchie
Copy link
Member

you have yet to reproduce this issue in any of the previous versions?

I also cannot reproduce the issue with 2024.07/08 builds on Ubuntu 24. The problem you are hitting is not happening on every Ubuntu 24 system (but I recognize that doesn't help your situation, and others who have whatever configuration is triggering this).

To check again, I just installed a clean Ubuntu 24.04 system, installed R 4.4.1, and RStudio 2024.08.0+343 for Ubuntu 24, and did nothing else, and it starts up fine.

is there a way for users to choose a different version of electron

No, the only way to do that would be to build RStudio from source (a non-trivial exercise) after choosing a different version of Electron via

"electron": "31.3.0",

We've already updated to Electron 31.3.0 for the "next" release (2024.10) which is just starting development. You can always give one of those builds a try just to see if the newer Electron happens to help. https://dailies.rstudio.com/rstudio/kousa-dogwood/

or disable/ignore network service

Not that I know of.

@gtritchie
Copy link
Member

I'm curious, what happens if you run rstudio via rstudio --disable-gpu?

@gtritchie gtritchie changed the title RStudio hangs on start with error message in background: "Network service crashed, restarting service" RStudio hangs on start on Ubuntu 24 with error message in background: "Network service crashed, restarting service" Jul 31, 2024
@prusswan
Copy link
Author

prusswan commented Aug 2, 2024

I'm curious, what happens if you run rstudio via rstudio --disable-gpu?

(rstudio) username@host:~/Downloads$ rstudio --disable-gpu --run-diagnostics

Attempting to launch R session...
. RSTUDIO_WHICH_R = /home/username/anaconda3/envs/rstudio/bin/R
. R_HOME = /home/username/anaconda3/envs/rstudio/lib/R
. R_DOC_DIR = /home/username/anaconda3/envs/rstudio/lib/R/doc
. R_INCLUDE_DIR = /home/username/anaconda3/envs/rstudio/lib/R/include
. R_SHARE_DIR = /home/username/anaconda3/envs/rstudio/lib/R/share
. LD_LIBRARY_PATH = /home/username/anaconda3/envs/rstudio/lib/R/lib:/home/username/anaconda3/envs/rstudio/lib
. PATH = /home/username/anaconda3/envs/rstudio/bin:/home/username/anaconda3/condabin:/home/username/.nvm/versions/node/v16.20.1/bin:/home/username/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
. HOME = /home/username

R session launched, attempting to connect on port 12259...
TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/home/username/.local/share/rstudio/log/rsession-username.log'.

Connected to R session, attempting to initialize...

[572177:0802/125314.027080:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[572177:0802/125314.045297:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[572177:0802/125314.062603:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[572177:0802/125314.079670:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[572177:0802/125314.096841:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[572177:0802/125314.114092:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[572177:0802/125314.131042:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[572177:0802/125314.148640:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[572177:0802/125314.165836:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
Successfully initialized R session.

diagnostics-report.txt

Thanks for the detailed responses. It certainly looks likely to be an Electron issue and RStudio cannot be detached from it. Based on a previous similar issue in Electron (electron/electron#31675 (comment)), setCertificateVerifyProc is mentioned but I don't see any references to this in RStudio code. Do you know if it is possible to further pinpoint what Electron is doing (sites it is hitting etc) during RStudio startup?

@OddSteak
Copy link

OddSteak commented Sep 3, 2024

disconnecting vpn fixes this issue on arch linux for me

@sguizard
Copy link

sguizard commented Sep 6, 2024

I managed to run it.
From CLI, deactivate any conda environment (this seems to messing up with rstudio), then:

rstudio --use-gl=angle --no-sandbox

FYI, the --no-sandbox has been useful to me for several apps on Ubuntu 24.04: beeper and Joplin.
Those two apps are AppImages.

@ZhangMH2000
Copy link

Hello developers, I've found that this issue only exists in an existing conda environment. In a newly created conda environment, RStudio runs without any problems. I hope you can address this, as reinstalling all the dependencies from the old environment is quite complicated. Thank you!

@himamura2
Copy link

himamura2 commented Oct 30, 2024

I am also getting this errors.

Linux himamura-VirtualBox 6.8.0-47-generic #47-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 21:40:26 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

rstudio-2024.09.0-375-amd64.deb
[88317:1030/131734.747460:ERROR:viz_main_impl.cc(198)] Exiting GPU process due to errors during initialization
[88162:1030/131734.759416:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.
[88162:1030/131734.785684:ERROR:network_service_instance_impl.cc(599)] Network service crashed, restarting service.

Thanks.

rstudio-2024.12.0-467-amd64.deb

I think this is already resolved by this version.

@oktouerl
Copy link

oktouerl commented Jan 7, 2025

"I am Windows, and I am experiencing a white screen on startup with error code 600."

network_service_instance_impl.cc(600)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug startup Problems with starting up, installation, etc.
Projects
None yet
Development

No branches or pull requests

10 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy