-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Paste Hangs Terminal (Right Mouse Click) #10157
Comments
Are you trying to paste a string with lot of characters? What application are you using as the target of the paste operation? You'll need to give us more information for everyone to better understand the isseue. |
I could be one character or 100+. I've noticed it for a few weeks. The only thing I've been able to notice is the speed with which I do it. If I highlight text, and then right click (copy), right click (paste) then it'll freeze. I just tried it and couldn't make it do it but the terminal was fresh. Possibly has to do with the amount of time the terminal is running. I'll attach more if I can figure out more conditions. |
I'm reproing this frequently too.
Would process dump at hanging state help? Watson bucket id e1924ce408e662d8acd60ed4a1a40008 (2077864584485797896) |
Thanks for the watson ID! @carlos-zamora this is interesting-- During TermnalPage's PasteFromClipboard handler, it's starting to interact with the Windows.DataTransfer APIs to get the clipboard content. During that handling, UIA is servicing a callback to get the selection information. I thought that this would be easy, like "paste has a lock, and UIA wants the lock" but it doesn't seem to have the lock. Let me look at the other threads quick ... |
I can't find a single other thread that would be holding the lock. That's not great. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Nudging Bot. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
I'm still experiencing this issue on Windows 11 |
@davclark which version of the Terminal? IIRC we made some changes recently to how we take the lock for accessibility reasons, which might be fixed in 1.12. Not sure thought - it could be something else entirely. |
I haven't had this happen in a long time. Considered it fixed. I'm on Windows 11 too. |
I'm on 1.11.2921.0, running Ubuntu-20.04. I guess I'll try the preview and see if my problems go away? Note that there may be some interaction with neovim (with Since you mention accessibility, I also use sticky keys (which is a lifesaver for my RSI). |
When copying and pasting I use the right mouse click. Highlight text, right mouse click. Then right mouse click to paste. If this is done too quickly it will hang the Windows Terminal to the point where it has to be killed
The text was updated successfully, but these errors were encountered: