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

Qml crash when opening menu multiple times (possible regression)

    XMLWordPrintable

Details

    • Android

    Description

      My application crashes since Qt 5.15.7 (5.15.6 worked) only on Android:

                                                                                                                                                                                                                   
                                                                                                                                                                                                                   
      1  QQuickItem::width() const                                                                                                                                                                      0xb853fae8 
      2  QQuickListViewPrivate::updateHighlight()                                                                                                                                                       0xb85b6f8a 
      3  QQuickItemView::createdItem(int, QObject *)                                                                                                                                                    0xb85b0776 
      4  void doActivate<false>(QObject *, int, void * *)                                                                                                                                               0xb908ae6c 
      5  QQmlInstanceModel::createdItem(int, QObject *)                                                                                                                                                 0xb870f3b6 
      6  QQmlObjectModel::object(int, QQmlIncubator::IncubationMode)                                                                                                                                    0xb870f336 
      7  QQuickItemViewPrivate::createItem(int, QQmlIncubator::IncubationMode)                                                                                                                          0xb85af5b2 
      8  QQuickListViewPrivate::applyInsertionChange(QQmlChangeSet::Change const&, QQuickItemViewPrivate::ChangeResult *, QList<FxViewItem *> *, QList<QQuickItemViewPrivate::MovedItem> *)             0xb85ba366 
      9  QQuickItemViewPrivate::applyModelChanges(QQuickItemViewPrivate::ChangeResult *, QQuickItemViewPrivate::ChangeResult *)                                                                         0xb85afd6a 
      10 QQuickItemViewPrivate::layout()                                                                                                                                                                0xb85addb4 
      11 QQuickWindowPrivate::polishItems()                                                                                                                                                             0xb85517ac 
      12 QSGThreadedRenderLoop::polishAndSync(QSGThreadedRenderLoop::Window *, bool)                                                                                                                    0xb8529152 
      13 QSGThreadedRenderLoop::handleUpdateRequest(QQuickWindow *)                                                                                                                                     0xb8529606 
      14 QQuickWindow::event(QEvent *)                                                                                                                                                                  0xb8554b52 
      15 QApplicationPrivate::notify_helper(QObject *, QEvent *)                                                                                                                                        0xb7ef04c4 
      16 QApplication::notify(QObject *, QEvent *)                                                                                                                                                      0xb7ef0fe2 
      17 QCoreApplication::notifyInternal2(QObject *, QEvent *)                                                                                                                                         0xb90727be 
      18 QPlatformWindow::deliverUpdateRequest()                                                                                                                                                        0xb8c0aa4e 
      19 QPlatformWindow::windowEvent(QEvent *)                                                                                                                                                         0xb8c0a3c2 
      20 QApplication::notify(QObject *, QEvent *)                                                                                                                                                      0xb7ef0e76 
      21 QCoreApplication::notifyInternal2(QObject *, QEvent *)                                                                                                                                         0xb90727be 
      22 QTimerInfoList::activateTimers()                                                                                                                                                               0xb909be5e 
      23 QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)                                                                                                                     0xb909ae6e 
      24 QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)                                                                                                                  0xb79b724a 
      25 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)                                                                                                                                        0xb9070e4c 
      26 QCoreApplication::exec()                                                                                                                                                                       0xb9072ba2 
      27 main                                                                                                                                                                               main.cpp 64 0xb5bee518 
      28 startQtApplication(_JNIEnv *, _jclass *)                                                                                                                                                       0xb79a1402 
      29 ??                                                                                                                                                                                             0xe4e434de 
      

      The debug output shows:

      QMetaObject::invokeMethod: No such method QQuickPopupItem::inputMethodQuery(Qt::InputMethodQuery,QVariant)
      F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4 in tid 25297 (qtMainLoopThrea), pid 23512 (com.myapp)
      

      The problem happens when a Qml popup menu is opened multiple times. The debug output is similar to this bug: QTBUG-82810. Attached is an example.

      Attachments

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Harald Meyer Harald Meyer
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: