Roadmap 0.10, Fixes
FX.311 CadCraft in Studio on Linux: Download PDF, PNG or SVG froze the window (Wayland; the shell's Save dialog blocked the UI thread)
From suggestion #1827 (2026-11-14, a CadCraft user on MXLinux 25.3, Studio 0.9 AppImage, KDE Plasma 6.3 Wayland; screenshot: the Plot to PDF dialog open, no printers found, the window title "CadCraft 0.9 (Nem válaszol)" = not responding): Download PDF froze the app, the other formats too.
Cause, read in the code: CadCraft's Download PDF, PNG and SVG buttons (and the Open-to-print fallback) clicked an <a download> with a blob: URL instead of host.js download(). In Studio on a computer that goes down the web view's own download path to the shell's on_download (desktop-shell lib.rs), which opened rfd's synchronous GTK Save dialog on the UI thread; inside WebKitGTK's download decision under Wayland that nested loop hangs the window. Every other export uses host.download(), which calls the dialog plugin off the UI thread (cc_save_dialog) and does not freeze. Tablets were never affected.
Built 2026-11-15, three parts. (1) CadCraft, IN THE LAB BUILD (cadcraft/a Discord member): the three buttons and the fallback go through host.download() like every other export, so Studio asks where to save with its own dialog. (2) Studio bridge (bridge.js): the <a download> hook for blob:/data: URLs runs on computers too, so any app's own-data download takes the page's save dialog. (3) Studio shell on Linux (lib.rs): on_download spools the file to a temporary folder and the dialog plugin asks where to keep it once it has arrived (callback form, never blocking the UI thread), then moves it. Windows and macOS keep their dialog. Parts 2 and 3 are written and type-checked (cargo check) and WAIT FOR THE NEXT STUDIO BUILD: nothing a person runs has them yet. Tests: tools/cadcraft-test/browser-print.mjs 21/21 (new Studio stand-in section: the three downloads reach saveDialog + writeFile, zero <a download> clicks), desktop-shell test/bridge.test.mjs 131/131. Not run on a real MXLinux / Plasma Wayland machine. The requester has no account; the hand check needs the next Linux Studio build.
Community comments
No comments yet
Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.
Sign in or create a free account to add a comment.