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

QML application crashes an exit with Popups involved

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.13.1
    • Quick: Controls 2
    • None
    • All

    Description

      Given an application with QML popups (i.e. Tooltips, ComboBox) involved sometimes crash somewhere in the Qt code when the application exists.

      Here's a stacktrace:

      1 QMetaObject::cast qmetaobject.cpp 374 0x7ffff5a84087 
      2 QMetaObject::cast qmetaobject.cpp 363 0x7ffff5a840c5 
      3 qobject_cast<QQuickOverlay *> qobject.h 508 0x7fffc524422a 
      4 QtPrivate::QVariantValueHelper<QQuickOverlay *>::object qvariant.h 739 0x7fffc524422a 
      5 QtPrivate::ObjectInvoker<QtPrivate::QVariantValueHelper<QQuickOverlay *>, QVariant const&, QQuickOverlay *>::invoke qvariant.h 108 0x7fffc524422a 
      6 qvariant_cast<QQuickOverlay *> qvariant.h 865 0x7fffc524422a 
      7 QVariant::value<QQuickOverlay *> qvariant.h 364 0x7fffc524422a 
      8 QQuickOverlay::overlay qquickoverlay.cpp 368 0x7fffc524422a 
      9 QQuickPopupPrivate::setWindow qquickpopup.cpp 623 0x7fffc524bc80 
      10 QtPrivate::QSlotObjectBase::call qobjectdefs_impl.h 394 0x7ffff5aa7736 
      11 QMetaObject::activate qobject.cpp 3789 0x7ffff5aa7736 
      12 QMetaObject::activate qobject.cpp 3660 0x7ffff5aa7d37 
      13 QQuickItem::windowChanged moc_qquickitem.cpp 1136 0x7ffff795c172 
      14 QQuickItem::itemChange qquickitem.cpp 5262 0x7ffff795c198 
      15 QQuickBasePositioner::itemChange qquickpositioners.cpp 287 0x7ffff7a81e1b 
      16 QQuickItemPrivate::itemChange qquickitem.cpp 6256 0x7ffff7968bc5 
      17 QQuickItemPrivate::derefWindow qquickitem.cpp 3099 0x7ffff796e62b 
      18 QQuickItemPrivate::derefWindow qquickitem.cpp 3092 0x7ffff796e5d1 
      19 QQuickItemPrivate::derefWindow qquickitem.cpp 3092 0x7ffff796e5d1 
      20 QQuickItemPrivate::derefWindow qquickitem.cpp 3092 0x7ffff796e5d1 
      21 QQuickItemPrivate::derefWindow qquickitem.cpp 3092 0x7ffff796e5d1 
      22 QQuickItemPrivate::derefWindow qquickitem.cpp 3092 0x7ffff796e5d1 
      23 QQuickItemPrivate::derefWindow qquickitem.cpp 3092 0x7ffff796e5d1 
      24 QQuickItem::setParentItem qquickitem.cpp 2756 0x7ffff796ebd5 
      25 QQuickItem::~QQuickItem qquickitem.cpp 2396 0x7ffff796f9ac 
      26 QQmlPrivate::QQmlElement<QQuickItem>::~QQmlElement qqmlprivate.h 108 0x7ffff798ffb6 
      27 QQmlPrivate::QQmlElement<QQuickItem>::~QQmlElement qqmlprivate.h 108 0x7ffff798ffb6 
      28 QObjectPrivate::deleteChildren qobject.cpp 2019 0x7ffff5aa5043 
      29 QObject::~QObject qobject.cpp 1032 0x7ffff5aaf194 
      30 QQuickItem::~QQuickItem qquickitem.cpp 2383 0x7ffff796fabc 
      31 QQmlPrivate::QQmlElement<QQuickStackView>::~QQmlElement qqmlprivate.h 108 0x7fffb7bb52b6 
      32 QQmlPrivate::QQmlElement<QQuickStackView>::~QQmlElement qqmlprivate.h 108 0x7fffb7bb52b6 
      33 QObjectPrivate::deleteChildren qobject.cpp 2019 0x7ffff5aa5043 
      34 QObject::~QObject qobject.cpp 1032 0x7ffff5aaf194 
      35 QQuickItem::~QQuickItem qquickitem.cpp 2383 0x7ffff796fabc 
      36 QQuickRectangle::~QQuickRectangle qquickrectangle_p.h 156 0x7ffff798ff2e 
      37 QQmlPrivate::QQmlElement<QQuickRectangle>::~QQmlElement qqmlprivate.h 108 0x7ffff798ff2e 
      38 QQmlPrivate::QQmlElement<QQuickRectangle>::~QQmlElement qqmlprivate.h 108 0x7ffff798ff2e 
      39 QObjectPrivate::deleteChildren qobject.cpp 2019 0x7ffff5aa5043 
      40 QObject::~QObject qobject.cpp 1032 0x7ffff5aaf194 
      41 QQuickWindow::~QQuickWindow qquickwindow.cpp 1337 0x7ffff79809e4 
      42 QQuickWindowQmlImpl::~QQuickWindowQmlImpl qquickwindowmodule_p.h 63 0x7ffff7a33fbd 
      43 QQmlPrivate::QQmlElement<QQuickWindowQmlImpl>::~QQmlElement qqmlprivate.h 108 0x7ffff7a33fbd 
      44 QQmlPrivate::QQmlElement<QQuickWindowQmlImpl>::~QQmlElement qqmlprivate.h 108 0x7ffff7a33fbd 
      45 qDeleteAll<QList<QObject *>::const_iterator> qalgorithms.h 320 0x7ffff6b5d84e 
      46 qDeleteAll<QList<QObject *>> qalgorithms.h 328 0x7ffff6b5d84e 
      47 QQmlApplicationEnginePrivate::cleanUp qqmlapplicationengine.cpp 64 0x7ffff6b5d84e 
      48 QQmlApplicationEngine::~QQmlApplicationEngine qqmlapplicationengine.cpp 250 0x7ffff6b5d8d8 
      49 main 0x477a88 

      Sorry - I've no minimum code example handy. And it's hard to debug which of the various elements cause the crash, because the information available in the debugger doesn't help to track it down.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              cajus Cajus Pollmeier
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes