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

Crash when hiding windows on Wayland with Vulkan

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • None
    • 6.7, 6.8, 6.9
    • GUI: Vulkan, QPA: Wayland
    • None
    • NixOS (commit 25865a40d14b3f9cf19f19b924e2ab4069b09588)
      Hyprland (commit 5e7925eaeba474cfc283e26b7aa3426ec97424f7, ~0.40ish)
    • Linux/Wayland
    • fa967a897 (dev)

      When hiding a window by setting `visible = false` or deleting it with a loader, the wayland connection dies with the message "Tried to add event to destroyed queue" with a related warning slightly before.

      This is reproducible by running the following qml snippet:

      $ QSG_RHI_BACKEND=vulkan WAYLAND_DEBUG=1 qml test.qml
      import QtQuick
      import QtQuick.Window
      Window {
          id: window
          visible: true
          Timer {
              running: true
              interval: 500
              onTriggered: window.visible = false
          }
      }
      

      The full log from the snippet above is attached.
       

      Note that this does not just apply to xdg_shell windows, but custom shell integrations as well, though interestingly does not appear to apply to xdg_popups.

        1. vulkan.log
          86 kB
          user-b4e76
        2. backtrace.txt
          1 kB
          user-b4e76
        3. vulkaninfo.txt
          197 kB
          user-b4e76
        4. rhiwindow-crash.txt
          6 kB
          Liang Qi
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            davidedmundson David Edmundson
            jirauser69088 user-b4e76 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes