9

First off, I wasn't sure if this was a question better suited to Super User or one of the other communities like Cross Validated, so please let me know if this is in the wrong place.

I'm having an issue where while I am actively using RStudio, Windows 10 suspends the Rstudio App process and RStudio freezes.

This shows up in Task Manager with the new little green leaf symbol as seen here. The leaf icon shows up in Task Manager next to Apps/Background processes that have at least one sub-process that is suspended, which you can see when you expand the list on the process tab of Task Manager OR if you look at the blue/ 'Status: Suspended' processes in Resource Monitor.

I've looked for info on whether other people are having the same issue specifically with RStudio and didn't find anything useful. I also searched for general information on how to tell Windows 10 not to suspend a particular app.

  • Most people seem to search for info on these suspended processes because they aren't able to kill a process once suspended. However, I'm not having any issues killing the process once its suspended, simply trying to avoid it being suspended in the first place.

  • Other general info I've found says that Windows suspends processes like Cortana, reminders, etc. that run in the background or are pre-launched, to save battery and/or resources. However, I am actively using RStudio when this happens so I'd really like to find a way to create an exception or exclude RStudio from apps that can be suspended this way.

Software Info: I am using RStudio (Version 1.1.453 / R version 3.5.0 (2018-04-23) -- "Joy in Playing") with the 'enhanced R distribution from Microsoft (Microsoft R Open 3.5.0, CRAN mirror snapshot taken on 2018-06-01) on Windows 10 (Version 10.0.17134 Build 17134).

A few more details:

4
  • 2
    This may be a bug in the app itself, in which case you would want to reach out to the developer for assistance. Commented Jun 26, 2018 at 8:04
  • 1
    github.com/rstudio/rstudio/pull/2744/files Commented Jun 26, 2018 at 15:26
  • 1
    This is a great question, I came here looking for a way to prevent this problem with another application. There must be a way to stop Windows from suspending tasks like this.
    – Andrew
    Commented Mar 17, 2020 at 0:29
  • 1
    Excellen question. If it gets resolved I would like to know the answer. One thought: if you go to Settings>Privacy>Background Apps and uncheck the button for all the apps, does it work?
    – Lukas Kock
    Commented Apr 7, 2021 at 17:31

2 Answers 2

3

Not sure if this helps anyone with similar issues, but I've had similar issues with other software (Qt and Java), and after reading a lot of advices to disable anti-virus software (I don't have any), found the culprit. In my case it was Acronis Active Protection. Not exactly an anti-virus, but something very similar. I usually turn it off right after installing Acronis, but either didn't do it this one time, or it turned back on after an update. After disabling it, processes no longer get suspended. Hope this helps.

1
  • 1
    This proved to be just the right solution for the situation of a java process getting "suspended", when none of the other more common suggestions (that one finds in searching about it) had worked. Thanks so much! Commented May 12, 2023 at 14:50
-1

Settings>Privacy>Background_Apps

Set master slider to OFF.

This worked for me. In my case the settings app itself was freezing within seconds of logging in, so I had to work fast. Infuriating to put it mildly. I see people have been encountering similar problems for the last 5 years...

1
  • 1
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Aug 28, 2023 at 18:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .