Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-123214

QVulkanWindow validation error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.2
    • GUI: Vulkan
    • None
    • Linux/Wayland: Arch Linux with KDE Plasma 6
      GPU: Intel UHD Graphics 630
    • Linux/Wayland

    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,

      1. compile and run the `hellovulkantriangle` example
      2. close the window by click the close button on title bar
      3. 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)

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            baka9 Fuck Qt
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes