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

tst_QGraphicsView::acceptMouseDoubleClickEvent is flaky

    XMLWordPrintable

Details

    Description

      tst_QGraphicsView::acceptMouseDoubleClickEvent has been flaky in CI on openSUSE.

      Example failure with some extra manually added debug output:

      ********* Start testing of tst_QGraphicsView *********
      Config: Using QtTest library 5.11.0, Qt 5.11.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 7.3.1 20180307 [gcc-7-branch revision 258314])
      PASS   : tst_QGraphicsView::initTestCase()
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() double click event
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() itemsAtPosition( QPoint(99,49) QPointF(-1,-1) QWidget(0x1bb47a0) )
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() transform: 1
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() index rect: QRectF(-1,-1 1x1)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() index rect adjusted: QRectF(-1,-1 1x1)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() index found items: ()
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event pos: QPointF(0,0)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event scenePos: QPointF(-1,-1)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event screenPos: QPoint(99,49)
      QWARN  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event handler: items under mouse count: 0
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() scene item count: 0
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() scene item count after add: 1
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() scene items: (QGraphicsItem(0x1bdef30, pos=0,0, flags=(ItemIsMovable)))
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() global coordinates: QPoint(99,49)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() scene item count after event loop: 1
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() scene items: (QGraphicsItem(0x1bdef30, pos=0,0, flags=(ItemIsMovable)))
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() item bounding rect: QRectF(-0.5,-0.5 2001x2001)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() global coordinates: QPoint(840,71)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() double click event
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() itemsAtPosition( QPoint(99,49) QPointF(98,48) QWidget(0x1bb47a0) )
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() itemsAtPosition: !isTransformed, rect: QRectF(-650,19 1x1)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() index rect: QRectF(-650,19 1x1)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() index rect adjusted: QRectF(-650,19 1x1)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() index found items: ()
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event pos: QPointF(0,0)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event scenePos: QPointF(98,48)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event screenPos: QPoint(99,49)
      QWARN  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event handler: items under mouse count: 0
      FAIL!  : tst_QGraphicsView::acceptMouseDoubleClickEvent() 'view.doubleClickAccepted' returned FALSE. ()
         Loc: [tst_qgraphicsview.cpp(3040)]
      PASS   : tst_QGraphicsView::cleanupTestCase()
      Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 78ms
      ********* Finished testing of tst_QGraphicsView *********
      

      Example success with same debug output:

      ********* Start testing of tst_QGraphicsView *********
      Config: Using QtTest library 5.11.0, Qt 5.11.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 7.3.1 20180307 [gcc-7-branch revision 258314])
      PASS   : tst_QGraphicsView::initTestCase()
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() double click event
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() itemsAtPosition( QPoint(847,78) QPointF(-1,-1) QWidget(0x115e740) )
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() transform: 1
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() index rect: QRectF(-1,-1 1x1)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() index rect adjusted: QRectF(-1,-1 1x1)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() index found items: ()
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event pos: QPointF(0,0)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event scenePos: QPointF(-1,-1)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event screenPos: QPoint(847,78)
      QWARN  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event handler: items under mouse count: 0
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() scene item count: 0
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() scene item count after add: 1
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() scene items: (QGraphicsItem(0x1189360, pos=0,0, flags=(ItemIsMovable)))
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() global coordinates: QPoint(847,78)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() scene item count after event loop: 1
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() scene items: (QGraphicsItem(0x1189360, pos=0,0, flags=(ItemIsMovable)))
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() item bounding rect: QRectF(-0.5,-0.5 2001x2001)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() global coordinates: QPoint(840,71)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() double click event
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() itemsAtPosition( QPoint(847,78) QPointF(98,48) QWidget(0x115e740) )
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() itemsAtPosition: !isTransformed, rect: QRectF(98,48 1x1)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() index rect: QRectF(98,48 1x1)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() index rect adjusted: QRectF(98,48 1x1)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() index found items: (QGraphicsItem(0x1189360, pos=0,0, flags=(ItemIsMovable)))
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event pos: QPointF(0,0)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event scenePos: QPointF(98,48)
      QINFO  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event screenPos: QPoint(847,78)
      QWARN  : tst_QGraphicsView::acceptMouseDoubleClickEvent() mouse event handler: items under mouse count: 1
      PASS   : tst_QGraphicsView::acceptMouseDoubleClickEvent()
      PASS   : tst_QGraphicsView::cleanupTestCase()
      Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 69ms
      ********* Finished testing of tst_QGraphicsView *********
      

      Attachments

        Activity

          People

            kari.oikarinen Kari Oikarinen
            kari.oikarinen Kari Oikarinen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: