Repository navigation
Conversation
|
Thank you for explicitly listing the open render/material consumers. I am refreshing #800 and #849 independently before propagating them into #1046/#1060/#1086; I will adapt their new picker calls to this contract when the foundation is available, rather than add another dialog service. For Render PNG export I will capture the explicit completed job ID and overwrite choice when requesting the dialog, then call the existing I will add consumer tests for a delayed answer, document switch/close and retained-image replacement as part of that adaptation. No changes to your PR are required for my current refresh, and I am not modifying your branch. This remains a known integration dependency rather than a claim that the present synchronous render picker is safe on macOS. |
|
The candidate async foundation is now integrated with original ancestry into #849, published head ecf8d10. Thank you for the API and the explicit consumer list. Render export captures its job ID and overwrite choice before app.pick_save; delayed responses cannot redirect the export to another document or substitute a newer retained image. On that combined tree: 698 UI unit tests, 109 scenarios (1 ignored), 21 native app tests, scoped strict Clippy and 11-crate wasm compilation pass. Actual Windows Vulkan/MSAA4 resize/inspect/screenshot calls remain responsive while the native export request is pending; details and captures: #849 (comment) . I did not choose a native save path or claim macOS execution. The isolated probe process was stopped with the picker pending, not counted as a clean shutdown test. Your branch is unchanged, and this is not a claim that #1114 merged. #863 has since merged upstream; I am adapting its two library picker calls in the combined branch next. Full local CI still stops at unrelated #907. The combined PR remains a draft while upstream refresh/review proceeds. |
|
Thanks for adapting the render consumers and for testing on Windows. #863 merged before this PR, so I merged |
|
Thank you for moving the newly merged scalar-library pickers onto the asynchronous service in One extra integration case we covered: an Appearance editor can be closed and replaced while its picker is pending. Binding the callback to the document alone still lets the old answer update the replacement editor. #849 adds an ephemeral editor identity token and a controlled delayed-answer regression, alongside captured overwrite consent. This does not add a second picker service or modify your branch. The existing implementation may be sufficient for your intended modal policy; happy to align the boundary if you prefer a shared editor-generation convention. Current native scalar-library evidence, original editable files and scope of validation. #849 still records its original |
|
I've merged #1127, which makes the same Open/Save change for #1088 with a slightly different API ( |
|
Main has now merged #1127 at This supersedes the earlier #1046/#849 dependency notes for the refreshed PBR branch; #849 itself is still pinned to its previous candidate until separately refreshed. No changes are being pushed to this contributor branch. I will keep the native evidence pins distinct because the older responsiveness probe used your document-routing policy, whereas current main holds tab changes while the picker is open. |
|
Thank you for this, @ingvarch, and for tracking the crash down to the modal loop inside winit's handler. #1127 fixed #1088 the same way (parented AsyncFileDialog sheets polled from the frame) and has just landed, so this now overlaps it almost file for file. I'm closing this one as covered by #1127. If you spot anything your version handles that main still gets wrong, please open a follow-up and I'll gladly review it. |
Change
Closes #1088
On macOS, resizing the window while an Open or Save dialog is open made SolidCraft quit.
rfd::FileDialogran AppKit's modal loop inside the egui frame, that is, inside winit's event handler. The resize sent winit an event while its handler was busy, winit panicked in a callback that can't unwind, and the process aborted. On Linux and Windows the same call froze the window while the dialog was open.Now the dialogs are asynchronous, adapted from PhotoCraft's fix for the same crash (storytold/photocraft#1071, Apache-2.0, row in ATTRIBUTION.md). A command that needs a file asks for it and hands over what to do with the answer. The host shows
rfd::AsyncFileDialogwith the window as parent (a sheet on macOS), the app polls the answer every frame, and the action runs when it arrives. The window keeps drawing and resizing meanwhile.Services::pick_openandpick_saveare gone. Callers useapp.pick_open(|app, path| ..)andapp.pick_save(name, extensions, |app, path| ..). The host callspoll_file_dialog(ctx, show)each frame, because only it has the window to parent the dialog to. All callers are converted, including the two that feat: add local scalar appearance and material libraries #863 added to the Appearance dialog's local library.Validation
-D warnings, assets, licences, layers, i18n, wasm and web-offline-test pass. With--profile ci(as CI):solidcraft-ui-egui692 unit tests and all its integration tests (109 scenarios), and thesolidcraftapp tests pass.ui.resize). The app kept drawing at each size, the sheet moved with the window, and nothing crashed. The app quit cleanly afterwards.Screenshots of the behavior (when observable)
macOS draws the Open and Save panels in a separate process, so a capture of the SolidCraft window doesn't show them. The visible change is that the app no longer quits; the crash reports from before are in #1088.
Integration status
Merged
mainat d399eff into this branch. #863 was merged after this PR opened and added twoservices.pick_*calls (Export design library... and Open library...); the merge commit converts them toapp.pick_save/app.pick_open, so main keeps building after this PR. The earlier rebase on 88432d2 kept both ATTRIBUTION.md rows next to #1031's. The checks above were run again on the merged tree.Open PRs #1086, #1060, #1046, #849 and #800 add new calls to
services.pick_save/services.pick_open, which this PR removes. Whichever lands second needs those calls converted toapp.pick_save(..)/app.pick_open(..). #849 already carries this branch and converts its own calls.