Using RStudio in a VNC session
Rstudio per default wants to use a GPU for rendering. Disabling this by setting the following environment variable before starting rstudio is recommended as a solution to similar problems:
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
To use RStudio in a VNC session or with X11 forwarding, add the line desktop.renderingEngine=software below the section [General] to the file $HOME/.config/RStudio/desktop.ini.
The file might then look something like this:
[General] cookies=@Invalid() desktop.renderingEngine=software [mainwindow] geometry=@ByteArray(...