Skip to content

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

@cwfitzgerald

Description

@cwfitzgerald

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    DS - appkitAffects the AppKit/macOS backend

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions