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

NewEvents(StartCause::Init) fires after RedrawRequested on MacOS #3235

Open
cwfitzgerald opened this issue Nov 21, 2023 · 2 comments · May be fixed by #3913
Open

NewEvents(StartCause::Init) fires after RedrawRequested on MacOS #3235

cwfitzgerald opened this issue Nov 21, 2023 · 2 comments · May be fixed by #3913

Comments

@cwfitzgerald
Copy link

cwfitzgerald commented Nov 21, 2023

If you run the wgpu examples on macos, you'll notice a crash. This is because the code expects NewEvents(StartCause::Init) to come first on all platforms. However on MacOS, we receive:

[2023-11-21T19:16:08Z INFO  wgpu_example::framework] Event: WindowEvent { window_id: WindowId(WindowId(5087782944)), event: RedrawRequested }
[2023-11-21T19:16:08Z INFO  wgpu_example::framework] Event: NewEvents(Init)

Based on the contract of NewEvents, this feels incorrect

This is with 0.29.3

@kchibisov
Copy link
Member

do you create window inside the event loop or outside the event loop?

@cwfitzgerald
Copy link
Author

cwfitzgerald commented Nov 21, 2023

For the record, it's outside of the event loop - I will report back with it inside the event loop, responding to the resume event

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants