Windows: VideoOut crashes intermittently when the Dozen (Vulkan on D3D12) driver is installed, even though the native driver is selected #3255
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-11T03:37:48Z.
On a Windows machine with Microsoft's "OpenCL, OpenGL, and Vulkan Compatibility Pack" installed, which provides Mesa's Dozen Vulkan-on-D3D12 driver (
vulkan_dzn.dll), the VideoOut tests crash intermittently. They crash inside the D3D12 user-mode drivers while the Vulkan instance enumerates devices. AnyPS5 still selects the native driver; Dozen only has to be installed.Setup. Windows 11, NVIDIA GeForce RTX 4070 Laptop GPU plus AMD Radeon 780M, current drivers, WinLibs GCC 15.2.0 r7, Release,
main961b25fe. The loader reports five devices:Measured, 10 runs each:
guest_video_out_resolution_statusguest_video_out_output_modeVK_LOADER_DRIVERS_DISABLE=*dzn*The crashes are
0xc0000005, right afterVulkan surface created, with the faulting thread in a D3D12 user-mode driver. That has beenamdxc64.dllin one run, andnvwgf2umx.dllwithvulkan_dzn.dll/D3D12Core.dllframes in another. Dozen creates D3D12 devices for every adapter duringvkEnumeratePhysicalDevices, and those drivers crash on their own threads.VulkanDevice.cppitself only reads the Dozen devices' properties and skips them, since the native NVIDIA device ranks first. CI doesn't see this because its runners have no Vulkan driver, and these tests skip there.Workaround for users: set
VK_LOADER_DRIVERS_DISABLE=*dzn*, or uninstall the compatibility pack, if a native Vulkan driver is present.Possible fix (needs a decision, so I haven't opened a PR). Before creating the instance, when the user hasn't set
VK_LOADER_DRIVERS_DISABLEorANYPS5_GPU, the WindowsVulkanDevicecould disable*dzn*, and fall back to an instance with Dozen only if no device is found without it. Some machines rely on Dozen as their only Vulkan driver (Windows on ARM, some VMs), so it can't simply be excluded. Opinions on whether that belongs in AnyPS5 or only in the user docs are welcome; I'm happy to implement either.Found with Claude Code.
Imported from boykopovar/AnyPS5. Originally posted by reyani-dev on 2026-10-11T06:08:52Z.
It isn't limited to the VideoOut tests: the AGC tests crash the same way. Same machine,
main4be74d4f, RTX 4070 Laptop (driver 616.92), 10 runs ofagc_driver_flat_loadsthroughctest:VK_LOADER_DRIVERS_DISABLE=*dzn*With Dozen disabled, the whole
ctest -R "^agc_|video_out"set passes 355/355. That makes Dozen the cause of the intermittent GPU-test failures I'd been seeing on this machine.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:26:45Z.
Closing: #3768 documents
VK_LOADER_DRIVERS_DISABLE=*dzn*in USAGE.md.