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

ASSERT: "childItems.contains(child)" in qquickitem.cpp

    XMLWordPrintable

Details

    • Linux/X11
    • 73ad6e87bbeceea5830ab3a6b3dc66fa99e30f45 (qt/qtdeclarative/5.13)

    Description

      1. Run the attached main.qml with qmlscene or similar.
      2. Click the white dialog but don't release mouse button
      3. Move mouse (still with button pressed) outside of white dialog

      Crashes with this backtrace:

      #0  0x00007ffff6161d7f in raise () from /usr/lib/libc.so.6
      #1  0x00007ffff614c672 in abort () from /usr/lib/libc.so.6
      #2  0x00007ffff6a28ca3 in qt_message_fatal (context=..., message=<synthetic pointer>...) at /data/sources/qt/qt5/qtbase/src/corelib/global/qlogging.cpp:1840
      #3  QMessageLogger::fatal (this=this@entry=0x7fffffff6fe0, msg=msg@entry=0x7ffff67cc278 "ASSERT: \"%s\" in file %s, line %d") at /data/sources/qt/qt5/qtbase/src/corelib/global/qlogging.cpp:880
      #4  0x00007ffff6a1f9b1 in qt_assert (assertion=assertion@entry=0x7ffff0ac4a44 "childItems.contains(child)", file=file@entry=0x7ffff0ab7a10 "/data/sources/qt/qt5/qtdeclarative/src/quick/items/qquickitem.cpp", line=line@entry=2972)
          at ../../include/QtCore/../../../../../../sources/qt/qt5/qtbase/src/corelib/global/qlogging.h:91
      #5  0x00007ffff0cd24f4 in QQuickItemPrivate::removeChild(QQuickItem*) [clone .cold.411] () at /data/sources/qt/qt5/qtdeclarative/src/quick/items/qquickitem.cpp:8285
      #6  0x00007ffff0cccc9a in QQuickItem::setParentItem (this=0x55555562b830, parentItem=parentItem@entry=0x0) at /data/sources/qt/qt5/qtdeclarative/src/quick/items/qquickitem.cpp:2730
      #7  0x00007ffff0921c6b in QQuickPopupPrivate::finalizeExitTransition (this=0x5555555ae940) at /data/sources/qt/qt5/qtquickcontrols2/src/quicktemplates2/qquickpopup.cpp:443
      #8  0x00007ffff0be01b8 in QQuickTransitionManager::transition (this=<optimized out>, list=..., transition=0x0, defaultTarget=<optimized out>) at /data/sources/qt/qt5/qtdeclarative/src/quick/util/qquicktransitionmanager.cpp:265
      #9  0x00007ffff0958900 in QQuickPopup::qt_static_metacall (_o=_o@entry=0x555555628810, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=49, _a=_a@entry=0x7fffffff7520) at .moc/moc_qquickpopup_p.cpp:619
      #10 0x00007ffff09597bb in QQuickPopup::qt_metacall (this=this@entry=0x555555628810, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=49, _a=_a@entry=0x7fffffff7520) at .moc/moc_qquickpopup_p.cpp:1133
      #11 0x00007ffff0951695 in QQuickDialog::qt_metacall (this=0x555555628810, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffffff7520) at .moc/moc_qquickdialog_p.cpp:365
      #12 0x00007ffff7ed99b9 in QQmlObjectOrGadget::metacall (this=this@entry=0x7fffffff7830, type=type@entry=QMetaObject::InvokeMetaMethod, index=<optimized out>, index@entry=54, argv=argv@entry=0x7fffffff7520)
          at ../../include/QtQml/5.11.3/QtQml/private/../../../../../../../../../sources/qt/qt5/qtdeclarative/src/qml/qml/ftw/qflagpointer_p.h:327
      #13 0x00007ffff7e3175b in CallMethod (object=..., index=54, returnType=returnType@entry=43, argCount=argCount@entry=0, argTypes=argTypes@entry=0x0, engine=engine@entry=0x5555555af1b0, callArgs=0x7ffff1c9e498, callType=QMetaObject::InvokeMetaMethod)
          at /data/sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:1193
      #14 0x00007ffff7e31f13 in CallPrecise (object=..., data=..., engine=engine@entry=0x5555555af1b0, callArgs=callArgs@entry=0x7ffff1c9e498, callType=callType@entry=QMetaObject::InvokeMetaMethod)
          at ../../include/QtQml/5.11.3/QtQml/private/../../../../../../../../../sources/qt/qt5/qtdeclarative/src/qml/qml/qqmlpropertycache_p.h:214
      #15 0x00007ffff7e32de0 in QV4::QObjectMethod::callInternal (this=<optimized out>, thisObject=0x7ffff1c9e458, argv=<optimized out>, argc=<optimized out>) at /data/sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:1975
      #16 0x00007ffff7e5247b in QV4::FunctionObject::call (argc=0, argv=0x7ffff1c9e420, thisObject=0x7ffff1c9e458, this=<optimized out>) at /data/sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4functionobject_p.h:141
      #17 QV4::Runtime::method_callProperty (engine=0x5555555af1b0, base=0x7ffff1c9e458, nameIndex=26, argv=0x7ffff1c9e420, argc=0) at /data/sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4runtime.cpp:1062
      #18 0x00007ffff7e43897 in QV4::Moth::VME::exec (fo=0x5555555af1b0, thisObject=0x7ffff7fbe8c0 <QV4::Moth::VME::exec(QV4::FunctionObject const*, QV4::Value const*, QV4::Value const*, int)::jumpTable>, argv=0x7ffff16b17a0, argc=-189353419) at /data/sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4vme_moth.cpp:800
      #19 0x00007ffff7f0a62c in QV4::Moth::VME::exec (context=<optimized out>, argc=<optimized out>, argv=0x7ffff1c9e420, thisObject=<optimized out>, v4Function=0x55555566b6a0) at ../../include/QtQml/5.11.3/QtQml/private/../../../../../../../../../sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4vme_moth_p.h:72
      #20 QV4::Function::call (context=<optimized out>, argc=<optimized out>, argv=0x7ffff1c9e420, thisObject=<optimized out>, this=0x55555566b6a0) at ../../include/QtQml/5.11.3/QtQml/private/../../../../../../../../../sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4function_p.h:72
      #21 QQmlJavaScriptExpression::evaluate (this=this@entry=0x55555566ed20, callData=callData@entry=0x7ffff1c9e3f8, isUndefined=isUndefined@entry=0x0) at /data/sources/qt/qt5/qtdeclarative/src/qml/qml/qqmljavascriptexpression.cpp:217
      #22 0x00007ffff7e968f3 in QQmlBoundSignalExpression::evaluate (this=<optimized out>, a=a@entry=0x0) at ../../include/QtQml/5.11.3/QtQml/private/../../../../../../../../../sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4jscall_p.h:94
      #23 0x00007ffff7e96f8b in QQmlBoundSignal_callback (e=0x55555564a9c0, a=0x0) at ../../include/QtQml/5.11.3/QtQml/private/../../../../../../../../../sources/qt/qt5/qtdeclarative/src/qml/qml/qqmlboundsignalexpressionpointer_p.h:69
      #24 0x00007ffff7ee4b69 in QQmlNotifier::emitNotify (endpoint=<optimized out>, a=a@entry=0x0) at /data/sources/qt/qt5/qtdeclarative/src/qml/qml/qqmlnotifier.cpp:106
      #25 0x00007ffff7e752fa in QQmlData::signalEmitted (object=0x555555a8d310, index=52, a=0x0) at /data/sources/qt/qt5/qtdeclarative/src/qml/qml/qqmlengine.cpp:861
      #26 0x00007ffff6c3909f in QMetaObject::activate (sender=sender@entry=0x555555a8d310, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=22, argv=argv@entry=0x0) at ../../include/QtCore/../../../../../../sources/qt/qt5/qtbase/src/corelib/kernel/qobject.h:121
      #27 0x00007ffff6c39cf7 in QMetaObject::activate (sender=sender@entry=0x555555a8d310, m=m@entry=0x7ffff0e8ab00 <QQuickMouseArea::staticMetaObject>, local_signal_index=local_signal_index@entry=22, argv=argv@entry=0x0) at /data/sources/qt/qt5/qtbase/src/corelib/kernel/qobject.cpp:3633
      #28 0x00007ffff0d60da3 in QQuickMouseArea::containsPressChanged (this=this@entry=0x555555a8d310) at .moc/moc_qquickmousearea_p.cpp:700
      #29 0x00007ffff0d61eb8 in QQuickMouseArea::ungrabMouse (this=0x555555a8d310) at /data/sources/qt/qt5/qtdeclarative/src/quick/items/qquickmousearea.cpp:926
      #30 0x00007ffff0ce269c in QQuickWindowPrivate::sendUngrabEvent (touch=false, grabber=0x555555a8d310, this=0x555555667b60) at /data/sources/qt/qt5/qtdeclarative/src/quick/items/qquickwindow.cpp:849
      #31 QQuickWindowPrivate::sendUngrabEvent (this=0x555555667b60, grabber=0x555555a8d310, touch=<optimized out>) at /data/sources/qt/qt5/qtdeclarative/src/quick/items/qquickwindow.cpp:842
      #32 0x00007ffff0ce2885 in QQuickWindowPrivate::removeGrabber (this=this@entry=0x555555667b60, grabber=0x555555a8d310, mouse=mouse@entry=true, touch=touch@entry=true) at /data/sources/qt/qt5/qtdeclarative/src/quick/items/qquickwindow.cpp:822
      #33 0x00007ffff0ccc7d6 in QQuickItemPrivate::derefWindow (this=0x55555566e9b0) at /data/sources/qt/qt5/qtdeclarative/src/quick/items/qquickitem.cpp:3053
      #34 0x00007ffff0ccc90e in QQuickItemPrivate::derefWindow (this=0x55555562c680) at /data/installation/qt/x86_64-5.11/include/QtCore/qglobal.h:1038
      #35 0x00007ffff0ccc90e in QQuickItemPrivate::derefWindow (this=this@entry=0x555555a8d540) at /data/installation/qt/x86_64-5.11/include/QtCore/qglobal.h:1038
      #36 0x00007ffff0ccccd8 in QQuickItem::setParentItem (this=0x55555562b830, parentItem=parentItem@entry=0x0) at /data/sources/qt/qt5/qtdeclarative/src/quick/items/qquickitem.cpp:2744
      #37 0x00007ffff0921c6b in QQuickPopupPrivate::finalizeExitTransition (this=0x5555555ae940) at /data/sources/qt/qt5/qtquickcontrols2/src/quicktemplates2/qquickpopup.cpp:443
      #38 0x00007ffff0be01b8 in QQuickTransitionManager::transition (this=<optimized out>, list=..., transition=0x0, defaultTarget=<optimized out>) at /data/sources/qt/qt5/qtdeclarative/src/quick/util/qquicktransitionmanager.cpp:265
      #39 0x00007ffff0958900 in QQuickPopup::qt_static_metacall (_o=_o@entry=0x555555628810, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=49, _a=_a@entry=0x7fffffff9f50) at .moc/moc_qquickpopup_p.cpp:619
      #40 0x00007ffff09597bb in QQuickPopup::qt_metacall (this=this@entry=0x555555628810, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=49, _a=_a@entry=0x7fffffff9f50) at .moc/moc_qquickpopup_p.cpp:1133
      #41 0x00007ffff0951695 in QQuickDialog::qt_metacall (this=0x555555628810, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffffff9f50) at .moc/moc_qquickdialog_p.cpp:365
      #42 0x00007ffff7ed99b9 in QQmlObjectOrGadget::metacall (this=this@entry=0x7fffffffa260, type=type@entry=QMetaObject::InvokeMetaMethod, index=<optimized out>, index@entry=54, argv=argv@entry=0x7fffffff9f50)
          at ../../include/QtQml/5.11.3/QtQml/private/../../../../../../../../../sources/qt/qt5/qtdeclarative/src/qml/qml/ftw/qflagpointer_p.h:327
      --Type <RET> for more, q to quit, c to continue without paging--
      #43 0x00007ffff7e3175b in CallMethod (object=..., index=54, returnType=returnType@entry=43, argCount=argCount@entry=0, argTypes=argTypes@entry=0x0, engine=engine@entry=0x5555555af1b0, callArgs=0x7ffff1c9e3c8, callType=QMetaObject::InvokeMetaMethod)
          at /data/sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:1193
      #44 0x00007ffff7e31f13 in CallPrecise (object=..., data=..., engine=engine@entry=0x5555555af1b0, callArgs=callArgs@entry=0x7ffff1c9e3c8, callType=callType@entry=QMetaObject::InvokeMetaMethod)
          at ../../include/QtQml/5.11.3/QtQml/private/../../../../../../../../../sources/qt/qt5/qtdeclarative/src/qml/qml/qqmlpropertycache_p.h:214
      #45 0x00007ffff7e32de0 in QV4::QObjectMethod::callInternal (this=<optimized out>, thisObject=0x7ffff1c9e388, argv=<optimized out>, argc=<optimized out>) at /data/sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:1975
      #46 0x00007ffff7e5247b in QV4::FunctionObject::call (argc=0, argv=0x7ffff1c9e350, thisObject=0x7ffff1c9e388, this=<optimized out>) at /data/sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4functionobject_p.h:141
      #47 QV4::Runtime::method_callProperty (engine=0x5555555af1b0, base=0x7ffff1c9e388, nameIndex=26, argv=0x7ffff1c9e350, argc=0) at /data/sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4runtime.cpp:1062
      #48 0x00007ffff7e43897 in QV4::Moth::VME::exec (fo=0x5555555af1b0, thisObject=0x7ffff7fbe8c0 <QV4::Moth::VME::exec(QV4::FunctionObject const*, QV4::Value const*, QV4::Value const*, int)::jumpTable>, argv=0x7ffff16b17a0, argc=-189353419) at /data/sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4vme_moth.cpp:800
      #49 0x00007ffff7f0a62c in QV4::Moth::VME::exec (context=<optimized out>, argc=<optimized out>, argv=0x7ffff1c9e350, thisObject=<optimized out>, v4Function=0x55555566b6a0) at ../../include/QtQml/5.11.3/QtQml/private/../../../../../../../../../sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4vme_moth_p.h:72
      #50 QV4::Function::call (context=<optimized out>, argc=<optimized out>, argv=0x7ffff1c9e350, thisObject=<optimized out>, this=0x55555566b6a0) at ../../include/QtQml/5.11.3/QtQml/private/../../../../../../../../../sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4function_p.h:72
      #51 QQmlJavaScriptExpression::evaluate (this=this@entry=0x55555566ed20, callData=callData@entry=0x7ffff1c9e328, isUndefined=isUndefined@entry=0x0) at /data/sources/qt/qt5/qtdeclarative/src/qml/qml/qqmljavascriptexpression.cpp:217
      #52 0x00007ffff7e968f3 in QQmlBoundSignalExpression::evaluate (this=<optimized out>, a=a@entry=0x0) at ../../include/QtQml/5.11.3/QtQml/private/../../../../../../../../../sources/qt/qt5/qtdeclarative/src/qml/jsruntime/qv4jscall_p.h:94
      #53 0x00007ffff7e96f8b in QQmlBoundSignal_callback (e=0x55555564a9c0, a=0x0) at ../../include/QtQml/5.11.3/QtQml/private/../../../../../../../../../sources/qt/qt5/qtdeclarative/src/qml/qml/qqmlboundsignalexpressionpointer_p.h:69
      #54 0x00007ffff7ee4b69 in QQmlNotifier::emitNotify (endpoint=<optimized out>, a=a@entry=0x0) at /data/sources/qt/qt5/qtdeclarative/src/qml/qml/qqmlnotifier.cpp:106
      #55 0x00007ffff7e752fa in QQmlData::signalEmitted (object=0x555555a8d310, index=52, a=0x0) at /data/sources/qt/qt5/qtdeclarative/src/qml/qml/qqmlengine.cpp:861
      #56 0x00007ffff6c3909f in QMetaObject::activate (sender=sender@entry=0x555555a8d310, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=22, argv=argv@entry=0x0) at ../../include/QtCore/../../../../../../sources/qt/qt5/qtbase/src/corelib/kernel/qobject.h:121
      #57 0x00007ffff6c39cf7 in QMetaObject::activate (sender=sender@entry=0x555555a8d310, m=m@entry=0x7ffff0e8ab00 <QQuickMouseArea::staticMetaObject>, local_signal_index=local_signal_index@entry=22, argv=argv@entry=0x0) at /data/sources/qt/qt5/qtbase/src/corelib/kernel/qobject.cpp:3633
      #58 0x00007ffff0d60da3 in QQuickMouseArea::containsPressChanged (this=this@entry=0x555555a8d310) at .moc/moc_qquickmousearea_p.cpp:700
      #59 0x00007ffff0d6205d in QQuickMouseArea::setHovered (this=this@entry=0x555555a8d310, h=<optimized out>) at /data/sources/qt/qt5/qtdeclarative/src/quick/items/qquickmousearea.cpp:1160
      #60 0x00007ffff0d62f0f in QQuickMouseArea::mouseMoveEvent (this=0x555555a8d310, event=0x7fffffffc8d0) at /data/sources/qt/qt5/qtdeclarative/src/quick/items/qquickmousearea.cpp:713
      #61 0x00007ffff0ccb588 in QQuickItem::event (this=0x555555a8d310, ev=0x7fffffffc8d0) at /data/sources/qt/qt5/qtdeclarative/src/quick/items/qquickitem.cpp:8018
      

      Attachments

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

        Activity

          People

            iamsergio Sergio Martins
            iamsergio Sergio Martins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes