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

XCB flakiness in tst_qgraphicsscene (race condition caused by the event dispatcher on Linux)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6.1
    • Core: Threads, Other
    • None
    • Linux/X11

    Description

      Some flakiness exist in tst_QGraphicsScene::tabFocus_sceneWithFocusWidgets() between widget.hide() and widget.show().  This is caused by a race condition occuring in qxcbwindow.cpp where the dispatcher might send  show events, before the hide events have been processed properly.  Resulting in failing the test.

      We identified the issue has clearly coming from the event dispatcher.*

      In the tst_QGraphicsScene::tabFocus_sceneWithFocusWidgets() we aimed at removing the antipattern QApplicationPrivate::setActivateWindow(). If the race condition is solved this should pass without issue.

      Nb: We also found that by increasing the time to for example 1500 the test will pass without issue, so we could later confirm that the issue is related to the event dispatcher (where hide() and show() can get on top of each other and make the test fail) 

       

       

      Attachments

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

        Activity

          People

            axelspoerl Axel Spoerl
            fredericl Frederic Lefebvre
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes