-
Notifications
You must be signed in to change notification settings - Fork 909
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
winit 0.30 panics on exit on macOS #3668
Labels
Comments
5 tasks
5 tasks
Thanks for the reproducer. Enabling a full backtrace reveals the issue to happen when dropping the This will be fixed by #3684, in the meantime, you can prevent this issue by dropping the window yourself inside WindowEvent::CloseRequested => {
let _ = self.window.take();
event_loop.exit();
} |
kchibisov
pushed a commit
that referenced
this issue
May 6, 2024
The delegate is only weakly referenced by NSApplication, so getting it from there may fail if the event loop has been dropped. Fixes #3668.
kchibisov
pushed a commit
that referenced
this issue
May 6, 2024
The delegate is only weakly referenced by NSApplication, so getting it from there may fail if the event loop has been dropped. Fixes #3668.
13 tasks
notgull
pushed a commit
that referenced
this issue
Jun 1, 2024
The delegate is only weakly referenced by NSApplication, so getting it from there may fail if the event loop has been dropped. Fixes #3668.
kchibisov
pushed a commit
that referenced
this issue
Jun 10, 2024
The delegate is only weakly referenced by NSApplication, so getting it from there may fail if the event loop has been dropped. Fixes #3668.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Using this very simple setup that just creates a single window and exits on close:
At exit it will panic with the following error:
While this isn't the biggest issue since it was already exiting, it prevents doing any checks/cleanup after the event loop has run. Using similar code for 0.29 doesn't cause any issues, and neither does using
run_app_on_demand
.macOS version
Winit version
0.30.0
The text was updated successfully, but these errors were encountered: