We’ve observed that RStudio hangs when loading large datasets/environments from previous sessions upon startup of a new RStudio session, therefore creating issues with users losing access to RStudio. The app itself would launch but it just remains as a blank page.
We’ve tried the option of setting the load workspace as false in .config/rstudio/rstudio-prefs.json as follows but it still did not work:
Other than that you may be able to find big files in ~/.rstudio or ~/.rstudio-desktop depending on the version. Once you find them, there could be a way to safely delete them if that’s the course of action you’d want to take.
This issue is still persisting for us especially when a user loads a large dataset – RStudio would freeze and the GUI would become unresponsive. Because of this, we are unable to disable “Restore .RData into workspace at startup” on the GUI but at the same time the user that is facing this problem now have not been saving the .RData file but the RStudio server still shows that 8.1GB memory is used on the dashboard, which tells me that the data is still getting loaded from somewhere. The user was able to clear the environment but nothing seems to work still.
Is there a workaround for this through the terminal? Also where can I find the path to ~/.rstudio or ~/.rstudio-desktop? The version that is installed on our open ondemand is R 4.1.2
RStudio’s docs are sort of all over the place (meaning the’yre not great to find at all and very sparse).
It’s not so much the R version that’s important, but the version of Rstudio itself here that’s important as I believe they’ve changed this local user configuration from one directory to another.
Because we use several versions, I have both (and ~/.config/rstudio) so the config you’re looking for could be anywhere.
That said - please share whatever you can if you can share it because we’ve had users at OSC with the same issue and I cannot really replicate as I’m not an R user myself. So if you have a way to replicate that’d be super helpful.
# Setup Bind Mounts
# Launch the RStudio Server
echo "TIMING - Starting RStudio Server at: $(date)"
if [ "$gpu_job" == "no" ]; then
apptainer -vvv exec --bind="$BPath" "$RSTUDIO_SERVER_IMAGE" rserver
apptainer -vvv exec --nv --bind="$BPath" "$RSTUDIO_SERVER_IMAGE" rserver
The important one here is the sessions directory as it can cause RStudio to get confused when you have multiple instances of the interactive app.
Even so we are still tracking down isolation issues with how RStudio behaves that can causes multiple instances of RStudio to crash each other when running on the same node under certain conditions.
I believe the error your running into is due to RStudio wanting to load a previous session upon startup. Isolating the sessions directory per job may solve this issue as it won’t have a previous session to automatically load.