R-studio crashes at start ubuntu 22.04

This is about a system+user that I give support.
I tried installing rstudio on a fresh ubuntu 22.04 install and it works flawless.

So the problem looks tied to this specific setup

  • It doesn't seem user bound, because new other user with empty profile gets the same sumier error

Question: can I make rstudio start, debugging it's own IDE?

When it starts, this is on the CLI

 rstudio
TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/home/super/.local/share/rstudio/log/rdesktop.log'.
"Uncaught TypeError: Cannot read property 'notifyRCrashed' of undefined"

and We get a pop up with this:

Error Starting R
The R session failed to start.

RSTUDIO VERSION
RStudio 2022.07.2+576, "Spotted Wakerobin" (e7373ef8, 2022-09-06) for Ubuntu Jammy

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
ERROR MESSAGE
[No error available]
PROCESS OUTPUT
The R session process exited with code 11.

ERRORS
[No errors emitted]
OUTPUT
[No output emitted]
RECENT LOG
Log File
[No logs available]
NEXT STEPS
R can fail to start up for many reasons. The following may help you resolve the problem:

Investigate any errors above.
Make sure that R starts up correctly outside RStudio (using RGui, R.app, or R in a terminal).
Fully uninstall all versions of R from your machine, and reinstall the version you wish to use with RStudio.
Remove startup customizations such as an .Rprofile file, if present.
If posting this report online, use the Copy Problem Report button below to generate a textual version of this diagnostic.
Further troubleshooting help can be found on our website:

Troubleshooting RStudio Startup


## R Session Startup Failure Report

### RStudio Version

RStudio 2022.07.2+576, "Spotted Wakerobin" (e7373ef8, 2022-09-06) for Ubuntu Jammy

user_agent

### Error message

[No error available]

### Process Output

The R session exited with code 11. 

Error output:

[No errors emitted]


Standard output:

[No output emitted]


### Logs

*Log File*

[No logs available]

                


It seems R is not properly installed maybe it is not in the PATH or it lacks permissions.

Have you investigated this? What R version you have installed?

Have you already tried this?

1 Like

Thanks Andresrcs, for joining in to troubleshoot this.
I should have mentioned: the R installed it the

$ which R
/usr/local/bin/R
$ r -V
r ('littler') version 0.3.17

using GNU R Version 4.2.1 (2022-06-23)

Copyright (C) 2006 - 2021  Jeffrey Horner and Dirk Eddelbuettel

r is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License.  For more information about
these matters, see http://www.gnu.org/copyleft/gpl.html.
$ apt info r-base
Package: r-base
Version: 4.2.2.20221110-1.2204.0
Priority: optional
Section: gnu-r
Maintainer: Dirk Eddelbuettel <edd@debian.org>
Installed-Size: 64,5 kB
Depends: r-base-core (>= 4.2.2.20221110-1.2204.0), r-recommended (= 4.2.2.20221110-1.2204.0)
Recommends: r-base-html, r-doc-html
Suggests: elpa-ess, r-doc-info | r-doc-pdf
Homepage: http://www.r-project.org/
Download-Size: 45,6 kB
APT-Manual-Installed: yes
APT-Sources: https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ Packages
Description: GNU R statistical computation and graphics system
 R is a system for statistical computation and graphics.  It consists
 of a language plus a run-time environment with graphics, a debugger,
 access to certain system functions, and the ability to run programs
 stored in script files.
 .
 The design of R has been heavily influenced by two existing languages:
 Becker, Chambers & Wilks' S and Sussman's Scheme.  Whereas the
 resulting language is very similar in appearance to S, the underlying
 implementation and semantics are derived from Scheme.
 .
 The core of R is an interpreted computer language which allows
 branching and looping as well as modular programming using functions.
 Most of the user-visible functions in R are written in R.  It is
 possible for the user to interface to procedures written in the
 C, C++, or FORTRAN languages for efficiency, and many of R's core
 functions do so.  The R distribution contains functionality for a
 large number of statistical procedures and underlying applied math
 computations.  There is also a large set of functions which provide
 a flexible graphical environment for creating various kinds of data
 presentations.
 .
 Additionally, several thousand extension "packages" are available from
 CRAN, the Comprehensive R Archive Network, many also as Debian packages,
 named 'r-cran-<name>'.
 .
 This package is a metapackage which eases the transition from the
 pre-1.5.0 package setup with its larger r-base package. Once installed, it
 can be safely removed and apt-get will automatically upgrade its components
 during future upgrades.  Providing this package gives a way to users to
 then only install r-base-core if they so desire.

N: There are 22 additional records. Please use the '-a' switch to see them.
$ sudo apt search r- | grep "^r-" | head

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

r-base/jammy-cran40,now 4.2.2.20221110-1.2204.0 all [installed]
r-base-core/jammy-cran40,now 4.2.2.20221110-1.2204.0 amd64 [installed]
r-base-core-dbg/focal-cran40 4.1.3-1.2004.0 amd64
r-base-dev/jammy-cran40,now 4.2.2.20221110-1.2204.0 all [installed]
r-base-html/jammy-cran40,now 4.2.2.20221110-1.2204.0 all [installed,automatic]
r-bioc-affxparser/jammy 1.66.0-1 amd64
r-bioc-affy/jammy 1.74.0-1cran1.2204.0 amd64
r-bioc-affyio/jammy 1.66.0-1cran1.2204.0 amd64
r-bioc-all/jammy,jammy 1.36.0-1 all
r-bioc-altcdfenvs/jammy,jammy 1:2.56.0-1 all

I have never used littler but I think it is plausible that it might be interfering with the startup process. I would try completely removing all R versions from the system (including littler and startup files) and reinstalling R from CRAN only.

ok after that:

$ which r
/usr/bin/r
$ which R
/usr/local/bin/R
~$ ls -al /usr/bin/r
lrwxrwxrwx 1 root root 16 feb  1 13:48 /usr/bin/r -> /usr/local/bin/R
~$ ls -al /usr/local/bin/R
-rwxr-xr-x 1 root root 9012 apr  4  2022 /usr/local/bin/R

$ r --version
R version 4.1.2 (2021-11-01) -- "Bird Hippie"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.
 R --version
R version 4.1.2 (2021-11-01) -- "Bird Hippie"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.

Still the same error

on cli:

~$ rstudio
TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/etc/rstudio/logging.conf'. Logging to '/home/super/.local/share/rstudio/log/rdesktop.log'.
"Uncaught TypeError: Cannot read property 'notifyRCrashed' of undefined"

In rstudio window:

Error Starting R
The R session failed to start.

RSTUDIO VERSION
RStudio 2022.07.2+576, "Spotted Wakerobin" (e7373ef8, 2022-09-06) for Ubuntu Jammy

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
ERROR MESSAGE
[No error available]
PROCESS OUTPUT
The R session process exited with code 11.

ERRORS
[No errors emitted]
OUTPUT
[No output emitted]
RECENT LOG
Log File
[No logs available]
NEXT STEPS
R can fail to start up for many reasons. The following may help you resolve the problem:

Investigate any errors above.
Make sure that R starts up correctly outside RStudio (using RGui, R.app, or R in a terminal).
Fully uninstall all versions of R from your machine, and reinstall the version you wish to use with RStudio.
Remove startup customizations such as an .Rprofile file, if present.
If posting this report online, use the Copy Problem Report button below to generate a textual version of this diagnostic.
Further troubleshooting help can be found on our website:

Troubleshooting RStudio Startup


## R Session Startup Failure Report

### RStudio Version

RStudio 2022.07.2+576, "Spotted Wakerobin" (e7373ef8, 2022-09-06) for Ubuntu Jammy

user_agent

### Error message

[No error available]

### Process Output

The R session exited with code 11. 

Error output:

[No errors emitted]


Standard output:

[No output emitted]


### Logs

*Log File*

[No logs available]

You still have littler installed or at least some leftover artifact (which I suspect is causing the problem) and since you have R 4.1.2 I assume you are installing from the Ubuntu repository instead of CRAN

This topic was automatically closed 21 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.