Skip to content
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

[Windows] Window not responding when not in focus #1384

Closed
CryZe opened this issue Jan 10, 2020 · 11 comments
Closed

[Windows] Window not responding when not in focus #1384

CryZe opened this issue Jan 10, 2020 · 11 comments
Labels
B - bug Dang, that shouldn't have happened C - needs investigation Issue must be confirmed and researched DS - windows

Comments

@CryZe
Copy link

CryZe commented Jan 10, 2020

When the window is not in focus, at least on Windows and on the latest master the window gets marked as "not responding" every 10 seconds or so. This does not happen on 0.20.0.

@CryZe
Copy link
Author

CryZe commented Jan 10, 2020

Considering there aren't many changes since 0.20.0, the regression was likely caused by 6a330a2

@CryZe
Copy link
Author

CryZe commented Jan 10, 2020

If the commit actually fixes some bug though, it could also just be that it reveals a bug in wgpu?!

@goddessfreya goddessfreya added DS - windows C - needs investigation Issue must be confirmed and researched B - bug Dang, that shouldn't have happened labels Jan 10, 2020
@Osspial
Copy link
Contributor

Osspial commented Jan 10, 2020

I've confirmed that this is a bug on Winit's end that was caused by that fix, but it's not entirely clear to me how it's happening. I'll do some investigation and get a fix in.

@filnet
Copy link
Contributor

filnet commented Feb 13, 2020

Could be fixed by #1461.

@filnet
Copy link
Contributor

filnet commented Mar 8, 2020

We have pushed a number of critical fixes for Windows. Please retest on master.

@Dooskington
Copy link

Was running into this issue, on Windows 10 64 bit. 😢
Every few seconds, window stops responding, "refreshes", and is back to normal again. I tried on master, and it has somewhat improved, but it is still not quite fixed yet.

Now, the window doesn't stop responding, but the close button gets highlighted, the event loop seems to speed up for a little while, then a Resize event gets fired. Then things go back to normal for a few seconds. Then, the same thing repeats.

@Osspial
Copy link
Contributor

Osspial commented Mar 9, 2020

@Dooskington I'm not able to reproduce that with the standard window example. What do you have the event loop's control_flow set to? Is there an example that reproduces the issue you're running into reliably?

EDIT: Also, does that error still happen on #1496?

@filnet
Copy link
Contributor

filnet commented Mar 9, 2020

If the issue involves Poll mode and request_redraw then it could be a duplicate of #1477

On Windows 10: cargo run --example contrrol_flow

Then with the focus, press R to toggle on request_redraw from MainEventsCleared and press 3 to switch to Poll mode.
Trigger no events for more than 5 seconds (with and without the focus) to see the issue.

I can also see the close button getting highlighted for a brief moment.
The Windows task manager shows the process as not responding.

@Dooskington
Copy link

I am indeed using control flow Poll, and calling request_redraw from MainEventsCleared.

@filnet
Copy link
Contributor

filnet commented Mar 10, 2020

I am indeed using control flow Poll, and calling request_redraw from MainEventsCleared.

So this issue is a duplicate of #1477

@Osspial
Copy link
Contributor

Osspial commented Mar 10, 2020

I'm gonna close this issue then, since the original issue has been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B - bug Dang, that shouldn't have happened C - needs investigation Issue must be confirmed and researched DS - windows
Development

No branches or pull requests

5 participants