w23 / xash3d-fwgs

Vulkan Ray Tracing fork of Xash3D FWGS engine. Intended to be merged into master at some point in the future.
160 stars 16 forks source link

Validation failure at startup #723

Closed w23 closed 1 month ago

w23 commented 4 months ago

@Aty-0 нам принёс:

В общем даже на ветке vulkan у меня валидация валится на том же месте

Creating swapchain 1920x996 min_count=3 (extent 1920x996) Error: Validation: Validation Error: [ VUID-VkDebugUtilsObjectNameInfoEXT-objectType-02590 ] Object 0: handle = 0x4b72e78, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0x9b4c6071 | vkSetDebugUtilsObjectNameEXT(): Invalid VkImage Object 0x100f. The Vulkan spec states: If objectType is not VK_OBJECT_TYPE_UNKNOWN, objectHandle must be VK_NULL_HANDLE or a valid Vulkan handle of the type associated with objectType as defined in the VkObjectType and Vulkan Handle Relationship table (https://vulkan.lunarg.com/doc/view/1.3.268.0/windows/1.3-extensions/vkspec.html#VUID-VkDebugUtilsObjectNameInfoEXT-objectType-02590)

image

w23 commented 4 months ago

This looks more like miscompilation or memory corruption or something like that. What seems to be going on here is: one of image handles returned by vkGetSwapchainImagesKHR() doesn't point to an VkImage object. Instead it somehow points to a VkInstance, which doesn't make any sense at all.

What you should try:

  1. Nuke your build, and rebuild everything from scratch.
  2. If it still persists, break before the aforementioned function and peek into g_swapchain.images array before and after the function. Then step through the loop below, noting at which particular image index/value it starts to whine.
w23 commented 4 months ago

What's your Vulkan SDK version? Do you have any obsolete vulkan validation layers libraries laying around somewhere, interfering with the Vulkan SDK?

w23 commented 1 month ago

Cannot reproduce.