Skip to content

Integrated terminal freezes when pasting plain text copied from LibreOffice on Linux #320220

Open

Description

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.

Activity

  1. Iamliuxiaozhen commented on Jun 6, 2026

    @Iamliuxiaozhen
    Author

    Additional information:

    I have already set:

    "terminal.integrated.gpuAcceleration": "off"

  2. Iamliuxiaozhen commented on Jun 6, 2026

    @Iamliuxiaozhen
    Author

    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.

    Image
  3. Iamliuxiaozhen commented on Jun 6, 2026

    @Iamliuxiaozhen
    Author

    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.

  4. Iamliuxiaozhen commented on Jun 6, 2026

    @Iamliuxiaozhen
    Author

    There is no paste preview/confirmation. VS Code freezes immediately after pressing Ctrl+Shift+V in the integrated terminal.

  5. Iamliuxiaozhen commented on Jun 6, 2026

    @Iamliuxiaozhen
    Author

    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:

    application/x-openoffice-embed-source-xml;windows_formatname="Star Embed Source (XML)"
    text/rtf
    text/richtext
    text/html
    text/markdown
    text/plain;charset=utf-16
    application/x-openoffice-link;windows_formatname="Link"
    application/x-openoffice-objectdescriptor-xml;windows_formatname="Star Object Descriptor (XML)";classname="8BC6B165-B1B2-4EDD-aa47-dae2ee689dd6";typename="LibreOffice 26.2 文本文档";viewaspect="1";width="17000";height="3000";posx="0";posy="0"
    text/plain;charset=utf-8
    text/plain
    

    After copying the same text through Kate first, the issue usually disappears, which likely means Kate normalizes the clipboard to simpler plain text targets.

  6. Iamliuxiaozhen commented on Jun 6, 2026

    @Iamliuxiaozhen
    Author

    Session type: Wayland

  7. Ballbattle commented on Jun 7, 2026

    @Ballbattle

    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.

  8. Iamliuxiaozhen commented on Jun 7, 2026

    @Iamliuxiaozhen
    Author

    I don't have more than 1024 characters; I only need to meet specific conditions to cause the game to freeze.

  9. meganrogge commented on Jun 9, 2026

    @meganrogge
    Collaborator

    Might be fixed by #320646

  10. added
    info-neededIssue requires more information from poster
    freeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issues
    linuxIssues with VS Code on Linux
    terminalGeneral terminal issues that don't fall under another label
    bugIssue identified by VS Code Team member as probable bug
    on Jun 10, 2026
  11. Iamliuxiaozhen commented on Jun 10, 2026

    @Iamliuxiaozhen
    Author

    I reproduced the crash with code --crash-reporter-directory ~/vscode-debug.

    3b2e6800-c342-4c17-a037-79bcc614e7d6.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugfreeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesinfo-neededIssue requires more information from posterlinuxIssues with VS Code on LinuxterminalGeneral terminal issues that don't fall under another label

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions