Terminal Crashing when pasting code from VS Code #18546

Closed
opened 2026-01-31 06:17:18 +00:00 by claunia · 3 comments
Owner

Originally created by @DevTechSolutions on GitHub (Sep 26, 2022).

Windows Terminal version

1.14.2281.0

Windows build number

10.0.19044.0

Other Software

VS Code
Version: 1.71.2 (user setup)
Commit: 74b1f979648cc44d385a2286793c226e611f59e7
Date: 2022-09-14T21:03:37.738Z
Electron: 19.0.12
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.19044
Sandboxed: No

Steps to reproduce

Open VS Code
Open Windows Terminal
Select text in VS Code using right-click Copy
Right-Click to paste into Terminal
Terminal window crashes with no error message

Expected Behavior

The text to be pasted into the terminal window.

From my testing this only seems to occur when copy/paste from VS Code. Pasting text from Word or a Browser works as expected.

Actual Behavior

The application closes with no error message.

Originally created by @DevTechSolutions on GitHub (Sep 26, 2022). ### Windows Terminal version 1.14.2281.0 ### Windows build number 10.0.19044.0 ### Other Software VS Code Version: 1.71.2 (user setup) Commit: 74b1f979648cc44d385a2286793c226e611f59e7 Date: 2022-09-14T21:03:37.738Z Electron: 19.0.12 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Windows_NT x64 10.0.19044 Sandboxed: No ### Steps to reproduce Open VS Code Open Windows Terminal Select text in VS Code using right-click Copy Right-Click to paste into Terminal Terminal window crashes with no error message ### Expected Behavior The text to be pasted into the terminal window. From my testing this only seems to occur when copy/paste from VS Code. Pasting text from Word or a Browser works as expected. ### Actual Behavior The application closes with no error message.
Author
Owner

@carlos-zamora commented on GitHub (Sep 27, 2022):

Doesn't repro with 1.14.2282 (Windows 11 version)

We need to verify this with the Windows 10 version. Throwing it in the current milestone for someone to investigate.

@carlos-zamora commented on GitHub (Sep 27, 2022): Doesn't repro with 1.14.2282 (Windows 11 version) We need to verify this with the Windows 10 version. Throwing it in the current milestone for someone to investigate.
Author
Owner

@lhecker commented on GitHub (Oct 25, 2022):

I wrote "foobar" in VS Code, right-click copied it and right-click pasted it into Terminal 1.15 without crashes. I then opened a 100MB text file copied and pasted it the same way. Apart from gobbling up 2GB of memory and taking ages to complete, nothing happened there either.

@DevTechSolutions If this issue still happens for you, I believe we'd need more details: What shell and shell version are you using? What text reproduces the issue? Even plain text without any plugins loaded in VS Code?

@lhecker commented on GitHub (Oct 25, 2022): I wrote "foobar" in VS Code, right-click copied it and right-click pasted it into Terminal 1.15 without crashes. I then opened a 100MB text file copied and pasted it the same way. Apart from gobbling up 2GB of memory and taking ages to complete, nothing happened there either. @DevTechSolutions If this issue still happens for you, I believe we'd need more details: What shell and shell version are you using? What text reproduces the issue? Even plain text without any plugins loaded in VS Code?
Author
Owner

@ghost commented on GitHub (Oct 29, 2022):

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.

@ghost commented on GitHub (Oct 29, 2022): 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**.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18546