AGC (RTX 5090, Windows): agc_driver_depth_storage leaks 63 VkDeviceMemory objects at device destroy (VUID-vkDestroyDevice-device-05137 reoccurrence) #24620
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 haadeej084 on 2026-11-20T21:11:40Z.
Summary
agc_driver_depth_storageleaks 63VkDeviceMemoryobjects that are not freed beforevkDestroyDevice. The validation layer reportsVUID-vkDestroyDevice-device-05137. This is the same VUID that #1236 fixed for host-importVkBuffer/VkDeviceMemorypairs, butdepth_storagewas not in the original list of 23 affected tests, and the leaked objects here are allVkDeviceMemory(noVkBuffer), suggesting a different code path — likely image memory allocations rather than host imports.Title, test or build step
agc_driver_depth_storageAnyPS5 commit
main223b1645d2(Merge pull request #24052)System
Windows 11 Home 10.0.26200, 13th Gen Intel Core i7-13700KF, NVIDIA GeForce RTX 5090 (32 GB, Blackwell), driver 610.88, WinLibs GCC 15.2.0 UCRT posix-seh r7, Ninja, Release,
BUILD_TESTING=ON.Steps to reproduce
Validation output
The test itself also fails (without the validation layer):
Relationship to #1236
#1236 fixed the same VUID for host-import leaks (
VkBuffer+VkDeviceMemorypairs fromGuestBufferMemory.cpp's import registry). That fix covered 23 tests, all in the flat/global/image-store/scalar family.depth_storagewas not in that set, and the leaked objects here are exclusivelyVkDeviceMemory(noVkBuffer), pointing to image memory allocations in the depth/storage path rather than host imports. This appears to be either:ClearHostImports)Additional validation finding
In the same validation run,
agc_driver_batch_capreportsVUID-vkGetInstanceProcAddr-instance-parameter("Invalid instance") at shutdown, after all test work has completed. This is a use-after-destroy of the VkInstance handle, unrelated to the device memory leak above.AI-assisted: yes.