mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-29 17:44:05 +01:00
* #3846: stop the frame workers before the app exits Rayon's pools don't join their threads, so on quit `main` could return while a preview worker was still polling or reading back from the GPU. The process's exit handlers then tore the Vulkan device down under that worker: SIGSEGV (in the readback copy, or a freed dispatch table) or an abort in the validation layer. `Frames::shutdown` drops the queued frames, calls off the viewer's running ones and waits (up to 5 s) for the frames still rendering; `on_exit` calls it first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Wait for all frame workers before tearing down the GPU * Release the shutdown regression worker during test unwinding --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Fredrik Hallin <fredrik.hallin@guidelinegeo.com>