Skip to content

eframe: "App quit unexpectedly" on macOS #2768

@tautropfli

Description

@tautropfli

Describe the bug
Sometimes when I close my eframe app on macOS, I receive a crash notification from macOS saying that the "app quit unexpectedly".

To Reproduce
I have created a minimal reproducible example here:
https://github.com/bash/egui-issue-2768/blob/main/src/main.rs
I'm using the latest version of eframe from the master branch.

It can be a bit finicky to observe the crash message.
Sometimes it happens a few times in a row, then it doesn't.

Some observations:

  • It only seems happens when the persistence crate feature is enabled and persist_native_window returns true.
  • It does not happen when I quit the app using ⌘ Q.
  • It does not happen when run_and_return is disabled in the NativeOptions.

Expected behavior
No crash notification.

Screenshots
Screenshot 2023-02-28 at 18 29 57

Desktop:

  • OS: macOS
  • Version 13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions