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

Window is not visible when running application that uses AnimatedSprite

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.12
    • Fix Version/s: 5.11.1
    • Labels:
      None
    • Environment:
      macOS
    • Commits:
      b7a1bcd83a8f68185b617b860cef6f2d2d7c8d9b

      Description

      When running the example in QTBUG-68490 with the dev branch, the window is never shown. With 5.11 it works.

      Debugging and then pausing shows this stack trace (QSG_RENDER_LOOP=threaded):

      1  __psynch_cvwait                                                                                                                                                                              0x7fff7e418a1e 
      2  _pthread_cond_wait                                                                                                                                                                           0x7fff7e5e1589 
      3  QWaitConditionPrivate::wait(QDeadlineTimer)                                                                                                                  qwaitcondition_unix.cpp    148  0x1018c2bea    
      4  QWaitCondition::wait(QMutex *, QDeadlineTimer)                                                                                                               qwaitcondition_unix.cpp    227  0x1018c2b1f    
      5  QWaitCondition::wait(QMutex *, unsigned long)                                                                                                                qwaitcondition_unix.cpp    210  0x1018c29ed    
      6  QSGThreadedRenderLoop::polishAndSync(QSGThreadedRenderLoop::Window *, bool)                                                                                  qsgthreadedrenderloop.cpp  1210 0x1001e9e54    
      7  QSGThreadedRenderLoop::handleExposure(QQuickWindow *)                                                                                                        qsgthreadedrenderloop.cpp  1004 0x1001e96c6    
      8  QSGThreadedRenderLoop::exposureChanged(QQuickWindow *)                                                                                                       qsgthreadedrenderloop.cpp  915  0x1001e8d14    
      9  QQuickWindow::exposeEvent(QExposeEvent *)                                                                                                                    qquickwindow.cpp           226  0x1002648d1    
      10 QWindow::event(QEvent *)                                                                                                                                     qwindow.cpp                2301 0x100c7435f    
      11 QQuickWindow::event(QEvent *)                                                                                                                                qquickwindow.cpp           1642 0x10026ccd1    
      12 QCoreApplicationPrivate::notify_helper(QObject *, QEvent *)                                                                                                  qcoreapplication.cpp       1197 0x101b839d6    
      13 doNotify(QObject *, QEvent *)                                                                                                                                qcoreapplication.cpp       1138 0x101b834ba    
      14 QCoreApplication::notify(QObject *, QEvent *)                                                                                                                qcoreapplication.cpp       1124 0x101b83587    
      15 QGuiApplication::notify(QObject *, QEvent *)                                                                                                                 qguiapplication.cpp        1762 0x100c5ceb1    
      16 QCoreApplication::notifyInternal2(QObject *, QEvent *)                                                                                                       qcoreapplication.cpp       1048 0x101b833d5    
      17 QCoreApplication::sendSpontaneousEvent(QObject *, QEvent *)                                                                                                  qcoreapplication.h         237  0x100c6283c    
      18 QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent *)                                                                     qguiapplication.cpp        3037 0x100c61932    
      19 QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent *)                                                         qguiapplication.cpp        1873 0x100c5d4e5    
      20 bool QWindowSystemInterfacePrivate::handleWindowSystemEvent<QWindowSystemInterface::SynchronousDelivery>(QWindowSystemInterfacePrivate::WindowSystemEvent *) qwindowsysteminterface.cpp 101  0x100c3402c    
      21 void QWindowSystemInterface::handleExposeEvent<QWindowSystemInterface::SynchronousDelivery>(QWindow *, QRegion const&)                                       qwindowsysteminterface.cpp 336  0x100c3a83d    
      22 QCocoaWindow::handleExposeEvent(QRegion const&)                                                                                                              qcocoawindow.mm            1169 0x1091af463    
      23 ::-[QNSView(Drawing) updateRegion:](QRegion)                                                                                                                 qnsview_drawing.mm         123  0x1091bce94    
      24 ::-[QNSView(Drawing) drawRect:](NSRect)                                                                                                                      qnsview_drawing.mm         106  0x1091bcd0c    
      25 _NSViewDrawRect                                                                                                                                                                              0x7fff53df7f29 
      26 -[NSView _drawRect:clip:]                                                                                                                                                                    0x7fff5369073c 
      27 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]                                                                                                                                    0x7fff536d8b52 
      28 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]                                                                                                                                    0x7fff536d901f 
      29 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]                                                                                       0x7fff5368e656 
      30 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]                                                                                 0x7fff5368dddb 
      31 -[NSView _oldDisplayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]                                                                                                             0x7fff53df94e0 
      32 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]                                                                                                                0x7fff5368ce5d 
      33 -[NSView displayIfNeeded]                                                                                                                                                                    0x7fff536890b4 
      34 -[NSWindow displayIfNeeded]                                                                                                                                                                  0x7fff53688a52 
      35 ___NSWindowGetDisplayCycleObserver_block_invoke.5902                                                                                                                                         0x7fff53e2960d 
      36 __37+[NSDisplayCycle currentDisplayCycle]_block_invoke                                                                                                                                       0x7fff5368855e 
      37 CA::Transaction::run_commit_handlers(CATransactionPhase)                                                                                                                                     0x7fff612dd3c3 
      38 CA::Transaction::commit()                                                                                                                                                                    0x7fff612dbea5 
      39 __65+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayRefresh]_block_invoke                                                                                                           0x7fff53e40a72 
      40 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__                                                                                                                                0x7fff55fcc467 
      41 __CFRunLoopDoObservers                                                                                                                                                                       0x7fff55fcc38f 
      42 __CFRunLoopRun                                                                                                                                                                               0x7fff55fae908 
      43 CFRunLoopRunSpecific                                                                                                                                                                         0x7fff55fae1a3 
      44 RunCurrentEventLoopInMode                                                                                                                                                                    0x7fff55296d96 
      45 ReceiveNextEventCommon                                                                                                                                                                       0x7fff55296a0f 
      46 _BlockUntilNextEventMatchingListInModeWithFilter                                                                                                                                             0x7fff55296884 
      47 _DPSNextEvent                                                                                                                                                                                0x7fff53549a73 
      48 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]                                                                                                              0x7fff53cdfe34 
      49 -[NSApplication run]                                                                                                                                                                         0x7fff5353e885 
      50 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)                                                                                  qcocoaeventdispatcher.mm   430  0x1091d1fc5    
      51 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)                                                                                             qeventloop.cpp             136  0x101b7d5db    
      52 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)                                                                                                      qeventloop.cpp             214  0x101b7d7ec    
      53 QCoreApplication::exec()                                                                                                                                     qcoreapplication.cpp       1336 0x101b83cdc    
      54 QGuiApplication::exec()                                                                                                                                      qguiapplication.cpp        1750 0x100c5ce36    
      55 main                                                                                                                                                         main.cpp                   15   0x100003fd5    
      56 start                                                                                                                                                                                        0x7fff7e2c8015 
      

      With QSG_RENDER_LOOP=basic:

      1  QPainter::drawImage(QRect const&, QImage const&, QRect const&, QFlags<Qt::ImageConversionFlag>)                                                              qpainter.h                 825  0x1004212f7    
      2  QQuickSpriteEngine::assembledImage(int)                                                                                                                      qquickspriteengine.cpp     492  0x1004210b1    
      3  QQuickAnimatedSprite::initNode()                                                                                                                             qquickanimatedsprite.cpp   711  0x10042e69f    
      4  QQuickAnimatedSprite::updatePaintNode(QSGNode *, QQuickItem::UpdatePaintNodeData *)                                                                          qquickanimatedsprite.cpp   760  0x10042ea87    
      5  QQuickWindowPrivate::updateDirtyNode(QQuickItem *)                                                                                                           qquickwindow.cpp           3448 0x100276d5c    
      6  QQuickWindowPrivate::updateDirtyNodes()                                                                                                                      qquickwindow.cpp           3193 0x10026591c    
      7  QQuickWindowPrivate::syncSceneGraph()                                                                                                                        qquickwindow.cpp           433  0x1002654a5    
      8  QSGGuiThreadRenderLoop::renderWindow(QQuickWindow *)                                                                                                         qsgrenderloop.cpp          422  0x1001bff71    
      9  QSGGuiThreadRenderLoop::exposureChanged(QQuickWindow *)                                                                                                      qsgrenderloop.cpp          479  0x1001c09f9    
      10 QQuickWindow::exposeEvent(QExposeEvent *)                                                                                                                    qquickwindow.cpp           226  0x1002648d1    
      11 QWindow::event(QEvent *)                                                                                                                                     qwindow.cpp                2301 0x100c7435f    
      12 QQuickWindow::event(QEvent *)                                                                                                                                qquickwindow.cpp           1642 0x10026ccd1    
      13 QCoreApplicationPrivate::notify_helper(QObject *, QEvent *)                                                                                                  qcoreapplication.cpp       1197 0x101b839d6    
      14 doNotify(QObject *, QEvent *)                                                                                                                                qcoreapplication.cpp       1138 0x101b834ba    
      15 QCoreApplication::notify(QObject *, QEvent *)                                                                                                                qcoreapplication.cpp       1124 0x101b83587    
      16 QGuiApplication::notify(QObject *, QEvent *)                                                                                                                 qguiapplication.cpp        1762 0x100c5ceb1    
      17 QCoreApplication::notifyInternal2(QObject *, QEvent *)                                                                                                       qcoreapplication.cpp       1048 0x101b833d5    
      18 QCoreApplication::sendSpontaneousEvent(QObject *, QEvent *)                                                                                                  qcoreapplication.h         237  0x100c6283c    
      19 QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent *)                                                                     qguiapplication.cpp        3037 0x100c61932    
      20 QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent *)                                                         qguiapplication.cpp        1873 0x100c5d4e5    
      21 bool QWindowSystemInterfacePrivate::handleWindowSystemEvent<QWindowSystemInterface::SynchronousDelivery>(QWindowSystemInterfacePrivate::WindowSystemEvent *) qwindowsysteminterface.cpp 101  0x100c3402c    
      22 void QWindowSystemInterface::handleExposeEvent<QWindowSystemInterface::SynchronousDelivery>(QWindow *, QRegion const&)                                       qwindowsysteminterface.cpp 336  0x100c3a83d    
      23 QCocoaWindow::handleExposeEvent(QRegion const&)                                                                                                              qcocoawindow.mm            1169 0x1089af463    
      24 ::-[QNSView(Drawing) updateRegion:](QRegion)                                                                                                                 qnsview_drawing.mm         123  0x1089bce94    
      25 ::-[QNSView(Drawing) drawRect:](NSRect)                                                                                                                      qnsview_drawing.mm         106  0x1089bcd0c    
      26 _NSViewDrawRect                                                                                                                                                                              0x7fff53df7f29 
      27 -[NSView _drawRect:clip:]                                                                                                                                                                    0x7fff5369073c 
      28 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]                                                                                                                                    0x7fff536d8b52 
      29 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]                                                                                                                                    0x7fff536d901f 
      30 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]                                                                                       0x7fff5368e656 
      31 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]                                                                                 0x7fff5368dddb 
      32 -[NSView _oldDisplayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]                                                                                                             0x7fff53df94e0 
      33 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]                                                                                                                0x7fff5368ce5d 
      34 -[NSView displayIfNeeded]                                                                                                                                                                    0x7fff536890b4 
      35 -[NSWindow displayIfNeeded]                                                                                                                                                                  0x7fff53688a52 
      36 ___NSWindowGetDisplayCycleObserver_block_invoke.5902                                                                                                                                         0x7fff53e2960d 
      37 __37+[NSDisplayCycle currentDisplayCycle]_block_invoke                                                                                                                                       0x7fff5368855e 
      38 CA::Transaction::run_commit_handlers(CATransactionPhase)                                                                                                                                     0x7fff612dd3c3 
      39 CA::Transaction::commit()                                                                                                                                                                    0x7fff612dbea5 
      40 __65+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayRefresh]_block_invoke                                                                                                           0x7fff53e40a72 
      41 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__                                                                                                                                0x7fff55fcc467 
      42 __CFRunLoopDoObservers                                                                                                                                                                       0x7fff55fcc38f 
      43 __CFRunLoopRun                                                                                                                                                                               0x7fff55fae908 
      44 CFRunLoopRunSpecific                                                                                                                                                                         0x7fff55fae1a3 
      45 RunCurrentEventLoopInMode                                                                                                                                                                    0x7fff55296d96 
      46 ReceiveNextEventCommon                                                                                                                                                                       0x7fff55296a0f 
      47 _BlockUntilNextEventMatchingListInModeWithFilter                                                                                                                                             0x7fff55296884 
      48 _DPSNextEvent                                                                                                                                                                                0x7fff53549a73 
      49 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]                                                                                                              0x7fff53cdfe34 
      50 -[NSApplication run]                                                                                                                                                                         0x7fff5353e885 
      51 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)                                                                                  qcocoaeventdispatcher.mm   430  0x1089d1fc5    
      52 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)                                                                                             qeventloop.cpp             136  0x101b7d5db    
      53 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)                                                                                                      qeventloop.cpp             214  0x101b7d7ec    
      54 QCoreApplication::exec()                                                                                                                                     qcoreapplication.cpp       1336 0x101b83cdc    
      55 QGuiApplication::exec()                                                                                                                                      qguiapplication.cpp        1750 0x100c5ce36    
      56 main                                                                                                                                                         main.cpp                   15   0x100003fd5    
      57 start                                                                                                                                                                                        0x7fff7e2c8015 
      58 start                                                                                                                                                                                        0x7fff7e2c8015                                                                                                                                          
      

        Attachments

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

          Activity

            People

            • Assignee:
              allan.jensen Allan Sandfeld Jensen
              Reporter:
              mitch_curtis Mitch Curtis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes