docs(build): note the FPS Monitor Vulkan layer that breaks multi-instance tests #20011
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/20011"
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 ghost on 2026-11-14T11:44:02Z.
What
Adds one entry to the Requirements list of
docs/dev/BUILD.md, next to the antivirus entries: the 64-bit implicit Vulkan layer that FPS Monitor installs on Windows breaks the tests that hold more than one Vulkan instance.The layer (
C:\Program Files (x86)\FPS Monitor\tools\fpsmonvk64.dll) is registered inHKLM\SOFTWARE\Khronos\Vulkan\ImplicitLayersunder the nameVK_LAYER_RENDERDOC_Captureand is loaded into every Vulkan process, also while FPS Monitor is not running. With it,vkDestroyInstancereturns with the destroyed instance still linked in the loader's instance list. The next loader call that walks the list reads freed memory. Depending on what the heap did with that memory, the test passes, faults insidevulkan-1.dll, or spins there for ever (the list becomes self-cyclic when the freed address is reused by the next instance).No AnyPS5 code is involved; the driver destroys its instance correctly. The entry only records the cause and the two variables that disable the layer, so that a contributor with this layer does not report these tests as GPU failures.
Standalone reproduction without AnyPS5 code (the offset is the instance list head of loader 1.4.357.0):
Tested
Windows 11 Pro, WinLibs GCC 15.2.0 (
15.2.0posix-14.0.0-ucrt-r7), NVIDIA RTX 5070 Ti, driver 621.01, Vulkan loader 1.4.357.0, full Release build withBUILD_TESTING=ON,ANYPS5_REQUIRE_VULKAN=1.On
mainf0c9b11f91(built with the one-line change of #19899 applied locally, sinceUploadCacheReadOnlyFlush.cppdoes not compile on MinGW without it), the 25 tests the entry names plusguest_video_out_flip_rate,agc_import_settle_initial_dcc,agc_driver_quad_pixel_maskandagc_driver_upload_cache_read_only_flush, run serially:DISABLE_LAYER=1On
main1d0b2c771a, where the investigation was done:ctest -j 14: 25 of the 5227 tests failed for this reason (20 access violations; 5agc_driver_prepared_shadersvariants hung or timed out, one was left for 30 minutes before it was killed).vulkan-1.dll, at+0x486d0/+0x486d5(25) and+0x480f3/+0x48100(10), both in loops over the instance list.agc_driver_native_depth_stencilalone, by layer:VK_LOADER_LAYERS_DISABLE=VK_LAYER_RTSSVK_LOADER_LAYERS_DISABLE=VK_LAYER_RENDERDOC_CaptureVK_LOADER_LAYERS_DISABLE=~implicit~agc_driver_prepared_shaders: hangs 3 of 3 by default with the main thread spinning in the loader's device lookup underVulkanDevice::State::~State()(destroyDevice); passes in 10 s withDISABLE_LAYER=1. In the hung process the list head'snextpoints to itself.Not checked: other versions of FPS Monitor (the installed
fpsmonvk64.dllis dated 2025-06-23), and why the layer skips the unlink (no symbols).python tools/check_conventions.py --base upstream/mainpasses.tools/pr_overlap.pyreported nine open pull requests that touchdocs/dev/BUILD.mdand could not be compared automatically (#1835, #11435, #11436, #15136, #15456, #15719, #16793, #18208, #18210); none of their diffs adds text about Vulkan layers or this list entry.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Pull request closed