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

XCB: Async operations between XCB and X11 cause flakiness in QXcbScreen::topLevelAt()

    XMLWordPrintable

Details

    • Linux/X11
    • 6ac399b8f (dev), 699570999 (dev), 05dfd8a0b (6.8), 44ca150fe (tqtc/lts-6.5), 705bac063 (dev), d952be28f (6.8), 56469059b (tqtc/lts-6.5), c3d3868b9 (dev), d58d59693 (dev), b56192b80 (dev)

    Description

      The Qt XCB implementation knows about a window, when it has been mapped.
      QApplication::topLevelAt() eventually lands in QXcbScreen::topLevelAt(). This method iterates from the screen's root window to the topmost child via xcb_translate_coordinates.
      This call requests coordinate translation from the X11 server, which runs in a separate thread. It might not have been fully updated, when receiving the call - even though the window is mapped and has an ID.

      That leads to flakiness, e.g. in tst_gestures.

      Attachments

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

        Activity

          People

            axelspoerl Axel Spoerl
            axelspoerl Axel Spoerl
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are 2 open Gerrit changes