Trying to copy and paste a large amount of text from gnome-terminal via the X11 PRIMARY selection freezes the recipient
Steps to reproduce:
- Open a new terminal tab
- Produce a large amount of output (e.g. cat pygame-py38-error-that-kills-clipboards.txt)
- Select the last line of the text by triple-clicking
- Select the entire text by hitting Ctrl+Shift-Home and Shift-clicking the first line of the text
- Try to use middle-click paste into an X11 application, or (easier) run
xclip -o | wc
What I expect:
- the text to be pasted
What actually happens:
- the recipient application hangs waiting for ... something, until I get bored and ^C it 8 minutes and 59 seconds later. (Chromium actually times out after like 5 minutes, and I can use that particular browser tab again, but the paste doesn't succeed.)
Other relevant information:
- pasting works fine if I try to paste into a native Wayland application such as gedit
- copying and pasting works if I use the CLIPBOARD rather than PRIMARY selection (step 4A: hit Ctrl+Shift+C, step 5:
xclip -o -selection CLIPBOARD | wc
I'm on Ubuntu 19.04 with gnome-terminal 3.32.1 using VTE 0.56.1.
I'm attaching the file that lets me reliably reproduce this issue: pygame-py38-error-that-kills-clipboards.txt