Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.6.2
-
None
-
Linux/Wayland: Arch Linux with KDE Plasma 6
GPU: Intel UHD Graphics 630
Description
When closing the QVulkanWindow, a validation error message will popup if validation layer enabled. It says
vkDestroySurfaceKHR(): called before its associated VkSwapchainKHR was destro yed. The Vulkan spec states: All VkSwapchainKHR objects created for surface must have been destroyed prior to destroying surface (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-vkDestroySurfaceKHR-surface-0 1266)
Seems like Vulkan Surface is destroyed before Swapchain is destroyed.
To reproduce,
- compile and run the `hellovulkantriangle` example
- close the window by click the close button on title bar
- the error messages show in the terminal:
vkDebug: Validation Error: [ VUID-vkDestroySurfaceKHR-surface-01266 ] Object 0: handle = 0x5f57e2117ef0, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0xbed408e4 | vkDestroySurfaceKHR(): called before its associated VkSwapchainKHR was destroyed. The Vulkan spec states: All VkSwapchainKHR objects created for surface must have been destroyed prior to destroying surface (https://www.khronos.org/registry/vulkan/specs/1.3-extensions/html/vkspec.html#VUID-vkDestroySurfaceKHR-surface-01266) warning: queue 0x5f57e3f16c40 destroyed while proxies still attached: wl_callback@75 still attached wl_buffer@73 still attached wl_buffer@71 still attached wl_buffer@69 still attached wl_buffer@66 still attached
(btw, sorry for my username which was set long long ago for the annoying user registration when downloading community edition of Qt. I'd like to change one but I found it impossible on this site bugreports.qt.io)