Switch it to background and foreground fast multiple will crash. #18126

Closed
opened 2026-01-31 06:04:23 +00:00 by claunia · 10 comments
Owner

Originally created by @Cricle on GitHub (Aug 7, 2022).

Windows Terminal version

1.14.1962.0

Windows build number

10.0.19043.0

Other Software

No response

Steps to reproduce

Switch it to background and foreground fast multiple.

Expected Behavior

Click terminal in the taskbar, Window will block and can't switch to foreground

image
here is evtx file
e.zip
here is my terminal setting
settings.zip

Actual Behavior

Click terminal in the taskbar, switch to foreground

Originally created by @Cricle on GitHub (Aug 7, 2022). ### Windows Terminal version 1.14.1962.0 ### Windows build number 10.0.19043.0 ### Other Software _No response_ ### Steps to reproduce Switch it to background and foreground fast multiple. ### Expected Behavior Click terminal in the taskbar, Window will block and can't switch to foreground ![image](https://user-images.githubusercontent.com/26201412/183276921-de6bb821-9476-4e4a-91b9-b66d3db972a4.png) here is evtx file [e.zip](https://github.com/microsoft/terminal/files/9276236/e.zip) here is my terminal setting [settings.zip](https://github.com/microsoft/terminal/files/9276238/settings.zip) ### Actual Behavior Click terminal in the taskbar, switch to foreground
Author
Owner

@zadjii-msft commented on GitHub (Aug 8, 2022):

/feedback

@zadjii-msft commented on GitHub (Aug 8, 2022): /feedback
Author
Owner

@ghost commented on GitHub (Aug 8, 2022):

Hi there!

Can you please send us feedback with the Feedback Hub with this issue? Make sure to click the "Start recording" button, then reproduce the issue before submitting the feedback. Once it's submitted, paste the link here so we can more easily find your crash information on the back end?

Thanks!

image

image

image

@ghost commented on GitHub (Aug 8, 2022): Hi there!<br><br>Can you please send us feedback with the [Feedback Hub](https://support.microsoft.com/en-us/windows/send-feedback-to-microsoft-with-the-feedback-hub-app-f59187f8-8739-22d6-ba93-f66612949332) with this issue? Make sure to click the "Start recording" button, then reproduce the issue before submitting the feedback. Once it's submitted, paste the link here so we can more easily find your crash information on the back end?<br><br>Thanks!<br><br>![image](https://user-images.githubusercontent.com/18356694/140811502-a068f78b-89d2-4587-925a-73e19652b830.png)<br><br>![image](https://user-images.githubusercontent.com/18356694/140811557-cdc22a0f-fa6a-4f6a-953e-73b51f5548a3.png)<br><br>![image](https://user-images.githubusercontent.com/18221333/62478649-6de55400-b760-11e9-806e-5aab7e085a9f.png)
Author
Owner

@Cricle commented on GitHub (Aug 9, 2022):

Already send feedback

@Cricle commented on GitHub (Aug 9, 2022): Already send feedback
Author
Owner

@zadjii-msft commented on GitHub (Aug 9, 2022):

Great, can you click
image

and paste the link here/? It's pretty impossible to look the feedback up in the backend without the direct link to it.

@zadjii-msft commented on GitHub (Aug 9, 2022): Great, can you click ![image](https://user-images.githubusercontent.com/18356694/183637905-17bf2d19-6ce8-4872-99d1-1279093f2d7f.png) and paste the link here/? It's pretty impossible to look the feedback up in the backend without the direct link to it.
Author
Owner

@Cricle commented on GitHub (Aug 10, 2022):

I send same feedback again. @zadjii-msft
https://aka.ms/AAhnrko

@Cricle commented on GitHub (Aug 10, 2022): I send same feedback again. @zadjii-msft https://aka.ms/AAhnrko
Author
Owner

@zadjii-msft commented on GitHub (Aug 10, 2022):

Hmm. For whatever reason, Feedback hub didn't capture this as a crash. It's got conhost dumps in there, but there's no windowsterminal.exe crash. I suppose since this is a hang, it's not technically a crash.

The repro steps make this sound like #13589. I'm tempted to just wait to ship that as a hotfix, and see if that resolves the issue for you.

Unfortunately, I don't think that issue could result in a hang as you're reporting, but who knows. User32 is a dark and mysterious world. Maybe the OS knows that it sent a "restore" to the Terminal, but the WT HWND didn't actually start processing any window messages (the pty HWND did).</conjecture>

@zadjii-msft commented on GitHub (Aug 10, 2022): Hmm. For whatever reason, Feedback hub didn't capture this as a crash. It's got conhost dumps in there, but there's no `windowsterminal.exe` crash. I suppose since this is a _hang_, it's not technically a crash. The repro steps make this sound like #13589. I'm tempted to just wait to ship that as a hotfix, and see if that resolves the issue for you. Unfortunately, I don't _think_ that issue could result in a hang as you're reporting, but who knows. User32 is a dark and mysterious world. Maybe the OS knows that it sent a "restore" to the Terminal, but the WT HWND didn't actually start processing any window messages (the pty HWND did).\</conjecture>
Author
Owner

@Cricle commented on GitHub (Aug 11, 2022):

I try in two different physical computer, but has same result.
I thought max cpu and RAM use will get this problem, I try in almost 0% cpu and has free 6G RAM time, or preview version but the result is still the same.

@Cricle commented on GitHub (Aug 11, 2022): I try in two different physical computer, but has same result. I thought max cpu and RAM use will get this problem, I try in almost 0% cpu and has free 6G RAM time, or preview version but the result is still the same.
Author
Owner

@zadjii-msft commented on GitHub (Aug 18, 2022):

I think this might have been fixed in Preview https://github.com/microsoft/terminal/releases/tag/v1.15.2282.0 - can you try that build and see if this is still happening/?

@zadjii-msft commented on GitHub (Aug 18, 2022): I think this might have been fixed in Preview https://github.com/microsoft/terminal/releases/tag/v1.15.2282.0 - can you try that build and see if this is still happening/?
Author
Owner

@ghost commented on GitHub (Aug 22, 2022):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Aug 22, 2022): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@Cricle commented on GitHub (Aug 23, 2022):

I think this might have been fixed in Preview https://github.com/microsoft/terminal/releases/tag/v1.15.2282.0 - can you try that build and see if this is still happening/?

It won't happen again, thinks !

@Cricle commented on GitHub (Aug 23, 2022): > I think this might have been fixed in Preview https://github.com/microsoft/terminal/releases/tag/v1.15.2282.0 - can you try that build and see if this is still happening/? It won't happen again, thinks !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18126