terminal: [DefApp] PowerShell opened via Win+X errors 50% of the time
Windows Terminal version (or Windows build number)
10.0.21390.1, 1.9.1445.0
Other Software
No response
Steps to reproduce
- Set Windows Terminal Preview to be the default terminal app
- Use Win+X to open the system menu, then click Windows PowerShell
Expected Behavior
Windows Terminal opens, with Windows PowerShell as the active shell.
Actual Behavior
Around 50% of the time it works fine, the other 50% of the time I get the error below:
---------------------------
powershell.exe - Application Error
---------------------------
The application was unable to start correctly (0xc0000142). Click OK to close the application.
---------------------------
OK
---------------------------
Video showing this behaviour:
https://user-images.githubusercontent.com/5821575/119975767-26bbf900-bfae-11eb-9ee7-553a9373d76d.mp4
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (18 by maintainers)
Commits related to this issue
- Persist inbox conhost; delegate control activities to it via a pipe (#10415) Persist inbox conhost; delegate control activities to it via a pipe ## PR Checklist * [x] Closes #10194 - WSL Debug Ta... — committed to microsoft/terminal by miniksa 3 years ago
- Pass inbound handoff message via heap so it cannot race out of scope by the time it reaches the ConsoleIoThread (#10751) Pass inbound handoff message via heap so it cannot race out of scope by the ti... — committed to microsoft/terminal by miniksa 3 years ago
- Pass inbound handoff message via heap so it cannot race out of scope by the time it reaches the ConsoleIoThread (#10751) Pass inbound handoff message via heap so it cannot race out of scope by the ti... — committed to Rosefield/terminal by miniksa 3 years ago
- Pass inbound handoff message via heap so it cannot race out of scope by the time it reaches the ConsoleIoThread (#10751) Pass inbound handoff message via heap so it cannot race out of scope by the ti... — committed to microsoft/terminal by miniksa 3 years ago
Also, thanks for the explanation - greatly appreciated 😄
No problem - I know from first hand experience that debugging something you can’t repro locally can be somewhat difficult, so if you need anything else just let me know.