Skip to content

Long Rmd chunk output causes RStudio to hang when opening file / session #5518

Closed

Description

@dfalty

System details

RStudio Edition : Desktop and Server
RStudio Version : 1.2.1578-4 & 1.3.482-1

Steps to reproduce the problem

  1. Create a rmd file with the following chunk
```{r}
for (i in 1:50000) {
  print(i)
}
```
  1. Run the chunk
  2. Close the file
  3. Open the file
  4. Observe very long hang until RStudio is responsive

Describe the problem in detail

Long Rmd chunk output causes RStudio to hang when opening file / session. Happens on desktop and server but server seems worse because you continually get that the browser is unresponsive messages. I'm hoping there is something we can do to make this experience better.
This was found in a rstudio.cloud project. When the user opened the rstudio.cloud project, the RStudio session started with the file already opened and froze the session immediately.

Activity

  1. modified the milestones: v1.3, v1.2-patch on Oct 8, 2019
  2. dfalty commented on Oct 8, 2019

    @dfalty
    Author

    Changing to the 1.2-patch for discussion since there was a large class that was affected by this on rstudio.cloud.

  3. self-assigned this
    on Oct 9, 2019
  4. added 2 commits that reference this issue on Oct 17, 2019
  5. jmcphers commented on Oct 17, 2019

    @jmcphers
    Member

    Backported to 1.2-patch in bcdaf57

  6. dfalty commented on Oct 21, 2019

    @dfalty
    Author

    Verified fixed 1.2.5016-1

  7. rguliev commented on Nov 3, 2021

    @rguliev

    Hello,

    I am facing the same problem. Is there any available workaround?
    My assumption is that the report contains too many ggplots.

    R version: 4.1.0
    Rstudio version: 1.4.1717
    Rmd file size: 10.2Kb
    built HTML report size: 1.5Mb
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions