PowerShell Core crashs when app is closed #3415

Open
opened 2026-01-30 23:20:48 +00:00 by claunia · 0 comments
Owner

Originally created by @jeffrson on GitHub (Aug 14, 2019).

Environment

Windows build number:  10.0.18362.207
Windows Terminal version (if applicable): 0.3.2171.0
PowerShell Core: 6.2.2, 7.0preview2

Steps to reproduce

Open terminal with PowerShell Core, close app (click "x" top right)

Expected behavior

Application closes without any (obvious) issue....

Actual behavior

Visual Studio as JIT debugger is triggered and reports this unhandled exception of pwsh.exe:
System.InvalidOperationException: "Cannot read keys when either application does not have a console or when console input has been redirected. Try Console.Read."

Originally created by @jeffrson on GitHub (Aug 14, 2019). # Environment ```none Windows build number: 10.0.18362.207 Windows Terminal version (if applicable): 0.3.2171.0 PowerShell Core: 6.2.2, 7.0preview2 ``` # Steps to reproduce Open terminal with PowerShell Core, close app (click "x" top right) # Expected behavior Application closes without any (obvious) issue.... # Actual behavior Visual Studio as JIT debugger is triggered and reports this unhandled exception of pwsh.exe: System.InvalidOperationException: "Cannot read keys when either application does not have a console or when console input has been redirected. Try Console.Read."
claunia added the Needs-TriageResolution-Duplicate labels 2026-01-30 23:20:49 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3415