Windows (probably conhost) sometimes gets stuck. #21912

Closed
opened 2026-01-31 07:58:10 +00:00 by claunia · 3 comments
Owner

Originally created by @0wwafa on GitHub (Jun 29, 2024).

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.

Originally created by @0wwafa on GitHub (Jun 29, 2024). For a lack of a better description, look at this screenshot: ![image](https://github.com/microsoft/terminal/assets/170285982/9e726eb8-0fac-46ec-8bd7-4e63a3b8def5) 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](https://github.com/microsoft/terminal/assets/170285982/6b2c093f-dc2e-454c-af2f-f53b1d529a83) 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.
claunia added the Product-ConhostNeeds-TriageIssue-BugNeeds-Tag-Fix labels 2026-01-31 07:58:10 +00:00
Author
Owner

@carlos-zamora commented on GitHub (Jul 17, 2024):

Thanks for filing! Could you create a dump file using Task Manager for one of these? Also, what version of windows are you on/?

@carlos-zamora commented on GitHub (Jul 17, 2024): Thanks for filing! Could you create a dump file using Task Manager for one of these? Also, what version of windows are you on/?
Author
Owner

@0wwafa commented on GitHub (Jul 18, 2024):

Thanks for filing! Could you create a dump file using Task Manager for one of these? Also, what version of windows are you on/?

hmm I don't have them anymore and it does not happen always... very rarely when memory is full.

About the version, this is something that happened to me in the last years so it affects all versions of windows up until now.
At the moment I am running: Microsoft Windows [Version 10.0.19045.4529]

@0wwafa commented on GitHub (Jul 18, 2024): > Thanks for filing! Could you create a dump file using Task Manager for one of these? Also, what version of windows are you on/? hmm I don't have them anymore and it does not happen always... very rarely when memory is full. About the version, this is something that happened to me in the last years so it affects all versions of windows up until now. At the moment I am running: Microsoft Windows [Version 10.0.19045.4529]
Author
Owner

@carlos-zamora commented on GitHub (Jul 24, 2024):

Ok, we're going to close this then. But if you hit this again, please capture a dump and we'll be happy to reopen it. 😊

@carlos-zamora commented on GitHub (Jul 24, 2024): Ok, we're going to close this then. But if you hit this again, please capture a dump and we'll be happy to reopen it. 😊
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21912