Terminal with PowerShell prompt crashes on input after maximizing and restoring window #1238
Labels
Area-Interaction
Interacting with the vintage console window (as opposed to driving via API or hooks)
Issue-Bug
It either shouldn't be doing this or needs an investigation.
Product-Conhost
For issues in the Console codebase
Product-Terminal
The new Windows Terminal.
Resolution-Fix-Available
It's available in an Insiders build or a release
Milestone
This bug might be related to #175, #1095, or #1206. The specific conditions causing the bug here are different enough from the conditions described in those issues that I thought it might be worth filing a separate issue.
Environment
Steps to reproduce
ls
into the prompt and hit enter.ls
and hit enter again.ls
and hit enter a third time.Expected behavior
ls
works correctly the third time.Actual behavior
The terminal crashes after entering
ls
the third time. I've seen two different types of error message. In one case, the terminal prints the following text in red and then exits right afterwards:In another case, Visual Studio displays a dialog box with the following text (identical to the dialog box from #1095):
Furthermore, after encountering the second error case, the solution sometimes ends up in a state where I can no longer successfully launch CascadiaPackage. Every time I try to start it, I get the same dialog box with the same error message. This has happened to me twice now, and the only solution I've found is to delete the repo and re-clone it. (Even
git clean -dix
didn't get it working again.)I first encountered this bug when running with multiple PowerShell tabs open, and in that case, only the active tab would crash (with the first type of error message).
The text was updated successfully, but these errors were encountered: