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

Application Extension sometimes crashes when alternating the focus between the host and the extension

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Incomplete
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: Quick: Other
    • Labels:
      None
    • Environment:
      Qt 5.12.2, Mac OS 10.15.5, Xcode 11.3.1
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      When using a Qt app hosted in a third party application as a application extension, sometimes, when tapping on the application extension window, triggers a crash with the following stack trace:

      #0 0x0000000102fd7cb8 in operator<<(QDebug, QObject const*) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/corelib/kernel/qobject.cpp:4339#0 0x0000000102fd7cb8 in operator<<(QDebug, QObject const*) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/corelib/kernel/qobject.cpp:4339#1 0x000000010292b604 in QIOSInputContext::update(QFlags<Qt::InputMethodQuery>) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/plugins/platforms/ios/qiosinputcontext.mm:670#2 0x0000000103b88688 in QInputMethod::update(QFlags<Qt::InputMethodQuery>) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/gui/kernel/qinputmethod.cpp:327#3 0x0000000104335360 in QQuickItem::updateInputMethod(QFlags<Qt::InputMethodQuery>) at /Users/nsantos/Qt/5.15.2/src/qtdeclarative/src/quick/items/qquickitem.cpp:5302#4 0x0000000104359ca0 in QQuickWindowPrivate::updateFocusItemTransform() at /Users/nsantos/Qt/5.15.2/src/qtdeclarative/src/quick/items/qquickwindow.cpp:126#5 0x0000000104360dd4 in QQuickWindowPrivate::setFocusInScope(QQuickItem*, QQuickItem*, Qt::FocusReason, QFlags<QQuickWindowPrivate::FocusOption>) at /Users/nsantos/Qt/5.15.2/src/qtdeclarative/src/quick/items/qquickwindow.cpp:1184#6 0x0000000104332cb8 in QQuickItem::setFocus(bool, Qt::FocusReason) at /Users/nsantos/Qt/5.15.2/src/qtdeclarative/src/quick/items/qquickitem.cpp:7203#7 0x000000010435a608 in QQuickWindow::focusInEvent(QFocusEvent*) at /Users/nsantos/Qt/5.15.2/src/qtdeclarative/src/quick/items/qquickwindow.cpp:279#8 0x0000000103b74b8c in QWindow::event(QEvent*) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/gui/kernel/qwindow.cpp:2372#9 0x0000000104362be8 in QQuickWindow::event(QEvent*) at /Users/nsantos/Qt/5.15.2/src/qtdeclarative/src/quick/items/qquickwindow.cpp:1902#10 0x0000000102f7dbac in QCoreApplicationPrivate::notify_helper(QObject*, QEvent*) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1224#11 0x0000000102f7d688 in doNotify(QObject*, QEvent*) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1153#12 0x0000000102f7d7a0 in QCoreApplication::notify(QObject*, QEvent*) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1139#13 0x0000000103b5a800 in QGuiApplication::notify(QObject*, QEvent*) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/gui/kernel/qguiapplication.cpp:1935#14 0x0000000102f7d54c in QCoreApplication::notifyInternal2(QObject*, QEvent*) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1063#15 0x0000000102f7df74 in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1470#16 0x0000000103b5e1d0 in QGuiApplicationPrivate::processActivatedEvent(QWindowSystemInterfacePrivate::ActivatedWindowEvent*) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/gui/kernel/qguiapplication.cpp:2507#17 0x0000000103b5ad44 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/gui/kernel/qguiapplication.cpp:2023#18 0x0000000103b43074 in bool QWindowSystemInterfacePrivate::handleWindowSystemEvent<QWindowSystemInterface::SynchronousDelivery>(QWindowSystemInterfacePrivate::WindowSystemEvent*) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:106#19 0x0000000103b43300 in bool QWindowSystemInterfacePrivate::handleWindowSystemEvent<QWindowSystemInterface::DefaultDelivery>(QWindowSystemInterfacePrivate::WindowSystemEvent*) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:139#20 0x0000000103b45338 in void QWindowSystemInterface::handleWindowActivated<QWindowSystemInterface::DefaultDelivery>(QWindow*, Qt::FocusReason) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:252#21 0x0000000102930c1c in ::-[QUIView becomeFirstResponder]() at /Users/nsantos/Qt/5.15.2/src/qtbase/src/plugins/platforms/ios/quiview.mm:288#22 0x000000010291a8e4 in QIOSWindow::requestActivateWindow() at /Users/nsantos/Qt/5.15.2/src/qtbase/src/plugins/platforms/ios/qioswindow.mm:300#23 0x0000000102932148 in ::-[QUIView touchesBegan:withEvent:](NSSet *, UIEvent *) at /Users/nsantos/Qt/5.15.2/src/qtbase/src/plugins/platforms/ios/quiview.mm:500#24 0x000000019c7e4dd8 in -[UIWindow _sendTouchesForEvent:] ()#25 0x000000019c7e6390 in -[UIWindow sendEvent:] ()#26 0x000000019c7c2a9c in -[UIApplication sendEvent:] ()#27 0x00000001cd322830 in -[UIApplicationAccessibility sendEvent:] ()#28 0x000000019c83ac20 in __dispatchPreprocessedEventFromEventQueue ()#29 0x000000019c83d17c in __handleEventQueueInternal ()#30 0x000000019c835ff0 in __handleHIDEventFetcherDrain ()#31 0x00000001986a2a00 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ ()#32 0x00000001986a2958 in __CFRunLoopDoSource0 ()#33 0x00000001986a20f0 in __CFRunLoopDoSources0 ()#34 0x000000019869d23c in __CFRunLoopRun ()#35 0x000000019869cadc in CFRunLoopRunSpecific ()#36 0x00000001a263d328 in GSEventRunModal ()#37 0x000000019c7aa63c in UIApplicationMain ()#38 0x000000019830d6b8 in _xpc_objc_main.cold.3 ()#39 0x00000001982f911c in _xpc_objc_main ()#40 0x00000001982fbacc in xpc_main ()#41 0x0000000198a182c8 in -[NSXPCListener resume] ()#42 0x00000001a59c0bb0 in ___lldb_unnamed_symbol458$$PlugInKit ()#43 0x00000001a59c08bc in ___lldb_unnamed_symbol454$$PlugInKit ()#44 0x00000001a59c0fc0 in ___lldb_unnamed_symbol462$$PlugInKit ()#45 0x0000000198bf3004 in NSExtensionMain ()#46 0x0000000198526360 in start ()
      

        Attachments

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

          Activity

            People

            Assignee:
            sinosoidal Nuno Santos
            Reporter:
            sinosoidal Nuno Santos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes