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

Application total freeze on iOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.14.2
    • Quick: 2D Renderer
    • None
    • iOS/tvOS/watchOS

    Description

      Sometimes our application is stuck in QSGThreadedRenderLoop::polishAndSync().
      The UI is then completely frozen and a relaunch is necessary.

      Here follow are potential culprits :

      Thread 1 Queue : com.apple.main-thread (serial)
      #0 0x00000001bb1364f0 in __psynch_cvwait ()
      #1 0x00000001db3b1bfc in _pthread_cond_wait$VARIANT$mp ()
      #2 0x000000010205b578 in QWaitConditionPrivate::wait(QDeadlineTimer) at /Users/missionplus/buildQt/qt5/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:146
      #3 0x000000010205b4e0 in QWaitCondition::wait(QMutex*, QDeadlineTimer) at /Users/missionplus/buildQt/qt5/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:225
      #4 0x000000010205b38c in QWaitCondition::wait(QMutex*, unsigned long) at /Users/missionplus/buildQt/qt5/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:208
      #5 0x0000000102ce4a84 in QSGThreadedRenderLoop::polishAndSync(QSGThreadedRenderLoop::Window*, bool) at /Users/missionplus/buildQt/qt5/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:1544
      #6 0x0000000102ce50b8 in QSGThreadedRenderLoop::handleUpdateRequest(QQuickWindow*) at /Users/missionplus/buildQt/qt5/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:1376
      #7 0x0000000102d58a1c in QQuickWindow::event(QEvent*) at /Users/missionplus/buildQt/qt5/qtdeclarative/src/quick/items/qquickwindow.cpp:1804
      #8 0x00000001027f09b8 in QApplicationPrivate::notify_helper(QObject*, QEvent*) at /Users/missionplus/buildQt/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3685
      #9 0x00000001027f281c in QApplication::notify(QObject*, QEvent*) at /Users/missionplus/buildQt/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3025
      #10 0x00000001022985a4 in QCoreApplication::notifyInternal2(QObject*, QEvent*) at /Users/missionplus/buildQt/qt5/qtbase/src/corelib/kernel/qcoreapplication.cpp:1075
      #11 0x00000001022991f8 in QCoreApplication::sendEvent(QObject*, QEvent*) at /Users/missionplus/buildQt/qt5/qtbase/src/corelib/kernel/qcoreapplication.cpp:1470
      #12 0x00000001023e35cc in QPlatformWindow::deliverUpdateRequest() at /Users/missionplus/buildQt/qt5/qtbase/src/gui/kernel/qplatformwindow.cpp:796
      #13 0x0000000103e84b48 in QIOSScreen::deliverUpdateRequests() const at /Users/missionplus/buildQt/qt5/qtbase/src/plugins/platforms/ios/qiosscreen.mm:411
      #14 0x0000000103e84a3c in ___ZN10QIOSScreenC2EP8UIScreen_block_invoke at /Users/missionplus/buildQt/qt5/qtbase/src/plugins/platforms/ios/qiosscreen.mm:291
      #15 0x0000000103e82ff0 in -[NSObject(DisplayLinkBlock) invokeDisplayLinkBlock:] at /Users/missionplus/buildQt/qt5/qtbase/src/plugins/platforms/ios/qiosscreen.mm:73
      #16 0x0000000109cf3f30 in -[DYDisplayLinkInterposer forwardDisplayLinkCallback:] ()
      #17 0x0000000185d5acc4 in CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) ()
      #18 0x0000000185d611dc in display_timer_callback(__CFMachPort*, void*, long, void*) ()
      #19 0x00000001822445fc in __CFMachPortPerform ()
      #20 0x000000018228444c in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ ()#21 0x0000000182287a3c in __CFRunLoopDoSource1 ()
      #22 0x0000000182245050 in __CFRunLoopRun ()
      #23 0x0000000182257d7c in CFRunLoopRunSpecific ()
      #24 0x000000019c4cc9a0 in GSEventRunModal ()
      #25 0x0000000184a8a05c in -[UIApplication _run] ()
      #26 0x000000018481fce0 in UIApplicationMain ()
      #27 0x0000000103e7d5f0 in qt_main_wrapper at /Users/missionplus/buildQt/qt5/qtbase/src/plugins/platforms/ios/qioseventdispatcher.mm:242
      #28 0x0000000109ae0190 in start ()
      

       

      QSGRenderThread (33) Queue : gputools.DYSharedMemoryTransport.0x13bd05160.send (serial)
      #0 0x00000001bb136088 in __semwait_signal ()
      #1 0x000000018c72a8e0 in nanosleep ()
      #2 0x000000018c72b5a8 in usleep ()
      #3 0x0000000109ce92f4 in -[DYSharedMemoryTransport _waitEAGAIN] ()
      #4 0x0000000109d0c994 in -[DYBaseStreamTransport _writeBuffers:] ()
      #5 0x0000000109d0cf40 in -[DYBaseStreamTransport _sendMessage:error:] ()
      #6 0x0000000109cfbc6c in __63-[DYTransport send:inReplyTo:error:replyQueue:timeout:handler:]_block_invoke.153 ()
      #7 0x0000000109c05f94 in _dispatch_client_callout ()
      #8 0x0000000109c15af0 in _dispatch_sync_invoke_and_complete_recurse ()
      #9 0x0000000109cfbae8 in -[DYTransport send:inReplyTo:error:replyQueue:timeout:handler:] ()
      #10 0x0000000109ce8070 in -[DYSharedMemoryTransport send:inReplyTo:error:replyQueue:timeout:handler:] ()
      #11 0x000000010a0495c0 in handle_frame_boundary ()
      #12 0x000000010a1f7b7c in _EAGLContext_PresentInterposeCommon(EAGLContext*, unsigned int, unsigned long, double, bool () block_pointer) ()
      #13 0x000000010a1f5b98 in EAGLContext_presentRenderbuffer(EAGLContext*, objc_selector*, unsigned long) ()
      #14 0x0000000103e8c520 in QIOSContext::swapBuffers(QPlatformSurface*) at /Users/missionplus/buildQt/qt5/qtbase/src/plugins/platforms/ios/qioscontext.mm:239
      #15 0x0000000102458494 in QOpenGLContext::swapBuffers(QSurface*) at /Users/missionplus/buildQt/qt5/qtbase/src/gui/kernel/qopenglcontext.cpp:1112
      #16 0x0000000102ce0854 in QSGRenderThread::syncAndRender(QImage*) at /Users/missionplus/buildQt/qt5/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:841
      #17 0x0000000102ce1f20 in QSGRenderThread::run() at /Users/missionplus/buildQt/qt5/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:990
      #18 0x0000000102049b44 in QThreadPrivate::start(void*) at /Users/missionplus/buildQt/qt5/qtbase/src/corelib/thread/qthread_unix.cpp:342
      #19 0x00000001db3ab3a4 in _pthread_start ()
      gputools.smt_poll.0x2809a5a40 (3)
      #0 0x00000001bb136088 in __semwait_signal ()
      #1 0x000000018c72a8e0 in nanosleep ()
      #2 0x000000018c72b5a8 in usleep ()
      #3 0x0000000109ce898c in smt_poll_thread_entry(void*) ()
      #4 0x00000001db3ab3a4 in _pthread_start ()
      

       

      Attachments

        Issue Links

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

          Activity

            People

              jd31 Jerome Desfieux
              jd__ Jérôme Desfieux
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes