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

  1. Set Windows Terminal Preview to be the default terminal app
  2. 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

Most upvoted comments

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.