Files
effectcraft/crates
8aac28cf6c Quitting while preview frames render no longer crashes at exit (#3846) (#3847)
* #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>
2026-11-28 09:34:44 +01:00
..
…