Skip to content
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

Create chunk with shortcut (ctrl+alt+i) and then paste (ctrl+v) causes Rstudio to become unresponsive. #6226

Closed
m1kejay opened this issue Feb 13, 2020 · 4 comments · Fixed by #6259
Assignees
Labels
Milestone

Comments

@m1kejay
Copy link

@m1kejay m1kejay commented Feb 13, 2020

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)
  1. Select the code in step 5 with mouse
  2. Press ctrl + c
  3. Click line 35
  4. Press ctrl+alt+i
  5. 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.

@andresrcs

This comment has been minimized.

Copy link

@andresrcs andresrcs commented Feb 13, 2020

I can confirm this issue

RStudio Edition : Desktop
RStudio Version : 1.3.776
OS Version : Windows 10 pro x64 build (18363)
R Version : 3.6.2

@gregleleu

This comment has been minimized.

Copy link

@gregleleu gregleleu commented Feb 14, 2020

Also the case on Mac

RStudio Edition : Desktop
RStudio Version : 1.3.821
OS Version : Catalina 10.15.2
R Version : 3.6.2

@gregleleu

This comment has been minimized.

Copy link

@gregleleu gregleleu commented Feb 14, 2020

Same as #6210 ?

@kevinushey kevinushey added this to the v1.3 milestone Feb 14, 2020
@kevinushey

This comment has been minimized.

Copy link
Contributor

@kevinushey kevinushey commented Feb 14, 2020

Looks like we're getting stuck in a JS infinite loop here:

Screen Shot 2020-02-13 at 10 09 21 PM

For some reason, w.$oldWidget and w are the same thing, so this loop never exits.

Call stack:

Screen Shot 2020-02-13 at 10 10 41 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants
You can’t perform that action at this time.