Slowness when accessing shared drives from Windows IDE #1592
A number of Windows users have reported slowness (or freezes) when using RStudio on Windows with a shared drive / networked filesystem, especially when attempting to open new files:
Some users have reported that resetting RStudio's state seems to help alleviate the issue, but it hasn't helped in all accounts.
Marking this as a high priority bug as it seems to affect nearly all RStudio users interacting with shared drives.
The text was updated successfully, but these errors were encountered:
We have discovered an issue with RStudio locking up/freezing, which we can reproduce. Our scenario is as follows:
R version 3.4.2
RStudio version 1.1.383
Windows 10, Active Directory environment with user profiles and an AD user logged in.
The Desktop and Documents folders are redirected to a network drive, e.g. in our case:
Desktop redirected to: H:\Desktop
Documents redirected to: H:\My Documents
\file-alpha\scsa_group2\scsa_fs_student6\student\0999037tT\My (file://file-alpha/scsa_group2/scsa_fs_student6/student/0999037tT/My) Documents
A simple R script saved on either the Desktop or Documents folder, containing the following:
… any changes to the script, such as adding an extra line, e.g. 7+7 or changing one of the existing lines, e.g. 6+6 to 6+6+6 and re-running the code without saving, causes the console to hang for anywhere up to 120 seconds, e.g.
*** hangs at this point ***
We can reproduce this, and it doesn’t happen if the file is opened from a network drive directly, e.g. H:, only when the script is opened from the “special” Desktop or Documents folder:
On starting RStudio we delete the RStudio user profile directory, e.g. "%userprofile%\AppData\Local\RStudio-Desktop" so its always starting in a clean state, but this issue is definitely reproducible for us.
Any help/advice appreciated.
We had a similar issue in my organisation. We think it is because RStudio (actually, rsession.exe as called by RStudio) scans the whole drive when creating or modifying an R script (we used a third-party tool to monitor its activity). In fact, this is does not apply only to networked drives. Setting one's home folder to the local drive does not change this behaviour. Hope this helps.
I had similar problems not involving networked drives and that was not fixed by the most recent RStudio update. I found out .git folders, which are hidden by default, had become unhidden in the affected projects. Re-hiding the .git folder restores normal RStudio project operations. See my more detailed post on #1770
@jmcphers is there anything that I can do with
Also as you identified the sources of the issue could you give some good practices to avoid the occurrence of these slowness issues in general ?
I found this #1758 but it worries me a bit as it seems to fix things that were implemented from 1.1 so it means my issues might not be fixed even when I get the new version.
Maybe there are also some things I can discuss with my network administrators to make the configuration more RStudio friendly ? (if it makes sense, I don't know anything about networks).