-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Troubleshooting random Cannot read keys when either application does not have a console or when console input has been redirected errors #23979
Comments
|
|
oh-my-posh disabled, still happened (about 3 minutes ago according to Event Viewer): Didn't start typing in the window, machine didn't get locked or have a screensaver kick in. Other tabs are still fine. I suppose I can run it outside Windows Terminal. Edit First time this happened, the process actually exited out. Above had two lines added. Full console message below:
|
At this point too early to tell for sure, but: On my personal machine I kept the tab open that had crashed (in Windows Terminal) and wasn't experiencing an issue with PowerShell crashing again. Was using the terminal within VS Code as well and it wasn't crashing within there. oh-my-posh was still enabled. Interestingly, it was the first tab in Terminal that crashed. Not 100% that that's been the case for all crashes or not, but definitely was for the majority I can remember. I tend to use the first tab pretty consistently for oh-my-posh disabled + running PowerShell outside Windows Terminal = no issues on my work machine today. Will be enabling oh-my-posh and continuing to use PowerShell without Terminal to see if that trend continues. I was also way slower without multi-tab support, so could be a speed issue. Should be hitting it harder in the next couple of days. |
Prerequisites
Steps to reproduce
Currently experiencing on PowerShell 7.4.3 on Windows, running inside Windows Terminal, but have also experienced with 7.4.2 and 7.4.1.
It's hard to lock down exactly what causes the issue, but I'm using Windows Terminal (1.20.11381.0) with multiple PowerShell tabs. A lot of the commands I'm running are
git
orng
ornpm
related. This is also happening with a co-worker and on a personal machine of mine.I am importing
posh-git
(although not on another machine this fails on),Terminal-Icons
, andoh-my-posh
.Upon giving the window focus or starting to type, the exception noted in a field below is thrown. I'm unable to proceed with the instance that crashed, but my other tabs and Windows Terminal PowerShell instance are fine.
Expected behavior
PowerShell doesn't randomly crash during the day or there's more information to troubleshoot what's causing the crash.
Actual behavior
Event Viewer is essentially the same:
Visuals
The text was updated successfully, but these errors were encountered: