Skip to content

Panic safety #3

Description

@streifmi

Since it's currently UB to panic across an FFI boundary (rust-lang/rust#52652), code executed in the window procedure either must not panic or needs wrapping with catch_unwind. You can then either abort on panic or resume it outside the callback.

Winit catches the panic here and then calls resume_unwind in the main loop here. AFAICT druid-shell doesn't handle this at all.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions