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

Qt wayland may freeze with no available buffer in QWaylandShmBackingStore if window show/hide very fast

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.6.1, 6.7.0 FF
    • 6.6.0
    • QPA: Wayland
    • None
    • Archlinux, KDE Plasma 5.27.9 & KWin
    • Linux/Wayland
    • 6fe83f607 (dev), 18f942f3f (6.6)

    Description

      main.cpp

      Here's a simple program to reproduce the issue.

      It creates two QRasterWindow , the latter one will be resized with show and hide on a QTimer (1ms). The resize is necessary to invalidate the buffer in the backing store.

      The program will almost immediately freeze at this line

      https://github.com/qt/qtwayland/blob/6.6.0/src/client/qwaylandshmbackingstore.cpp#L280

      and it won't recover from the freeze with some log

      qt.qpa.wayland.backingstore: QWaylandShmBackingStore: stalling waiting for a buffer to be released from the compositor...

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            csslayer Weng Xuetian
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes