mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:42:27 +00:00
The visual_regression test binary crashed with SIGSEGV now and then on the Ubuntu CI runner, where wgpu uses Vulkan (WGPU_BACKEND=vulkan) with Mesa's software driver. Four of its tests each create a WgpuTestRenderer, which creates its own Vulkan instance and device, and the test harness runs them on parallel threads. When one test uses its device while another creates or destroys one, the Vulkan loader can read a device entry that is being freed. Each of those tests now takes a shared lock before it creates its renderer and holds it until the renderer is dropped. A poisoned lock is taken over, so a failed test does not block the others.