Hi, I'd like to report a bug that seems to persist across two different laptops, different documents and different RStudio versions.
To recreate: open any .Rmd file, press ctrl + alt + i to create new chunk, press ctrl + v to past something (usually some code I want to modify). My Rstudio becomes unresponsive and I can no longer type or close Rstudio without opening task manager.
I'm using RStudio 1.3.820, Windows 10. This also happened with 1.2.xx versions too
I'm also on Windows 10 and I can't reproduce your problem, could you share a sample .Rmd and content to paste with Ctrl +v that reproduces your issue?
Ok, hopefully this is a more reliable way to reproduce the bug for you:
Create a new .Rmd from the menu (I use the little icon, but both 'work')
Click OK (all default)
Go to line 29
press ctrl+alt+i
type:
blah %>%
mutate(blah = blah) %>%
filter(x != y)
Cursor still flickers, but can no longer do anything in R.
This breaks Rstudio around ~ 75% of time. If it doesn't break, then press ctrl + alt + i, and paste again... eventually it breaks for me.
Ok now I can confirm this is reproducible, but for me, it only crashes if you paste when the cursor is not visible (without scrolling to the bottom of the .Rmd file).
Session Info
sessionInfo()
R version 3.6.2 (2019-12-12)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)
Matrix products: default
locale:
[1] LC_COLLATE=Spanish_Peru.1252 LC_CTYPE=Spanish_Peru.1252 LC_MONETARY=Spanish_Peru.1252
[4] LC_NUMERIC=C LC_TIME=Spanish_Peru.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.6.2 tools_3.6.2 yaml_2.2.1
I think you should file an issue on the GitHub repo and link back to this topic
Done!
opened 11:27PM - 13 Feb 20 UTC
closed 12:06AM - 19 Feb 20 UTC
bug
reproducible
<!--
IMPORTANT: Please fill out this template fully! Failure to do so will resu… lt in the issue being closed automatically.
This issue tracker is for bugs and feature requests in the RStudio IDE. If you're having trouble with R itself or an R package, see https://www.r-project.org/help.html, and if you want to ask a question rather than report a bug, go to https://community.rstudio.com/. Finally, if you use RStudio Server Pro, get in touch with our Pro support team at support@rstudio.com.
-->
### System details
RStudio Edition : Desktop
RStudio Version : 1.3.820 (Bug happens with 1.2.x too)
OS Version : Windows 10
R Version : 3.5.1
### Steps to reproduce the problem
1) Create a new .Rmd from the menu (I use the little icon, but both 'work')
2) Click OK (all default)
3) Go to line 29
4) press ctrl+alt+i
5) type:
```
blah %>%
mutate(blah = blah) %>%
filter(x != y)
```
6) Select the code in step 5 with mouse
7) Press ctrl + c
8) Click line 35
9) Press ctrl+alt+i
10) Press ctrl + v.
I originally posted about this bug here: https://community.rstudio.com/t/create-chunk-with-shortcut-ctrl-alt-i-and-then-paste-ctrl-v-causes-rstudio-to-freeze/52849/3
### Describe the problem in detail
After following the above steps, the code does not get copied and RStudio becomes unresponsive in ~ 75% of cases. If it doesn't freeze, repeating steps 9 and 10 eventually causes the problem to occur. Rstudio doesn't freeze/crash in the traditional sense (i.e. white screen/unexpected closing). Instead, the cursor is still present and flashing, and it all looks normal, but I can no longer type or engage with the gui.
This bug seems independent of RStudio versions or R.
### Describe the behavior you expected
I expect the code I copied in step 7 to be pasted into a new chunk in step 10.
<!--
Please keep the below portion in your issue, and check `[x]` the applicable boxes.
-->
- [x] I have read the guide to submitting good bug reports at https://github.com/rstudio/rstudio/wiki/Writing-Good-Bug-Reports .
- [x] I have installed the latest version of RStudio and confirmed that the issue still persists.
- [ ] If I am reporting a RStudio crash, I have included a diagnostics report. https://support.rstudio.com/hc/en-us/articles/200321257-Running-a-Diagnostics-Report
- [x] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
it only crashes if you paste when the cursor is not visible (without scrolling to the bottom of the .Rmd file).
This doesn't seem to be the case for me. Cursor visible or not doesn't seem to effect me.
1 Like
system
Closed
March 5, 2020, 11:29pm
6
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.