Linux 🐧 RStudio Startup Blank Page

Due to quite some duplicated setting files and make me confused when configure setting on startup::startup() (noticed that the startup codes will colorised if open R via Linux console, but direct open with Rconsole won't), wonder which R follow which setting files:

:~$ ls /etc/R/
ldpaths  Makeconf  Renviron  Renviron.site  repositories  Rprofile.site
:~$ ls /usr/share/R/share/R/
examples-footer.R  examples-header.R  nspackloader.R  REMOVE.R  tests-startup.R
:~$ ls /lib/R/etc/
javaconf  ldpaths.new  Makeconf.new  Renviron.orig  Renviron.ucf  Rprofile.site
ldpaths   Makeconf     Renviron      Renviron.site  repositories

and then try to united the library(set to be only library) as below (since normally the packages will install to different directories and make me confused, windows normally only install in program files):

> # c("/usr/lib/R/library", "/lib/R/library/")
> .libPaths()
[1] "/usr/lib/R/library"

Below are some reference, wonder if configure the setting on only file ~/.Rprofile and ~/.Renviron with User-level will do?


When I configured above setting, RStudio startup became blank page.

Continuing the discussion from Rstudio opens to a blank white screen:

:~$ # Linux
:~$ export RSTUDIO_CHROMIUM_ARGUMENTS="--disable-gpu"
:~$ /usr/lib/rstudio/bin/rstudio
2021-12-13T17:37:38.511335Z [rdesktop] ERROR Main window closed unexpectedly; LOGGED FROM: rstudio::desktop::MainWindow::closeEvent(QCloseEvent*)::<lambda(QVariant)> src/cpp/desktop/DesktopMainWindow.cpp:524
:~$ # Linux
:~$ sudo micro ~/.config/RStudio/desktop.ini  # $XDG_CONFIG_HOME/RStudio/desktop.ini

and then modify desktop.renderingEngine=software as below, Ctrl + S and Ctrl + Q (saved and exit).

[General]
cookies=@Invalid()
desktop.renderingEngine=software

[mainwindow]
geometry="@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x2=\0\0\0\x93\0\0\a[\0\0\x4\xf\0\0\x2\x41\0\0\0\xb8\0\0\aW\0\0\x4\v\0\0\0\0\0\0\0\0\a\x80\0\0\x2\x41\0\0\0\xb8\0\0\aW\0\0\x4\v)"

Source: Troubleshooting RStudio Rendering Errors

RStudio startup blank page and try to refer above but disabled gpu doesn't help.


Continuing the discussion from R Studio opens as black screen and doesn't work:
Continuing the discussion from RStudio can't establish a connection to R:

Source: Resetting RStudio Desktop's State


Continuing the discussion from Error : Error Starting R:

:~$ neofetch
            .-/+oossssoo+/-.               englianhu@Scibrokes-Trading 
        `:+ssssssssssssssssss+:`           --------------------------- 
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 20.04.3 LTS x86_64 
    .ossssssssssssssssssdMMMNysssso.       Host: 23-p080d 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 5.15.7-051507-generic 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 1 hour, 54 mins 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 6314 (dpkg), 29 (flatpak), 36 (snap) 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 5.0.17 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 1920x1080 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: Plasma 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: KWin 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Infinity-Aurorae 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Infinity Dark Color [Plasma], Breeze [GTK2/ 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Infinity-Dark-Icons [Plasma], Infinity-Dark 
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: konsole 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: Intel i5-4590T (4) @ 3.000GHz 
    .ossssssssssssssssssdMMMNysssso.       GPU: NVIDIA GeForce 710M 
      -+sssssssssssssssssyyyssss+-         GPU: Intel HD Graphics 
        `:+ssssssssssssssssss+:`           Memory: 11954MiB / 15894MiB 
            .-/+oossssoo+/-.
:~$ rstudio
"Uncaught TypeError: Cannot read property 'notifyRCrashed' of undefined"
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2013, resource id: 46162659, major code: 40 (TranslateCoords), minor code: 0
[1214/025842.221360:ERROR:file_io_posix.cc(152)] open /home/englianhu/.config/google-chrome/Crash Reports/pending/2723c874-944c-452a-9443-58e97f5c252b.lock: File exists (17)
Opening in existing browser session.
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
[54129:54129:0100/000000.920636:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process

R Session Startup Failure Report

RStudio Version

RStudio 2021.09.0-preview+341, "Ghost Orchid" (059a094c, 2021-09-01) 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

Error message

[No error available]

Process Output

The R session exited with code 1.

Error output:

[No errors emitted]

Standard output:

[No output emitted]

Logs

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

2021-12-13T17:27:45.124111Z [rsession-englianhu] ERROR Parent terminated; LOGGED FROM: void {anonymous}::detectParentTermination() src/cpp/session/SessionMain.cpp:1431
2021-12-13T17:55:37.206921Z [rsession-englianhu] ERROR system error 98 (Address already in use); OCCURRED AT rstudio::core::Error rstudio::core::http::initTcpIpAcceptor(rstudio::core::http::SocketAcceptorService<rstudio_boost::asio::ip::tcp>&, const string&, const string&) src/cpp/session/http/SessionPosixHttpConnectionListener.cpp:103; LOGGED FROM: int main(int, char* const*) src/cpp/session/SessionMain.cpp:2088
2021-12-13T17:55:37.206921Z [rsession-englianhu] ERROR system error 98 (Address already in use); OCCURRED AT rstudio::core::Error rstudio::core::http::initTcpIpAcceptor(rstudio::core::http::SocketAcceptorService<rstudio_boost::asio::ip::tcp>&, const string&, const string&) src/cpp/session/http/SessionPosixHttpConnectionListener.cpp:103; LOGGED FROM: int main(int, char* const*) src/cpp/session/SessionMain.cpp:2088


There has another article RStudio Desktop IDE Will Not Start to refer.


Reference:

  1. Blank screen when opening RStudio
  2. R Studio opens as black screen and doesn't work

Continuing the discussion from Error : Error Starting R:

Just recalled faced same error few months ago, rprofile r package doesn't support packages installations.

  1. usethis::edit_r_profile()
  2. copy the rprofileas a draft and remove the content in ./Renviron
  3. install the r packages in rprofile scripts and copy and paste back the content into ~/.Renviron and run the R.
  4. R and RStudio working now
  • amment the on ~/.Renvironand ~/.Rprofile but not /etc/R/Rprofile.site, /etc/R/Renviron,/etc/R/Renviron.site.
  • set the path R_LIBS_USER=${R_LIBS_USER-'/usr/lib/R/library'} in /usr/lib/R/etc/Renviron.orig

Only repo GitHub - scibrokes/owner: Personal CV facing error as time being but not other repos, normally when specific project caused startup blank page error, try to switch to no project and setwd() set the path the that project for github fetch (pull/push).


remarks: just wonder why rprofile and startup::startup() became slower, take dozen of seconds but not start on spot without delay as usual.

1 Like

Continuing the discussion from GitHub SSH doesn't work:

You can only push to two types of URL addresses:

source: About remote repositories - GitHub Docs

Referred to above link and works (Noted, HTTPS URL required tokens but SSH URL properties won't).

$ git remote set-url origin git@github.com:scibrokes/owner.git and repo GitHub - scibrokes/owner: Personal CV working smoothly on RStudio now.

1 Like

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.