terminal icon indicating copy to clipboard operation
terminal copied to clipboard

Windows (probably conhost) sometimes gets stuck.

Open 0wwafa opened this issue 1 year ago • 0 comments

For a lack of a better description, look at this screenshot: image

Sometimes, after an out of memory semi-crash, cmd windows remain in this state. If I click on them, nothing happens. (some of them work and open, but others stay in this state) The program run from these windows are still running. It's like the "host" of the window crashed. Obviously if I close them, they close and kill their spawned programs. I wish there was a way to resume them.

Addendum: This happebned to me already a few times in the past. It's like some reference or "father" process is dead and the windows associated with it are unresponsive (as windows, but the processes running inside them are still alive) Also some wsl "bash" windows are affected but no other windows are affected.. so I think it must be some "shell host" or similar process associated with those windows. But I don't know more than that. From past experience I know that if I kill them one by one, every new window (command prompt or bash) work without problems.

I am curious if there is any way to regain control of those windows.

Another example: image

The two windows on the left are responsive, but the 3 on the right are not. They don't pop up when clicking on them or using alt+tab or task manager.

I am 99% positive that the problem relies in CONHOST.

0wwafa avatar Jun 29 '24 09:06 0wwafa