Update: I have tried using the new preview version, 1.2.679, and I get the same behavior. I have tried removing ~/.rstudio-desktop/ as well as my .Rprofile and .Renviron files as suggested here. Everything still works as expected with version 1.1.453. It's only version 1.2.xxx that causes this freezing behavior.
25 Jun 2018 13:03:14 [rsession-jakethompson] ERROR system error 77 (No locks available); OCCURRED AT: virtual rstudio::core::Error rstudio::core::AdvisoryFileLock::release() /Users/rstudio/rstudio/src/cpp/core/file_lock/AdvisoryFileLock.cpp:153; LOGGED FROM: rstudio::core::Error rstudio::session::source_database::supervisor::detachFromSourceDatabase() /Users/rstudio/rstudio/src/cpp/session/SessionSourceDatabaseSupervisor.cpp:566
25 Jun 2018 14:07:02 [rsession-jakethompson] ERROR system error 6 (Device not configured) [path=/Users/jakethompson/mount-acf/july-topic-guide/ind-fungible-calibration.R]; OCCURRED AT: bool rstudio::core::FilePath::exists() const /Users/rstudio/rstudio/src/cpp/core/FilePath.cpp:325; LOGGED FROM: bool rstudio::core::FilePath::exists() const /Users/rstudio/rstudio/src/cpp/core/FilePath.cpp:325
Is there something special about the volume / mounts you're attempting to use RStudio with? If these are networked filesystems, can you please share details on what kind of networked filesystem you're using, and how they're mounted?
I don't believe there is anything special about the volumes that I'm mounting. I'm in a similar position as @vnijs, where everything works fine for version 1.1., but not version 1.2.. Additionally, on windows this doesn't cause a problem. That is, I'm able to run version 1.2.* just fine on a window machine, mounting to the same network drives.
On my Mac, I'm connecting to the /Volumes/aai_general/ server using an smb mount (i.e., Finder > Go > Network > smb://path_to_network_drive).
The other network drive (called mount-acf), is my connection to a high performance computing cluster. For that, I connect using sshfs. In the terminal:
@vnijs: unfortunately, the diagnostics report is not particularly illuminating. The latest entries in the report seem to suggest something strange is going on:
26 Jun 2018 18:15:19 [rsession-vnijs] ERROR R SUICIDE: Unexpected exception: vector; LOGGED FROM: void (anonymous namespace)::rSuicide(const std::string &) /Users/vagrant/workspace/IDE/macos/src/cpp/session/SessionMain.cpp:1056
@kevinushey I moved the .rstudio_desktop directory as mentioned in the link you suggested and that seems to have resolved the issue. Rstudio now starts up projects as usual. Nice!
Did something change in how global settings were (re)stored between 1.1.* and 1.2.* perhaps that was causing this issue?
There shouldn't be anything that would cause a project to fail to load. Would you be willing to share your .rstudio-desktop folder so I might try reproducing locally?
I've had this same problem with 1.2.x. I've never been able to open it on my mac as it never gets past the initial loading screen. In earlier versions, I got error messages, but it just never loads.
Today, I completely uninstalled RStudio and R, including the .rstudio-desktop folder, and then tried the 1.2 RStudio preview. Still not opening.
Btw, I tried everything listed in the article RStudio Desktop Will Not Start, best I can find is that when starting RStudio from the command line I see this:
$ /Applications/RStudio.app/Contents/MacOS/RStudio Fri Jun 29 13:29:52 2018
"Uncaught TypeError: Cannot read property 'desktopInfo' of null"
We haven't seen that before -- unfortunately, I'm not sure what could be causing it.
Are you using a CRAN binary of R? I notice that you have an alternate BLAS in use; while I doubt that's the issue it does signal that there might be something unique about your R installation or setup.
I noticed that your diagnostics report contains a personal access token (GITHUB_PAT) -- you might want to take the Gist down just to avoid leaking credentials.
Thanks for following up, as far as I know I haven't installed an alternate BLAS (I think libBlas in Accelerate is standard macOS) and I recently uninstalled everything R and RStudio before re-installing with CRAN binaries, including package directories, preferences, etc.. I do use homebrew but never for R.
How do I choose the standard BLAS, or is there anything else I could try.
And thanks for catching the GitHub PAT, I went through the file before uploading but missed that one.
But I think you do need to do some extra actions to teach R to use Accelerate. For example, by default I see:
> sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS High Sierra 10.13.5
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.5.0
If you want to change the version of BLAS used by R, you usually have to move some symlinks around, e.g.
cd /Library/Frameworks/R.framework/Resources/lib
ln -sf /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Versions/Current/libBLAS.dylib libRblas.dylib
All that aside, I'm still not sure what could be leading to this crash on your system. Just to confirm:
Does RStudio v1.1 run fine on your machine?
What if you open RStudio with e.g. open /Applications/RStudio.app? (Just in case some environment variables or similar are affecting RStudio's startup)
Is it possible you have some antivirus software or similar running that might be impeding the launch of RStudio / the child rsession process?
@kevinushey FYI I recently installed 1.1.* again and then back to the preview version and the issue started back up again. Somehow settings in .rstudio from 1.1.* are causing problems when trying to open in 1.2.*