I’ve been using the new RStudio (Version 1.1.383) on a Mac (Sierra Version 10.12.6) for the last 2 days and it crashes when I try to restart the R session. Here is the sequence of events:
Mount a network drive
Open RStudio Project from the network drive
Press shift-command-f10 to restart the R session
Here is the error message:
ERROR system error 45 (Operation not supported) [lock-file=/tmp/.Rproj.user/B6148186/sources/s-37259BA1/lock_file]; OCCURRED AT: virtual rstudio::core::Error rstudio::core::AdvisoryFileLock::acquire(const rstudio::core::FilePath &) /Users/rstudio/rstudio/src/cpp/core/file_lock/AdvisoryFileLock.cpp:137
It has something to do with being on a network drive because when I do the same thing on my local drive I have no problem with restarting R. I’ve been using the same workflow for a long time and never had this issue with prior RStudio versions.
The user also reported that an SMB network mount is being used in this case.
The text was updated successfully, but these errors were encountered:
I've reproduced this by setting up an Amazon AWS instance with a Samba share, and mounting that directory locally. Working on an RStudio project in that directory and attempting to restart triggers a crash for me with RStudio v1.1.383, but not with v1.0.153.
It looks like the lockfile associated with the source database of the project is not properly cleaned up when the R session is closed:
This is also true on RStudio v1.0.153, but in that case, the IDE then creates a whole new session rather than bombing out early on. This implies that the 'sources' folder of the project starts bloating (as old sources are never cleaned out), but at least no crash occurs. For example, this is what I see after opening a project living on a Samba share, opening a couple documents, and then restarting it 5 times, using RStudio v1.0.153: