Repository navigation
Keep Open and Save asynchronous to prevent macOS resize crashes - #1127
Merged
bherbruck merged 3 commits intoOct 14, 2026
Merged
Conversation
Karl-VonRichter
marked this pull request as ready for review
October 14, 2026 15:46
The local library rows in the Appearance dialog (tangency-labs#863) still called the picker services synchronously. They now ask with pick_open/pick_save and load or export when the picker answers.
bherbruck
force-pushed
the
fix/macos-async-file-dialogs
branch
from
October 14, 2026 17:15
6ff0f6c to
fe6ea57
Compare
Collaborator
|
Thanks, this is a great fix. Main had picked up the local library rows in the Appearance dialog (#863) since your last push, and they still called the pickers synchronously, so I merged main in and moved those two onto |
This was referenced Oct 14, 2026
tsijercic1
added a commit
to tsijercic1/solidcraft
that referenced
this pull request
Oct 14, 2026
Brings in 26 commits up to 764fcaa. Main took format 20, so manufacturing data is now format 21; docs/features.md is regenerated. Main's file pickers are asynchronous now (tangency-labs#1127), so the Tool Library's import and export and Post Process use app.pick_open / pick_save. Checked on the merged tree: fmt, clippy, layers, assets, and the cam, doc, ui-egui and engine CAM/format tests. The wasm check fails in crates/ui-egui/src/dialogs_library.rs (with_state is native-only but used on wasm); that file is main's, unchanged here. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resizing the main window while Open or Save is open can re-enter winit from
rfd's synchronous AppKit modal loop and abort SolidCraft. Open and Save now use parentedAsyncFileDialogsheets; their answers run on the UI thread in a later frame.The shared picker flow covers Home, File/keyboard actions, imports, exports, canvases, parameters, shortcuts and screenshot saving. Editors, tab changes and model-changing control requests wait for the answer. Save before Close/Quit resumes only after a successful write; cancelling or a failed save keeps the design open. Browser and scenario hosts return ready futures through the same interface.
Fixes #1088.
Validation:
ad562afis green: 12 checks succeeded and four optional checks were skipped.RUSTUP_TOOLCHAIN=1.99.0 RUST_TEST_THREADS=2 RAYON_NUM_THREADS=2 ACTION_MATRIX_JOBS=2 cargo xtask ci. Formatting, assets, licences, layers, Clippy, wasm, 672 UI tests and 109 GUI scenarios pass on the rebased branch. The action matrix passes with bounded workers; the earlier unconstrained run hit geometry timeouts.Actual captures from the public 60 × 40 × 12 mm box reproduction (the native sheet is captured separately from egui's app frames):
Evidence and reproduction notes. The captures are hosted separately and are not committed to the repository.
Local macOS validation caveat: full local CI is blocked by three kernel failures that also reproduce independently on unchanged upstream kernel code, both before and after rebasing onto
fbd8ada7:blend::tests::a_blend_along_a_boss_ends_on_the_box_side_beside_it: blend rejects a non-straight neighbouring edge.issue_851_tests::arc_top_edge_sizes_never_panic: at radius 10, one face does not mesh.issue_851_tests::fillet_the_three_edges_at_the_arcs_front_corner: a tessellation boundary does not lie on its surface.This PR changes no kernel, geometry or sketch code. The remaining long-running workspace checks were stopped once these reproducible baseline failures were confirmed; full local macOS CI is not claimed green. GitHub CI completed successfully as noted above.