New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R starts twice when opening Rstudio #6907
Comments
|
Also, for what it's worth, this isn't R starting twice but just the banner printing twice -- R is only starting once, so this is totally harmless! |
|
I believe this should be fixed via 874cf92 (rstudio/rstudio-pro#1675 in Pro repository) |
|
I still have this issue. R-4.0.2 and RStudio Desktop 1.3.1073 on Win10. It happens on old rstudio projects (but not on new created ones). If I close all open files then banner is duplicated rarely, when some files are open then duplicated always. Event logs for "no files open" scenario looks the same (graph) regardless of whether banner is duplicated or not. But in details the third |
|
@tentacles-from-outer-space - thanks for checking in and letting us know that this issue is still impacting you. The ticket that @kevinushey mentioned as potentially fixing this issue (it has not been verified yet, but the thought is that it will fix it) is currently live in our daily build of the upcoming 1.4 release (available for download HERE). If you get the chance will you let us know if the issue is still present in that build? |
|
Well, on 1.4.722 still happens. For my old project definitely less often (like one out of ten? almost never), but seems like it loading faster. But I got another old project on a network share, which loads slower (reading times?) and duplicate banner every time. I got event logs (help->diagnostic->request log), but they are hard to anonymize, so I prefer to share it via private message (in case I missed something). |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions. |
|
Closing since we can't reproduce this and don't have any other leads. |
|
I checked this with newest version (1.4.1103) and it is still happening. I was able to reproduce it by makinnng project on network share (to slow down access time) and under heavy load (top cpu usage). |
|
I noticed this for the first time today as well, with the version 1.4.1548. Happened multiple times after closing and starting Rstudio, and then it dissappeared. |
|
I'm also seeing this on RStudio server v 1.4.1106-5, only with R versions 4.0.0 and above. If I open a session with R version 3.6.3 no issue. Also notice loading wheels in the Environment and Files panes when second R banner is waiting to be loaded. |
|
Also reported in Pro ticket #63358. |
|
It seems like this happens when:
The underlying question, I think, is why that subsequent get_events RPC is being canceled. |
|
I have some hints as to why this is happening, at least on master. Basically, the "ep" field on async_completion RPCs is not sent. If the most recent RPC happens to be an async completion RPC, then this will trigger a restart of the get_events stream. If this happens during startup, this will imply the initial set of events via get_events will be re-retrieved and replayed, leading to the console banner being duplicated. The solution, I think, is to mark "ep" = "false" on async completions here: rstudio/src/cpp/session/SessionRpc.cpp Lines 265 to 269 in 17118e0
And here: rstudio/src/cpp/session/SessionModuleContext.cpp Lines 2346 to 2350 in 17118e0
I think now that we're using async RPCs by default, this is going to be a lot more common with 1.5 in high-latency environments, so I think it's worth fixing for 1.5. |
|
I currently have the "banner" showing up three times when I open RStudio, and I came here seeking answers. I'm running RStudio 1.4.1717 on Windows 10 64-bit, with R 4.1.0 "Camp Pontanezen". I've noticed the banner sometimes repeats just once or not at all. Since previous posters indicate this isn't a real problem, I feel better -- just need the reassurance nothing is wrong. |
|
@sjackson1997, would you be willing to test the latest daily builds to see if the issue is resolved there? |
|
@kevinushey Sure, I'll give it a shot. I do real work on this machine, so hopefully I can keep current version installed in parallel (?). Sorry for the newb question. I just usually avoid daily builds, but I want to help and contribute, so I'm willing to try. |
|
@sjackson1997 That's a valid concern! You can get an installer-less build at https://dailies.rstudio.com/rstudio/oss/windows/xcopy/ which when unzipped contains a copy of RStudio Desktop which you can use for testing, without installing over your current version of RStudio. If you want to be extra safe, you can create a backup of your current state using the directories listed in https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-Desktop-s-State . (The instructions are for resetting your current state, but it includes the relevant directories to back up.) |
|
So far, when I've run a daily build, I've not see the issue repeated using the same computer as my "stable" build which has the issue. I haven't run it much, though, because I'm usually doing regular work. |
|
@sjackson1997 That's good to hear! I'll mark this issue as closed, then. If you run into any more issues, please let us know. |
|
@tentacles-from-outer-space -- the next time the issue occurs, can you please use |
|
On R-4.0.5 and I cannot test on this server but on another I didn't seen it with R-4.1.2 |
|
@tentacles-from-outer-space, thank you -- this is helpful. It looks like, for some reason, the There is also an (apparently spurious?) cancellation of the first |
|
And for newest environment. [edit]: i open new document before log request so I supposed it is messed up |
|
For what it's worth. I had this issue for a long time (see #4085), but with the latest version of RStudio (RStudio 2022.02.0+443) it seems completely gone and only one banner is printed when opening a project. |
|
@BartJanvanRossum Thank you very much! This is good to know—I'm glad to hear that the problem is resolved, at least in your case. |
|
I ran into this issue with rhel8 and version 2022.06.0-daily+437.pro2 |
|
A somewhat similar issue reported and fixed on the Pro repository: rstudio/rstudio-pro#1675 |







System details
Steps to reproduce the problem
Describe the problem in detail
R starts twice when opening Rstudio. I've tried re-installing Rstudio and installing a preview version. I always see the start-up text twice
This doesn't happen when opening the standard RGui from CRAN.
Discussed on Rstudio community as well: https://community.rstudio.com/t/r-starts-twice-when-opening-rstudio/66535
Describe the behavior you expected
I expect to only see the start-up message for R once.
The text was updated successfully, but these errors were encountered: