Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-21321 XCB/QPA support is not finished yet
  3. QTBUG-21100

tst_qmenu autotest unstably fails (qpa, xcb)

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • Not Evaluated
    • 5.0.0 Alpha
    • None
    • qtbase bdc417b3828737334723eae23097c85f70c23a33
      Using QT_QPA_PLATFORM=xcb
      Qt configured with -silent -no-pch -nokia-developer -no-qt3support -force-pkg-config -qpa -xcb
      Ubuntu 10.04 x86 32-bit

    • 17942c48b5495bfe84a60f93390a6f87539d6641

    Description

      This autotest sometimes fails and sometimes passes.

      Here is a log of two subsequent test runs:

      Information of screen 258:
        width.........: 800
        height........: 600
        depth.........: 24
        white pixel...: ffffff
        black pixel...: 0
      
      Running window manager: KWin
      ********* Start testing of tst_QMenu *********
      Config: Using QTest library 5.0.0, Qt 5.0.0
      PASS   : tst_QMenu::initTestCase()
      PASS   : tst_QMenu::getSetCheck()
      PASS   : tst_QMenu::addActionsAndClear()
      created regular window: 62914562
      created regular window: 62914564
      PASS   : tst_QMenu::keyboardNavigation()
      created regular window: 62914566
      created regular window: 62914568
      PASS   : tst_QMenu::focus()
      created regular window: 62914572
      created regular window: 62914577
      PASS   : tst_QMenu::overrideMenuAction()
      created regular window: 62914581
      created regular window: 62914584
      PASS   : tst_QMenu::statusTip()
      created regular window: 62914589
      PASS   : tst_QMenu::widgetActionFocus()
      created regular window: 62914592
      created regular window: 62914594
      PASS   : tst_QMenu::mouseActivation()
      created regular window: 62914600
      created regular window: 62914603
      created regular window: 62914606
      PASS   : tst_QMenu::tearOff()
      created regular window: 62914612
      created regular window: 62914613
      PASS   : tst_QMenu::layoutDirection()
      PASS   : tst_QMenu::task208001_stylesheet()
      created regular window: 62914616
      created regular window: 62914617
      created regular window: 62914618
      PASS   : tst_QMenu::activeSubMenuPosition()
      PASS   : tst_QMenu::task242454_sizeHint()
      created regular window: 62914625
      PASS   : tst_QMenu::task176201_clear()
      created regular window: 62914628
      created regular window: 62914651
      PASS   : tst_QMenu::task250673_activeMultiColumnSubMenuPosition()
      created regular window: 62914655
      PASS   : tst_QMenu::task256918_setFont()
      PASS   : tst_QMenu::menuSizeHint()
      SKIP   : tst_QMenu::task258920_mouseBorder() QTBUG-20753 QCursor::setPos() / QTest::mouseMove() doesn't work on qpa
         Loc: [tst_qmenu.cpp(831)]
      PASS   : tst_QMenu::setFixedWidth()
      PASS   : tst_QMenu::deleteActionInTriggered()
      created regular window: 62914658
      created regular window: 62914661
      FAIL!  : tst_QMenu::pushButtonPopulateOnAboutToShow() '!lastMenu->geometry().intersects(b.geometry())' returned FALSE. ()
         Loc: [tst_qmenu.cpp(904)]
      created regular window: 62914665
      created regular window: 62914668
      QWARN  : tst_QMenu::QTBUG7907_submenus_autoselect() QXcbWindowSurface: Unable to attach to shared memory segment 
      QWARN  : tst_QMenu::QTBUG7907_submenus_autoselect() QXcbWindowSurface: Error while marking the shared memory segment to be destroyed 
      QWARN  : tst_QMenu::QTBUG7907_submenus_autoselect() QXcbWindowSurface: Unable to attach to shared memory segment 
      QWARN  : tst_QMenu::QTBUG7907_submenus_autoselect() QXcbWindowSurface: Error while marking the shared memory segment to be destroyed 
      PASS   : tst_QMenu::QTBUG7907_submenus_autoselect()
      created regular window: 62914676
      created regular window: 62914679
      PASS   : tst_QMenu::QTBUG7411_submenus_activate()
      created regular window: 62914685
      created regular window: 62914688
      XCB error: 2 (BadValue), sequence: 1281, resource id: 0, major code: 12 (ConfigureWindow), minor code: 0
      Caused by: qxcbwindow.cpp:256
      XCB error: 2 (BadValue), sequence: 1299, resource id: 0, major code: 12 (ConfigureWindow), minor code: 0
      Caused by: qxcbwindow.cpp:256
      XCB error: 145 (Unknown), sequence: 1315, resource id: 258, major code: 141 (Unknown), minor code: 2
      Caused by: qxcbwindowsurface.cpp:120
      XCB error: 145 (Unknown), sequence: 1327, resource id: 258, major code: 141 (Unknown), minor code: 2
      Caused by: qxcbwindowsurface.cpp:120
      created regular window: 62914691
      PASS   : tst_QMenu::QTBUG_10735_crashWithDialog()
      PASS   : tst_QMenu::cleanupTestCase()
      Totals: 24 passed, 1 failed, 1 skipped
      ********* Finished testing of tst_QMenu *********
      QtQA::App::TestRunner: test failed, running again to see if it is flaky...
      
      Information of screen 258:
        width.........: 800
        height........: 600
        depth.........: 24
        white pixel...: ffffff
        black pixel...: 0
      
      Running window manager: KWin
      ********* Start testing of tst_QMenu *********
      Config: Using QTest library 5.0.0, Qt 5.0.0
      PASS   : tst_QMenu::initTestCase()
      PASS   : tst_QMenu::getSetCheck()
      PASS   : tst_QMenu::addActionsAndClear()
      created regular window: 62914562
      created regular window: 62914564
      PASS   : tst_QMenu::keyboardNavigation()
      created regular window: 62914566
      created regular window: 62914568
      PASS   : tst_QMenu::focus()
      created regular window: 62914572
      created regular window: 62914575
      PASS   : tst_QMenu::overrideMenuAction()
      created regular window: 62914579
      created regular window: 62914584
      PASS   : tst_QMenu::statusTip()
      created regular window: 62914589
      PASS   : tst_QMenu::widgetActionFocus()
      created regular window: 62914592
      created regular window: 62914594
      PASS   : tst_QMenu::mouseActivation()
      created regular window: 62914600
      created regular window: 62914603
      created regular window: 62914606
      PASS   : tst_QMenu::tearOff()
      created regular window: 62914612
      created regular window: 62914613
      PASS   : tst_QMenu::layoutDirection()
      PASS   : tst_QMenu::task208001_stylesheet()
      created regular window: 62914616
      created regular window: 62914617
      created regular window: 62914618
      PASS   : tst_QMenu::activeSubMenuPosition()
      PASS   : tst_QMenu::task242454_sizeHint()
      created regular window: 62914625
      PASS   : tst_QMenu::task176201_clear()
      created regular window: 62914628
      created regular window: 62914651
      PASS   : tst_QMenu::task250673_activeMultiColumnSubMenuPosition()
      created regular window: 62914655
      PASS   : tst_QMenu::task256918_setFont()
      PASS   : tst_QMenu::menuSizeHint()
      SKIP   : tst_QMenu::task258920_mouseBorder() QTBUG-20753 QCursor::setPos() / QTest::mouseMove() doesn't work on qpa
         Loc: [tst_qmenu.cpp(831)]
      PASS   : tst_QMenu::setFixedWidth()
      PASS   : tst_QMenu::deleteActionInTriggered()
      created regular window: 62914658
      SKIP   : tst_QMenu::pushButtonPopulateOnAboutToShow() Your window manager won't allow a window against the bottom of the screen
         Loc: [tst_qmenu.cpp(899)]
      created regular window: 62914662
      created regular window: 62914665
      QWARN  : tst_QMenu::QTBUG7907_submenus_autoselect() QXcbWindowSurface: Unable to attach to shared memory segment 
      QWARN  : tst_QMenu::QTBUG7907_submenus_autoselect() QXcbWindowSurface: Error while marking the shared memory segment to be destroyed 
      QWARN  : tst_QMenu::QTBUG7907_submenus_autoselect() QXcbWindowSurface: Unable to attach to shared memory segment 
      QWARN  : tst_QMenu::QTBUG7907_submenus_autoselect() QXcbWindowSurface: Error while marking the shared memory segment to be destroyed 
      PASS   : tst_QMenu::QTBUG7907_submenus_autoselect()
      created regular window: 62914673
      created regular window: 62914676
      PASS   : tst_QMenu::QTBUG7411_submenus_activate()
      created regular window: 62914682
      created regular window: 62914685
      XCB error: 2 (BadValue), sequence: 1244, resource id: 0, major code: 12 (ConfigureWindow), minor code: 0
      Caused by: qxcbwindow.cpp:256
      XCB error: 2 (BadValue), sequence: 1262, resource id: 0, major code: 12 (ConfigureWindow), minor code: 0
      Caused by: qxcbwindow.cpp:256
      XCB error: 145 (Unknown), sequence: 1278, resource id: 258, major code: 141 (Unknown), minor code: 2
      Caused by: qxcbwindowsurface.cpp:120
      XCB error: 145 (Unknown), sequence: 1290, resource id: 258, major code: 141 (Unknown), minor code: 2
      Caused by: qxcbwindowsurface.cpp:120
      created regular window: 62914688
      PASS   : tst_QMenu::QTBUG_10735_crashWithDialog()
      PASS   : tst_QMenu::cleanupTestCase()
      Totals: 24 passed, 0 failed, 2 skipped
      ********* Finished testing of tst_QMenu *********
      QtQA::App::TestRunner: test failed on first attempt and passed on second attempt!
      QtQA::App::TestRunner:   first attempt:  exited with exit code 1
      QtQA::App::TestRunner: the test seems to be flaky, please fix this
      

      I think that the screen size and window manager both influence the failing test. There is an attempt to skip a part of the test if the window manager is not co-operative, but it seems to not work in all circumstances.

      Attachments

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

        Activity

          People

            liaqi Liang Qi
            rmcgover Rohan McGovern (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes