You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
macOS: crash (panic) when choosing File > Open, native file dialog re-enters the winit event handler #1192
Title: macOS: crash (panic) when choosing File > Open, native file dialog re-enters the winit event handler
Version: SolidCraft 0.10.1 (commit c29b0d2, built 2026-10-14), macOS 27.0.1 (26A434), arm64, universal DMG from the release page.
What happens: In the desktop app, using the File menu to open a file (the native open dialog) makes the app panic and exit. Two crash reports are written at the same moment:
panic in a function that cannot unwind (core/src/panicking.rs:225)
tried to handle event while another event is currently being handled (winit EventHandler::handle_event)
Expected: The open dialog appears and the chosen .solidcraft / .step file opens.
Workaround: Start the app with the file on the command line (SolidCraft file.solidcraft) or drag the file onto the window.
Note: The modal NSOpenPanel run loop appears to deliver an event to winit while it is still inside the handler (run_modal called from the egui frame callback). Possibly the dialog should be shown asynchronously (rfd AsyncFileDialog) or deferred out of the event handler.
This backtrace matches the macOS native-dialog re-entry crash tracked in #1088 and addressed by merged PR #1127 (commit 37547f8e).
In 0.10.1, Open and Save used synchronous rfd::FileDialog calls inside the UI event handler. The fix switches both to parented rfd::AsyncFileDialog sheets and handles their answers in a later frame, avoiding the nested modal event loop. The PR includes delayed-answer regression tests and documented native macOS Open/Save validation while resizing.
I verified that the fix is included in both published releases 0.11.0 and 0.11.1, as well as current main. Please retry with 0.11.1; the reported 0.10.1 build predates the fix.
Thanks for the backtrace, @truerender! File › Open and Save now use asynchronous sheets on macOS, so the native dialog no longer re-enters the event loop (#1127). It's in the released 0.14.0 and later, so please update; if you still see it there, just comment and we'll reopen.
Activity
Karl-VonRichter commentedon Oct 14, 2026
This backtrace matches the macOS native-dialog re-entry crash tracked in #1088 and addressed by merged PR #1127 (commit
37547f8e).In 0.10.1, Open and Save used synchronous
rfd::FileDialogcalls inside the UI event handler. The fix switches both to parentedrfd::AsyncFileDialogsheets and handles their answers in a later frame, avoiding the nested modal event loop. The PR includes delayed-answer regression tests and documented native macOS Open/Save validation while resizing.I verified that the fix is included in both published releases 0.11.0 and 0.11.1, as well as current
main. Please retry with 0.11.1; the reported 0.10.1 build predates the fix.jyviko commentedon Oct 17, 2026
Thanks for the backtrace, @truerender! File › Open and Save now use asynchronous sheets on macOS, so the native dialog no longer re-enters the event loop (#1127). It's in the released 0.14.0 and later, so please update; if you still see it there, just comment and we'll reopen.