You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Integrated terminal freezes when pasting plain text copied from LibreOffice on Linux #320220
Does this issue occur when all extensions are disabled?: Yes/No
VS Code Version: 1.123.0
OS Version: Kubuntu 26.04 LTS
After updating VS Code, the integrated terminal freezes when pasting text copied from LibreOffice.
The paste target in LibreOffice was plain text, but the issue still occurs.
If the text contains line breaks, the freeze is 100% reproducible.
If I paste the same content into Kate and copy it again, VS Code no longer freezes.
Some single-line text copied from LibreOffice can also trigger the issue.
This only happens in the integrated terminal, not necessarily in the editor.
I can reproduce this consistently. coredumpctl list code shows multiple crashes of /usr/share/code/code with SIGTRAP after reproducing the paste freeze. Most recent entries:
Sat 2026-06-06 18:17:18 CST, PID 93965, SIGTRAP
Sat 2026-06-06 18:18:18 CST, PID 131815, SIGTRAP
Sat 2026-06-06 18:29:43 CST, PID 136724, SIGTRAP
So this is not just a UI hang; VS Code eventually dumps core.
I checked the clipboard types with wl-paste --list-types after copying the problematic text from LibreOffice. The clipboard contains multiple LibreOffice/rich text targets:
After copying the same text through Kate first, the issue usually disappears, which likely means Kate normalizes the clipboard to simpler plain text targets.
Low professionalism comment incoming. I have a similar issue on MacOS 26.5.1 M1 with VS Code 1.123.0 in the integrated terminal.
Copying >=1024 characters from the integrated zsh terminal, running a python program expecting input(), and then pasting it into said terminal causes the terminal to freeze.
Pasting 1023 characters (or fewer) does not trigger the freeze (I could press enter and my program ran successfully).
Pasting into the editor does not trigger the freeze.
Copying from an online lorem ipsum generator triggers/does not trigger the freeze under the same conditions.
Does this work with all extensions disabled? Yes
Do newlines affect anything? I didn't figure out a way to test this
1024? really? Yes, this is the exact breaking point (not including pressing enter)
This also happens in the integrated python terminal with extensions enabled.
What are your settings? No clue and I can't be bothered to try to learn which ones are relevant or how to find them.
Activity
Iamliuxiaozhen commentedon Jun 6, 2026
Additional information:
I have already set:
"terminal.integrated.gpuAcceleration": "off"
Iamliuxiaozhen commentedon Jun 6, 2026
After force-closing VS Code, KDE's crash reporter showed that VS Code generated a core dump.
Signal: 5 (TRAP)
Message: Process (code) dumped core.
Iamliuxiaozhen commentedon Jun 6, 2026
I can reproduce this consistently.
coredumpctl list codeshows multiple crashes of/usr/share/code/codewithSIGTRAPafter reproducing the paste freeze. Most recent entries:So this is not just a UI hang; VS Code eventually dumps core.
Iamliuxiaozhen commentedon Jun 6, 2026
There is no paste preview/confirmation. VS Code freezes immediately after pressing Ctrl+Shift+V in the integrated terminal.
Iamliuxiaozhen commentedon Jun 6, 2026
I checked the clipboard types with
wl-paste --list-typesafter copying the problematic text from LibreOffice. The clipboard contains multiple LibreOffice/rich text targets:After copying the same text through Kate first, the issue usually disappears, which likely means Kate normalizes the clipboard to simpler plain text targets.
Iamliuxiaozhen commentedon Jun 6, 2026
Session type: Wayland
Ballbattle commentedon Jun 7, 2026
Low professionalism comment incoming. I have a similar issue on MacOS 26.5.1 M1 with VS Code 1.123.0 in the integrated terminal.
Copying >=1024 characters from the integrated zsh terminal, running a python program expecting input(), and then pasting it into said terminal causes the terminal to freeze.
Pasting 1023 characters (or fewer) does not trigger the freeze (I could press enter and my program ran successfully).
Pasting into the editor does not trigger the freeze.
Copying from an online lorem ipsum generator triggers/does not trigger the freeze under the same conditions.
Does this work with all extensions disabled? Yes
Do newlines affect anything? I didn't figure out a way to test this
1024? really? Yes, this is the exact breaking point (not including pressing enter)
This also happens in the integrated python terminal with extensions enabled.
What are your settings? No clue and I can't be bothered to try to learn which ones are relevant or how to find them.
Iamliuxiaozhen commentedon Jun 7, 2026
I don't have more than 1024 characters; I only need to meet specific conditions to cause the game to freeze.
meganrogge commentedon Jun 9, 2026
Might be fixed by #320646
deepak1556 commentedon Jun 10, 2026
Oliver Lin (@Iamliuxiaozhen) can you share crash dump following https://github.com/microsoft/vscode/wiki/Native-Crash-Issues#creating-a-crash-report
Iamliuxiaozhen commentedon Jun 10, 2026
I reproduced the crash with
code --crash-reporter-directory ~/vscode-debug.3b2e6800-c342-4c17-a037-79bcc614e7d6.tar.gz