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

can't exit the event loop on Windows if winit never receives a WM_PAINT message #2698

Open
lunixbochs opened this issue Feb 25, 2023 · 0 comments

Comments

@lunixbochs
Copy link
Contributor

I can trigger this in headless CI running under a gitlab-runner as a service. It doesn't happen to me interactively.

The state machine is stuck in HandlingMainEvents - it never receives WM_PAINT, so never enters HandlingRedrawEvents, so never enters Idle, so runner.handling_events() remains true here and we never exit:

https://github.com/rust-windowing/winit/blob/37c0f61/src/platform_impl/windows/event_loop.rs#L290-L294

@lunixbochs lunixbochs changed the title winit can't exit the event loop on Windows if never receives a WM_PAINT message can't exit the event loop on Windows if winit never receives a WM_PAINT message Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants