-
Notifications
You must be signed in to change notification settings - Fork 928
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
Calling Window.redraw_window()
can cause the window to seemingly "destroy and recreate" itself intermittently on Windows 10
#1477
Comments
We have pushed a number of critical fixes for Windows. |
I have reproduced a similar issue. Could be related to this : https://superuser.com/questions/961843/how-does-windows-know-if-a-program-is-not-responding/961910 |
It feels strange to me that that would be the root cause, but I have no idea how |
Yes, it is strange as we do call At first I though it could be caused by the event loop running at full speed but adding a sleep to throttle it does not remove the issue. Poll mode calls only |
And I can't reproduce it on Windows 7. |
On Windows 10, the Task manager will show that the application is "not responding" when not moving the mouse or triggering any kind of event. @maroider can you confirm the same ? Edit: and this happens in Poll mode and only if request_redraw is called. |
I tested this on my machine and it looks like #1496 fixes this issue. |
I was not able to reproduce the issue with #1496 |
If my program calls
redraw_window()
inside theMainEventsCleared
event and I hold my mouse still and don't use my keyboard, the window's decorations will briefly light up as if hovered over and then go back to normal. This happens intermittently. The window's task bar icon will also disappear and reappear at the same time the window decorations blink.Here is a video demonstrating the bug.
The following is the code used in the video:
I've managed to get the bug to appear on both
winit = 0.21.0
and on themaster
branch (9999f53).The text was updated successfully, but these errors were encountered: