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

REG: Hiding and reshowing a sub-window crashes Wayland client

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P0: Blocker
    • 6.9.0 FF
    • 6.9
    • Wayland Compositor
    • None
    • Linux/Wayland
    • e389b1e38 (dev)

    Description

      When reshowing a hidden subwindow, Qt Wayland Compositor will issue a protocol error and crash the client. This does not happen with e.g. mutter

      Create a simple Qt Widgets template app, add a QDialog *w member, then add a button to it and connect it to the following slot:

      void MainWindow::toggleSubWindow()
      {
          if (w == nullptr)
              w = new QDialog(this);
      
          if (w->isVisible())
              w->hide();
          else
              w->show();
      }
      

      Clicking the button three times crashes the app. This is likely triggered by https://codereview.qt-project.org/c/qt/qtwayland/+/583059

      Attachments

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

        Activity

          People

            tvete Paul Olav Tvete
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes