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
Closing a conpty terminal can hang the window #76548
bugIssue identified by VS Code Team member as probable bugfreeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesterminalGeneral terminal issues that don't fall under another labelterminal-conptyIntegrated terminal issues related to the ConPTY backendupstreamIssue identified as 'upstream' component related (exists outside of VS Code)windowsVS Code on Windows issues
Alex Ross (@alexr00) this is caused by inherit cursor position which was a fix for terminals that have already been written to before the process launches (just tasks). We have 2 options to workaround the crashes:
Only enable the flag for ter minals that have already been written to, we don't need to pass around as I just need to know if TerminalInstance.write was called. There's still a chance of a crash but it should rarely happen as the most common repro is creating a bunch of terminals and killing them immediately.
Disable the flag completely and move tasks to winpty again.
I'm going to call this fixed in August with this workaround, while a hang likely can still occur it should be very tough to reproduce just with tasks. If people are hitting it they can avoid using the flag completely by configuring the task to not show the intro line and not reuse terminals.
bugIssue identified by VS Code Team member as probable bugfreeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesterminalGeneral terminal issues that don't fall under another labelterminal-conptyIntegrated terminal issues related to the ConPTY backendupstreamIssue identified as 'upstream' component related (exists outside of VS Code)windowsVS Code on Windows issues
Activity
Tyriar commentedon Jul 4, 2019
This is causing integration tests to fail under conpty #75689
Tyriar commentedon Jul 27, 2019
Console team's issue: microsoft/terminal#1810
Tyriar commentedon Aug 8, 2019
Alex Ross (@alexr00) this is caused by inherit cursor position which was a fix for terminals that have already been written to before the process launches (just tasks). We have 2 options to workaround the crashes:
TerminalInstance.writewas called. There's still a chance of a crash but it should rarely happen as the most common repro is creating a bunch of terminals and killing them immediately.alexr00 commentedon Aug 8, 2019
Option 1. Conpty is the way of the future and I'd rather we keep finding new bugs there than seeing the same old winpty bugs.
Only pass conptyInheritCursor for tasks
Tyriar commentedon Aug 8, 2019
I'm going to call this fixed in August with this workaround, while a hang likely can still occur it should be very tough to reproduce just with tasks. If people are hitting it they can avoid using the flag completely by configuring the task to not show the intro line and not reuse terminals.
Tyriar commentedon Aug 16, 2019
I'm getting reports that this is still happening with the workaround:
usernamehw commentedon Sep 22, 2019
The upstream issue microsoft/terminal#1810 (comment) was fixed. Will the fix be included in 1.39 or does it depend on Windows update?
Tyriar commentedon Sep 23, 2019
Alexander (@usernamehw) depends on a Windows update and the fix is too complicated to backport.
Tyriar commentedon Oct 9, 2019
Fixed upstream, closing. You may see this until updating to Windows >1903, other windows crashes tracked in #71966
Tyriar commentedon Mar 3, 2021
Not sure why I reopened this, see #71966