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 desktop hangs at start-up in several recent operating system versions e.g. Ubuntu 22.04 & Fedora 35 #9854

Closed
fthx opened this issue Sep 16, 2021 · 111 comments
Assignees
Labels
backport Issues whose associated fixes will need to be backported for a previous release. bug reproducible

Comments

@fthx
Copy link

fthx commented Sep 16, 2021

  • [x ] I have read the guide for submitting good bug reports.
  • [x ] I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • [x ] If I am reporting an RStudio crash, I have included a diagnostics report.
  • [x ] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
@ronblum
Copy link
Contributor

ronblum commented Sep 17, 2021

@fthx Thank you for raising this!

  1. RStudio only supports the LTS releases, which in the case of Ubuntu, the latest is 20.04.x. The next major version will be 22.04.
  2. That said: Is there any output to the terminal?
  3. Was it working in a previous version of Ubuntu, LTS or otherwise?
  4. Are you using Wayland, and if so, does switching away from it resolve the issue? See "Xorg will still be there" at https://www.omgubuntu.co.uk/2021/01/ubuntu-21-04-will-use-wayland-by-default

@ronblum ronblum added bug linux info needed Additional information requested—reprex, steps, open question, etc. labels Sep 17, 2021
@fthx
Copy link
Author

fthx commented Sep 17, 2021

Thanks for answering this.

Yes I know that LTS only is supported but I got very new hardware so i'll go for 22.04 later, starting with 21.10 now. "That said" :-) I did use RStudio on non-LTS and that's the first time I experience such a lock. First reaction, I did switch to Xorg but same problem here. It was working on my previous 20.04 and more recently in my Debian 11 setup. (Note that Debian 11 / Ubuntu 20.04 are not listed in RStudio Downloads!)
In terminal, same as usual, as far as I can remember:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

@fthx
Copy link
Author

fthx commented Sep 17, 2021

I'm trying to install RS on my Ubuntu 21.10 VM in Debian 11.

@fthx
Copy link
Author

fthx commented Sep 17, 2021

Same issue.

@N0rbert
Copy link

N0rbert commented Sep 19, 2021

Reproducible way on latest Ubuntu-MATE 21.10 "Impish Indri" - Alpha amd64 (20210919) with latest RStudio 1.4.1717:

cd ~/Downloads
wget -c https://rstudio.org/download/latest/stable/desktop/bionic/rstudio-latest-amd64.deb
sudo apt-get install -y r-base-dev ./rstudio-latest-amd64.deb

Then open two terminals - first to launch RStudio, second - to monitor the logs by sudo tail -f ~/.xsession-errors /var/log/*.
In first terminal run rstudio command.
In the second terminal get the following:

==> /var/log/apport.log <==
ERROR: apport (pid 6828) Sun Sep 19 13:42:37 2021: called for pid 6827, signal 31, core limit 0, dump mode 1
ERROR: apport (pid 6828) Sun Sep 19 13:42:37 2021: executable: /usr/lib/rstudio/libexec/QtWebEngineProcess (command line "/usr/lib/rstudio/libexec/QtWebEngineProcess\ --type=renderer\ --disable-gpu-memory-buffer-video-frames\ --enable-threaded-compositing\ --enable-viewport\ --use-gl=desktop\ --enable-features=AllowContentInitiatedDataUrlNavigations\ --disable-features=MojoVideoCapture,SurfaceSynchronization,UseModernMediaControls,UseVideoCaptureApiForDevToolsSnapshots\ --disable-databases\ --service-pipe-token=972834821355294252\ --lang=en-US\ --webengine-schemes=qrc:sLV\ --num-raster-threads=1\ --service-request-channel-token=972834821355294252\ --renderer-client-id=3\ --shared-files")
ERROR: apport (pid 6828) Sun Sep 19 13:42:37 2021: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
ERROR: apport (pid 6828) Sun Sep 19 13:42:37 2021: wrote report /var/crash/_usr_lib_rstudio_libexec_QtWebEngineProcess.1000.crash
ERROR: apport (pid 6841) Sun Sep 19 13:42:38 2021: called for pid 6840, signal 31, core limit 0, dump mode 1
ERROR: apport (pid 6841) Sun Sep 19 13:42:38 2021: executable: /usr/lib/rstudio/libexec/QtWebEngineProcess (command line "/usr/lib/rstudio/libexec/QtWebEngineProcess\ --type=renderer\ --disable-gpu-memory-buffer-video-frames\ --enable-threaded-compositing\ --enable-viewport\ --use-gl=desktop\ --enable-features=AllowContentInitiatedDataUrlNavigations\ --disable-features=MojoVideoCapture,SurfaceSynchronization,UseModernMediaControls,UseVideoCaptureApiForDevToolsSnapshots\ --disable-databases\ --service-pipe-token=6814617557611600180\ --lang=en-US\ --webengine-schemes=qrc:sLV\ --num-raster-threads=1\ --service-request-channel-token=6814617557611600180\ --renderer-client-id=3\ --shared-files")
ERROR: apport (pid 6841) Sun Sep 19 13:42:38 2021: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
ERROR: apport (pid 6841) Sun Sep 19 13:42:38 2021: apport: report /var/crash/_usr_lib_rstudio_libexec_QtWebEngineProcess.1000.crash already exists and unseen, doing nothing to avoid disk usage DoS
ERROR: apport (pid 6945) Sun Sep 19 13:43:05 2021: called for pid 6944, signal 31, core limit 0, dump mode 1
ERROR: apport (pid 6945) Sun Sep 19 13:43:05 2021: executable: /usr/lib/rstudio/libexec/QtWebEngineProcess (command line "/usr/lib/rstudio/libexec/QtWebEngineProcess\ --type=renderer\ --disable-gpu-memory-buffer-video-frames\ --enable-threaded-compositing\ --enable-viewport\ --use-gl=desktop\ --enable-features=AllowContentInitiatedDataUrlNavigations\ --disable-features=MojoVideoCapture,SurfaceSynchronization,UseModernMediaControls,UseVideoCaptureApiForDevToolsSnapshots\ --disable-databases\ --service-pipe-token=2602721841825081561\ --lang=en-US\ --webengine-schemes=qrc:sLV\ --num-raster-threads=1\ --service-request-channel-token=2602721841825081561\ --renderer-client-id=3\ --shared-files")
ERROR: apport (pid 6945) Sun Sep 19 13:43:05 2021: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
ERROR: apport (pid 6945) Sun Sep 19 13:43:05 2021: apport: report /var/crash/_usr_lib_rstudio_libexec_QtWebEngineProcess.1000.crash already exists and unseen, doing nothing to avoid disk usage DoS
ERROR: apport (pid 6957) Sun Sep 19 13:43:06 2021: called for pid 6956, signal 31, core limit 0, dump mode 1
ERROR: apport (pid 6957) Sun Sep 19 13:43:06 2021: executable: /usr/lib/rstudio/libexec/QtWebEngineProcess (command line "/usr/lib/rstudio/libexec/QtWebEngineProcess\ --type=renderer\ --disable-gpu-memory-buffer-video-frames\ --enable-threaded-compositing\ --enable-viewport\ --use-gl=desktop\ --enable-features=AllowContentInitiatedDataUrlNavigations\ --disable-features=MojoVideoCapture,SurfaceSynchronization,UseModernMediaControls,UseVideoCaptureApiForDevToolsSnapshots\ --disable-databases\ --service-pipe-token=4596915961412917752\ --lang=en-US\ --webengine-schemes=qrc:sLV\ --num-raster-threads=1\ --service-request-channel-token=4596915961412917752\ --renderer-client-id=3\ --shared-files")
ERROR: apport (pid 6957) Sun Sep 19 13:43:06 2021: is_closing_session(): no DBUS_SESSION_BUS_ADDRESS in environment
ERROR: apport (pid 6957) Sun Sep 19 13:43:06 2021: apport: report /var/crash/_usr_lib_rstudio_libexec_QtWebEngineProcess.1000.crash already exists and unseen, doing nothing to avoid disk usage DoS
ERROR: apport (pid 7009) Sun Sep 19 13:43:24 2021: called for pid 7005, signal 6, core limit 18446744073709551615, dump mode 1
ERROR: apport (pid 7009) Sun Sep 19 13:43:24 2021: ignoring implausibly big core limit, treating as unlimited
ERROR: apport (pid 7009) Sun Sep 19 13:43:24 2021: executable: /usr/bin/gdb (command line "/usr/bin/gdb --ex file\ "/usr/lib/rstudio/libexec/QtWebEngineProcess" --ex core-file\ /tmp/apport_core_8a5f26qo --batch --ex set\ backtrace\ limit\ 2000 --ex p\ -99 --ex info\ registers --ex p\ -99 --ex x/16i\ $pc --ex p\ -99 --ex bt\ full --ex p\ -99 --ex thread\ apply\ all\ bt\ full --ex p\ -99 --ex print\ __abort_msg->msg --ex p\ -99 --ex print\ __glib_assert_msg --ex p\ -99 --ex print\ (char*)\ __nih_abort_msg --ex p\ -99")
ERROR: apport (pid 7009) Sun Sep 19 13:43:24 2021: debug: session gdbus call: (true,)

ERROR: apport (pid 7009) Sun Sep 19 13:43:28 2021: wrote report /var/crash/_usr_bin_gdb.1000.crash
ERROR: apport (pid 7009) Sun Sep 19 13:43:28 2021: writing core dump to core (limit: -1)
ERROR: apport (pid 7009) Sun Sep 19 13:43:37 2021: writing core dump core of size 114429952

Apport crash dumps are in apport.zip

RStudio is not functional, its window looks like shown below:

rstudio

Installing preview version 2021.09.0-preview+341 does not help.

Tested this on old-but-good Lenovo SL500 with integrated Intel graphics using default video-driver.
Please note that the same RStudio 1.4.1717 version works normally on Ubuntu MATE 21.04 (non-LTS, but ok for some users) here with the same hardware.

@ronblum ronblum removed the info needed Additional information requested—reprex, steps, open question, etc. label Sep 20, 2021
@ronblum ronblum added this to the Prairie Trillium (2022-01.0) milestone Sep 20, 2021
@ronblum
Copy link
Contributor

ronblum commented Sep 20, 2021

Thank you both, including comparing hardware! I'm tagging this, especially as issues with Ubuntu 21.10 could potentially arise in 22.04 (LTS) when it's released.

@wagafo
Copy link

wagafo commented Sep 20, 2021

I confirm it with Ubuntu 21.10. It would be nice to get a fix before Ubuntu 22.04. This is the first time that RStudio cannot be used with a Non-LTS version, as far as I know. I've been updating to the 6 month version for years and never had a problem with RStudio.

@fthx
Copy link
Author

fthx commented Sep 24, 2021

Ok guys, I got it.
I was reading some preliminary Impish release notes and there was:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1944468

So:
rstudio --no-sandbox
does make RS start, before get it fixed.

@wagafo
Copy link

wagafo commented Sep 24, 2021

Thanks so much, it works.

@ronblum
Copy link
Contributor

ronblum commented Sep 24, 2021

Thank you @fthx for doing the research and figuring out a workaround, and @wagafo for confirming that the workaround works! Having it here will be very helpful in the meantime for others, too, so we truly appreciate your help.

Note: I can reproduce both the problem and workaround with RStudio Desktop 2021.09.0+351 on Ubuntu 21.10.

@fthx
Copy link
Author

fthx commented Sep 28, 2021

@fthx
Copy link
Author

fthx commented Sep 28, 2021

I installed new glibc from proposed and RStudio starts.

@gsgxnet
Copy link

gsgxnet commented Oct 14, 2021

Just for information:
the same problem still persists on non-supported OpenSUSE Tumbleweed, see additional replies at the Ubunbtu problem discussion on the RStudio forum:
https://community.rstudio.com/t/rstudio-does-not-start-in-ubuntu-21-10/115852/5
One user there reports also that the Ubuntu issue is fixed for him with the glibc 2.34-0ubuntu3version

@mikebessuille mikebessuille reopened this Nov 9, 2021
@mikebessuille
Copy link
Contributor

Reopened; we need to investigate this as it affects several OS versions we currently don't support (but some of which we will eventually support).
Graham suggests upgrading to a new version of Boost may resolve?
see: https://rstudio.slack.com/archives/C0DAAVDJQ/p1636477205095100

@macramole
Copy link

macramole commented May 3, 2022

2022.06.0 Build 340 works here on Pop Os 22.04 with R version 4.1.2

thanks !

@fthx
Copy link
Author

fthx commented May 3, 2022

build 348 electron works well (except copy-paste between different tabs, maybe inside a tab too).
Ubuntu Jammy

@ronblum
Copy link
Contributor

ronblum commented May 3, 2022

@fthx I'm actually writing up a bug for the copy-paste issue right now, but thank you for nothing it!

Update: Issue #11111.

@gsgxnet
Copy link

gsgxnet commented May 3, 2022

Thank you all for verifying this! The info you're providing is very good to know.

@gsgxnet Thanks for checking on openSUSE! The Passthrough is noted in issue #10782. The InitializeSandbox is a new one, though. Would you be willing to open a new issue for it?

did so, see #11114

@fthx
Copy link
Author

fthx commented May 4, 2022

alt + - shortcut does not work in electron

@ronblum
Copy link
Contributor

ronblum commented May 4, 2022

@gsgxnet Thank you for filing the new issue!

@fthx Thanks for the find! Can you open a new issue for it?

@gsgxnet
Copy link

gsgxnet commented May 5, 2022

@ronblum - I wonder would it be a good idea to display a warning at RStudio startup in the electron version if the user started it with the RSTUDIO_CHROMIUM_ARGUMENTS="--no-sandbox" setting?
--no-sandbox was a temporary measure to cope with the problems, but in the long run it might become a security issue if kept.

@fthx
Copy link
Author

fthx commented May 5, 2022

Could be useful to have a RStudio repository rather than manually updating.
I'm sure this request has been done before.
:-)

@mwt
Copy link

mwt commented May 5, 2022

Could be useful to have a RStudio repository rather than manually updating.
I'm sure this request has been done before.
:-)

https://mattwthomas.com/mirrors/#rstudio

With a GitHub project here.

@NotesOfReality
Copy link

NotesOfReality commented May 7, 2022

According to my limited understanding RStudio daily builds for Ubuntu 22 run as if --no-sandbox is enabled by default (surely not passed by a .desktop launcher nor .profile), don't they?
Sorry if my question might very well turn out to be "blindly stupid" but unfortunately I had no luck with trying to read through the commits history and the my terminal emulator output, if anything whoever has security concerns will find a very clear answer I guess.

@eyayaw
Copy link

eyayaw commented May 8, 2022

Sorry again for the delay. Daily builds of RStudio built for Ubuntu Jammy are now available on the daily builds page:

https://dailies.rstudio.com/

The current daily build for Ubuntu Jammy is available at https://s3.amazonaws.com/rstudio-ide-build/desktop/jammy/amd64/rstudio-2022.06.0-daily-340-amd64.deb, and we'd appreciate if you could test and report if RStudio is now able to launch without issue for you.

The next builds of RStudio for other platforms should also support newer versions of glibc.

Ok, this one was a life saver. Thank you.
First, rstudio-2022.02.2-485-amd64.deb depended on libssl1* and it's not easy to install it on Ubuntu 22.04. Once that was solved, rstudio does not open unless with rstudio --no-sandbox. The dailies now solve my problem. Rstudio opens up correctly with R 4.2.

@gtritchie gtritchie assigned ronblum and unassigned kevinushey May 9, 2022
@ronblum
Copy link
Contributor

ronblum commented May 9, 2022

Please note that the dailies are intended for development and testing purposes.

Patterned after from #10902 (comment)


Verified Fixed

RStudio Edition    : Desktop / Desktop Pro / Server
RStudio Version(s) : 2022.02.3-daily+489 & 2022.06.0-daily+374
OS Version         : Ubuntu 22.04 (Desktop & Server), Fedora 35 (RStudio Desktop only)

Environment details

Does not include RStudio Workbench (see https://github.com/rstudio/launcher/issues/341) or Fedora (#11140).

Test scenario(s)

Checked basic functionality, such as startup, running an R script, and knitting an R Markdown file.

For RStudio Desktop Pro, verified both locally and using a remote server.

Automated tests

If the bug is present, existing RStudio Server automated test will fail because the application won't run.

Notes:

  1. RStudio Workbench support is covered in private repos at https://github.com/rstudio/rstudio-pro/issues/3422 and https://github.com/rstudio/launcher/issues/341
  2. For Fedora 35, only verified RStudio Desktop, not Server/Workbench. If we need server, I'll open up a separate issue.

@prdm0
Copy link

prdm0 commented May 10, 2022

On Arch Linux and derived distributions the problem continues. A good source of comments on how to resolve it is found here. So far, they're using workarounds, like running rstudio-bin --no-sandbox or making changes to the rstudio.desktop file.

@ronblum
Copy link
Contributor

ronblum commented May 10, 2022

@prdm0 Do you mean that the problem still exists in 2022.02.3-daily+489 or 2022.06.0-daily+374? Though keep in mind that these are meant for development and testing right now.

@phancanhtrinh
Copy link

I still have a problem with an updated version. I cannot install it on ubuntu 22.04

sudo dpkg -i rstudio-2022.06.0-daily-388-amd64.deb
(Reading database ... 219615 files and directories currently installed.)
Preparing to unpack rstudio-2022.06.0-daily-388-amd64.deb ...
Unpacking rstudio (2022.06.0-daily+388) over (2022.06.0-daily+388) ...
dpkg: dependency problems prevent configuration of rstudio:
rstudio depends on libssl-dev; however:
Package libssl-dev is not installed.
rstudio depends on libclang-dev; however:
Package libclang-dev is not configured yet.
rstudio depends on libpq5; however:
Package libpq5 is not installed.

dpkg: error processing package rstudio (--install):
dependency problems - leaving unconfigured
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for shared-mime-info (2.1-2) ...
Errors were encountered while processing:
rstudio

@fthx
Copy link
Author

fthx commented May 11, 2022

Prefer sudo apt install ./<deb package> over dpkg so depends are installed too.

@phancanhtrinh
Copy link

I have problems too. I am too tired. Does anyone know how to downgrade to Ubuntu 20.04? I suspect this situation will occur with other packages, not only Rstudio.

sudo apt install ./rstudio-2022.06.0-daily-388-amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libclang-11-dev : Depends: libstdc++-9-dev but it is not installed
Depends: libgcc-9-dev but it is not installed
Depends: libobjc-9-dev but it is not installed
Depends: libclang1-11 (= 1:11.0.0-2ubuntu20.04.1) but it is not installed
Depends: libclang-common-11-dev (= 1:11.0.0-2
ubuntu20.04.1) but it is not installed
libclang-14-dev : Depends: libobjc-11-dev but it is not installed
Depends: libclang1-14 (= 1:14.0.3-1) but it is not installed
Depends: libclang-common-14-dev (= 1:14.0.3-1) but it is not installed
libclang-4.0-dev : Depends: libstdc++-7-dev but it is not installable
Depends: libgcc-7-dev but it is not installable
Depends: libobjc-7-dev but it is not installable
Depends: libclang1-4.0 (= 1:4.0.1-10) but it is not installable
Depends: libclang-common-4.0-dev (= 1:4.0.1-10) but it is not installable
libclang-dev : Depends: libclang-10-dev (>= 10~) but it is not installable
rstudio : Depends: libssl-dev but it is not installed
Depends: libpq5 but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

@kevinushey
Copy link
Contributor

The binaries built for older versions of Ubuntu won't work with Ubuntu 22.04. Try downloading one of the latest binaries available from here:

https://dailies.rstudio.com/rstudio/spotted-wakerobin/desktop/jammy/

and installing it with sudo apt install ./rstudio-*.

@francisbarton
Copy link

francisbarton commented May 17, 2022

I'm on Manjaro Linux 21.0 but running:

RStudio 2022.02.0+443 "Prairie Trillium" Release (9f79693, 2022-02-16) for Ubuntu Bionic
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.8 Chrome/69.0.3497.128 Safari/537.36

My OS installed Qt is:

qmake --version
Using Qt version 5.15.3 in /usr/lib

My RStudio launcher is set to
/usr/bin/rstudio-bin --disable-seccomp-filter-sandbox %F
and I can use that to launch multiple RStudio windows without an issue.

Where I get the blank, non-responsive window (it shows up in my XFCE taskbar and in Task Manager as "Qt Client Leader Window") is if I try to launch a new session from within RStudio. My existing session remains functional but the new session just has a window frame a menus but no other content, and requires killing from the OS to close.

@dat-linux
Copy link

So is there any chance this fix can be folded in to the current version (2022.02.02-*) as a patch release?

@mikebessuille
Copy link
Contributor

mikebessuille commented May 19, 2022

@dat-linux Yes it's already been backported to Prairie Trillium (2022.02.3), which has not been released yet but you can try it here:
https://dailies.rstudio.com/rstudio/prairie-trillium/

@dat-linux
Copy link

@dat-linux Yes it's already been backported to Prairie Trillium (2022.02.3), which has not been released yet but you can try it here: https://dailies.rstudio.com/rstudio/prairie-trillium/

Thanks, but I cannot rely on dailies. When is the release date for stable?

@mikebessuille
Copy link
Contributor

@dat-linux I expect in ~ 1-2 months, but not likely in the next 3-4 weeks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Issues whose associated fixes will need to be backported for a previous release. bug reproducible
Projects
None yet
Development

No branches or pull requests