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

The app crashes with ListView when using contentHeight and fast scrolling with a mouse wheel.

    XMLWordPrintable

Details

    • Windows

    Description

      The app crashes with ListView when using contentHeight and fast scrolling with a mouse wheel.

      To reproduce the issue:
      Navigate to Mouse settings, and in the "Scrolling" section, increase 'Lines to scroll at a time' to 60 or above.
      Next, run the attached example project and start scrolling for a few seconds.
      The issue appears faster with MSVC compiler with the following runtime error:

      --------------------------- Microsoft Visual C++ Runtime Library --------------------------- Debug Error! Program: C:\Qt\6.8.2\msvc2022_64\bin\Qt6Cored.dll Module: 6.8.2 File: C:\Users\qt\work\qt\qtdeclarative\src\quick\items\qquickitem.cpp Line: 3042 ASSERT: "childItems.contains(child)" in file C:\Users\qt\work\qt\qtdeclarative\src\quick\items\qquickitem.cpp, line 3042 
       
      1   qt_maybe_message_fatal<QString &>                                        2156 0x7fff485daa3c
      2   qt_message                                                               412  0x7fff485da8f8
      3   QMessageLogger::fatal                                                    902  0x7fff485d7a34
      4   qt_assert                                                                105  0x7fff4858f979
      5   QQuickItemPrivate::removeChild                                           3050 0x7fff44dfadbe
      6   QQuickItem::setParentItem                                                2790 0x7fff44de5416
      7   QQuickItemView::destroyingItem                                           2551 0x7fff45604fc7
      8   `QtPrivate::FunctorCall<std::integer_sequence<unsigned __int64,0>,QtPriv 127  0x7fff4561aa9d
      9   QtPrivate::FunctorCallBase::call_internal<void,`QtPrivate::FunctorCall<s 65   0x7fff456158d9
      10  QtPrivate::FunctorCall<std::integer_sequence<unsigned __int64,0>,QtPriva 126  0x7fff4561c1c6
      11  QtPrivate::FunctionPointer<void (__cdecl QQuickItemView:: *)(QObject *)> 174  0x7fff4561583d
      12  QtPrivate::QCallableObject<void (__cdecl QQuickItemView:: *)(QObject *), 545  0x7fff4561dc6e
      13  QtPrivate::QSlotObjectBase::call                                         461  0x7fff485789d3
      14  doActivate<0>                                                            4222 0x7fff487d8afb
      15  QMetaObject::activate                                                    4282 0x7fff487bf199
      16  QMetaObject::activate<void,QObject *>                                    319  0x7fff4493c445
      17  QQmlInstanceModel::destroyingItem                                        219  0x7fff44939ef3
      18  QQmlDelegateModelPrivate::emitDestroyingItem                             305  0x7fff44a2a06d
      19  QQmlDelegateModelPrivate::destroyCacheItem                               645  0x7fff449f494d
      20  QQmlDelegateModelPrivate::release                                        639  0x7fff449f4071
      21  QQmlDelegateModel::release                                               660  0x7fff449e4427
      22  QQuickItemViewPrivate::releaseItem                                       2582 0x7fff4560a467
      23  QQuickListViewPrivate::releaseItem                                       705  0x7fff45635d31
      24  QQuickListViewPrivate::removeItem                                        809  0x7fff4563583b
      25  QQuickListViewPrivate::removeNonVisibleItems                             835  0x7fff4563507c
      26  QQuickItemViewPrivate::refill                                            1901 0x7fff45609bd2
      27  QQuickItemViewPrivate::refill                                            1853 0x7fff4560976f
      28  QQuickItemViewPrivate::refillOrLayout                                    218  0x7fff455fc422
      29  QQuickItemView::animStopped                                              1346 0x7fff45605122
      30  QQuickItemView::qt_static_metacall                                       465  0x7fff455fe095
      31  doActivate<0>                                                            4234 0x7fff487d8c2f
      32  QMetaObject::activate                                                    4282 0x7fff487bf199
      33  QQuickFlickable::movementEnded                                           876  0x7fff44da5545
      34  QQuickFlickable::movementEnding                                          3197 0x7fff44da87af
      35  QQuickFlickable::movementEnding                                          3155 0x7fff44da83f9
      36  QQuickFlickable::timelineCompleted                                       3125 0x7fff44da8a03
      37  QQuickFlickable::qt_static_metacall                                      468  0x7fff44da1129
      38  QQuickFlickable::qt_metacall                                             670  0x7fff44da0cba
      39  QQuickItemView::qt_metacall                                              663  0x7fff455fdb70
      40  QQuickListView::qt_metacall                                              481  0x7fff4562f3c0
      41  QMetaObject::metacall                                                    349  0x7fff487272b9
      42  doActivate<0>                                                            4248 0x7fff487d8cd4
      43  QMetaObject::activate                                                    4282 0x7fff487bf199
      44  QQuickTimeLine::completed                                                130  0x7fff453a25f5
      45  QQuickTimeLine::updateCurrentTime                                        678  0x7fff453a271e
      46  QAbstractAnimationJob::setCurrentTime                                    481  0x7fff4a4de28a
      47  QAbstractAnimationJob::setState                                          367  0x7fff4a4df0cc
      48  QAbstractAnimationJob::start                                             514  0x7fff4a4de4e8
      49  QQuickTimeLinePrivate::add                                               147  0x7fff453a34cc
      50  QQuickTimeLine::set                                                      349  0x7fff453a1096
      51  QQuickFlickablePrivate::fixup                                            510  0x7fff44dac796
      52  QQuickListViewPrivate::fixup                                             1883 0x7fff4563f0cf
      53  QQuickFlickablePrivate::fixupY                                           424  0x7fff44dac485
      54  QQuickFlickable::setContentHeight                                        2454 0x7fff44da3491
      55  QQuickFlickable::qt_static_metacall                                      627  0x7fff44da27a9
      56  QQmlPropertyData::writeProperty                                          413  0x7fff49fc6056
      57  GenericBinding<6>::doStore<double>                                       285  0x7fff49fda4bc
      58  GenericBinding<6>::write                                                 257  0x7fff49fe9411
      59  QQmlBinding::doUpdate                                                    715  0x7fff49fd322d
      60  QQmlBinding::update                                                      165  0x7fff49fd243e
      61  QQmlBinding::expressionChanged                                           617  0x7fff49fd279f
      62  QQmlJavaScriptExpressionGuard_callback                                   562  0x7fff4a0cda8d
      63  QQmlNotifier::emitNotify                                                 74   0x7fff4a13ffbd
      64  QQmlData::signalEmitted                                                  345  0x7fff4a0530b1
      65  doActivate<0>                                                            4112 0x7fff487d8250
      66  QMetaObject::activate                                                    4282 0x7fff487bf199
      67  QMetaObject::activate<void,QRectF>                                       319  0x7fff44e22f65
      68  QQuickItem::childrenRectChanged                                          932  0x7fff44dedde0
      69  QQuickItemPrivate::emitChildrenRectChanged                               693  0x7fff44d3ad7d
      70  QQuickContents::updateRect                                               253  0x7fff44df1b20
      71  QQuickContents::calcGeometry                                             99   0x7fff44e41341
      72  QQuickContents::itemChildRemoved                                         281  0x7fff44df1367
      73  QQuickItemPrivate::notifyChangeListeners<void (__cdecl QQuickItemChangeL 413  0x7fff44e2abe3
      74  QQuickItemPrivate::itemChange                                            6922 0x7fff44e012cd
      75  QQuickItemPrivate::removeChild                                           3072 0x7fff44dfaf1b
      76  QQuickItem::setParentItem                                                2790 0x7fff44de5416
      77  QQuickItemView::destroyingItem                                           2551 0x7fff45604fc7
      78  `QtPrivate::FunctorCall<std::integer_sequence<unsigned __int64,0>,QtPriv 127  0x7fff4561aa9d
      79  QtPrivate::FunctorCallBase::call_internal<void,`QtPrivate::FunctorCall<s 65   0x7fff456158d9
      80  QtPrivate::FunctorCall<std::integer_sequence<unsigned __int64,0>,QtPriva 126  0x7fff4561c1c6
      81  QtPrivate::FunctionPointer<void (__cdecl QQuickItemView:: *)(QObject *)> 174  0x7fff4561583d
      82  QtPrivate::QCallableObject<void (__cdecl QQuickItemView:: *)(QObject *), 545  0x7fff4561dc6e
      83  QtPrivate::QSlotObjectBase::call                                         461  0x7fff485789d3
      84  doActivate<0>                                                            4222 0x7fff487d8afb
      85  QMetaObject::activate                                                    4282 0x7fff487bf199
      86  QMetaObject::activate<void,QObject *>                                    319  0x7fff4493c445
      87  QQmlInstanceModel::destroyingItem                                        219  0x7fff44939ef3
      88  QQmlDelegateModelPrivate::emitDestroyingItem                             305  0x7fff44a2a06d
      89  QQmlDelegateModelPrivate::destroyCacheItem                               645  0x7fff449f494d
      90  QQmlDelegateModelPrivate::release                                        639  0x7fff449f4071
      91  QQmlDelegateModel::release                                               660  0x7fff449e4427
      92  QQuickItemViewPrivate::releaseItem                                       2582 0x7fff4560a467
      93  QQuickListViewPrivate::releaseItem                                       705  0x7fff45635d31
      94  QQuickItemViewPrivate::releaseVisibleItems                               233  0x7fff455fc5f6
      95  QQuickListViewPrivate::addVisibleItems                                   748  0x7fff45634503
      96  QQuickItemViewPrivate::refill                                            1885 0x7fff45609a96
      97  QQuickItemViewPrivate::refill                                            1853 0x7fff4560976f
      98  QQuickItemViewPrivate::refillOrLayout                                    218  0x7fff455fc422
      99  QQuickListView::viewportMoved                                            3519 0x7fff45630e1b
      100 QQuickFlickablePrivate::itemGeometryChanged                              319  0x7fff44dae236
      101 QQuickItemViewPrivate::itemGeometryChanged                               1226 0x7fff4560f3b6
      102 QQuickListViewPrivate::itemGeometryChanged                               1593 0x7fff4563cdf6
      103 `QQuickItem::geometryChange'::`2'::<lambda_1>::operator()                3906 0x7fff44e0bd8c
      104 QQuickItemPrivate::notifyChangeListeners<`QQuickItem::geometryChange'::` 415  0x7fff44e2c938
      105 QQuickItem::geometryChange                                               3904 0x7fff44def05e
      106 QQuickItem::setY                                                         7310 0x7fff44de6b15
      107 QQuickFlickablePrivate::setViewportY                                     2012 0x7fff44dadfed
      108 QQuickTimeLineValueProxy<QQuickFlickablePrivate>::setValue               146  0x7fff44dc5895
      109 QQuickTimeLinePrivate::advance                                           797  0x7fff453a4203
      110 QQuickTimeLine::updateCurrentTime                                        671  0x7fff453a26ab
      111 QAbstractAnimationJob::setCurrentTime                                    481  0x7fff4a4de28a
      112 QQmlAnimationTimer::updateAnimationsTime                                 103  0x7fff4a4e03bf
      113 QUnifiedTimer::updateAnimationTimers                                     288  0x7fff48b15d75
      114 QAnimationDriver::advanceAnimation                                       756  0x7fff48b1403e
      115 QSGDefaultAnimationDriver::advance                                       217  0x7fff45143114
      116 `QSGThreadedRenderLoop::polishAndSync'::`53'::<lambda_1>::operator()     1709 0x7fff45594f86
      117 QSGThreadedRenderLoop::polishAndSync                                     1746 0x7fff4558e78c
      118 QSGThreadedRenderLoop::handleUpdateRequest                               1427 0x7fff4558c7ec
      119 QQuickWindow::event                                                      1595 0x7fff45007118
      120 QQuickWindowQmlImpl::event                                               153  0x7fff4503b0a0
      121 QCoreApplicationPrivate::notify_helper                                   1281 0x7fff487020a8
      122 doNotify                                                                 1210 0x7fff48704be5
      123 QCoreApplication::notify                                                 1194 0x7fff486fedca
      124 QGuiApplication::notify                                                  2057 0x7fff4663dc06
      125 QCoreApplication::notifyInternal2                                        1109 0x7fff48700a75
      126 QCoreApplication::sendEvent                                              1550 0x7fff486fe4ed
      127 QPlatformWindow::deliverUpdateRequest                                    832  0x7fff46726ab9
      128 ``QWindowsWindow::requestUpdate'::`8'::<lambda_1>::operator()'::`8'::<la 4082 0x7fff4619156c
      129 `QtPrivate::FunctorCall<std::integer_sequence<unsigned __int64>,QtPrivat 116  0x7fff46191927
      130 QtPrivate::FunctorCallBase::call_internal<void,`QtPrivate::FunctorCall<s 65   0x7fff46198809
      131 QtPrivate::FunctorCall<std::integer_sequence<unsigned __int64>,QtPrivate 115  0x7fff461918fb
      132 QtPrivate::FunctorCallable<``QWindowsWindow::requestUpdate'::`8'::<lambd 337  0x7fff461987d3
      133 QtPrivate::QCallableObject<``QWindowsWindow::requestUpdate'::`8'::<lambd 547  0x7fff461917f0
      134 QtPrivate::QSlotObjectBase::call                                         461  0x7fff485789d3
      135 QMetaCallEvent::placeMetaCall                                            620  0x7fff487ca53f
      136 QObject::event                                                           1410 0x7fff487c101d
      137 QWindow::event                                                           2778 0x7fff4675e864
      138 QQuickWindow::event                                                      1654 0x7fff450075a6
      139 QQuickWindowQmlImpl::event                                               153  0x7fff4503b0a0
      140 QCoreApplicationPrivate::notify_helper                                   1281 0x7fff487020a8
      141 doNotify                                                                 1210 0x7fff48704be5
      142 QCoreApplication::notify                                                 1194 0x7fff486fedca
      143 QGuiApplication::notify                                                  2057 0x7fff4663dc06
      144 QCoreApplication::notifyInternal2                                        1109 0x7fff48700a75
      145 QCoreApplication::sendEvent                                              1550 0x7fff486fe4ed
      146 QCoreApplicationPrivate::sendPostedEvents                                1889 0x7fff487030bc
      147 QEventDispatcherWin32::sendPostedEvents                                  925  0x7fff48b804c0
      148 QWindowsGuiEventDispatcher::sendPostedEvents                             44   0x7fff46e8be15
      149 QEventDispatcherWin32::processEvents                                     483  0x7fff48b7e5bf
      150 QWindowsGuiEventDispatcher::processEvents                                36   0x7fff46e8bdcb
      151 QEventLoop::processEvents                                                105  0x7fff4871ef9c
      152 QEventLoop::exec                                                         186  0x7fff4871f2a6
      153 QCoreApplication::exec                                                   1452 0x7fff486fe276
      154 QGuiApplication::exec                                                    1974 0x7fff4663db5a
      155 main                                                                     23   0x7ff7970c4446
      156 invoke_main                                                              79   0x7ff7970d90e9
      157 __scrt_common_main_seh                                                   288  0x7ff7970d8fd2
      158 __scrt_common_main                                                       331  0x7ff7970d8e8e
      159 mainCRTStartup                                                           17   0x7ff7970d917e
      160 BaseThreadInitThunk                                                           0x7ff82ad6e8d7
      161 RtlUserThreadStart                                                            0x7ff82b6fc34c
      

        

      Attachments

        1. qtbug134502.zip
          3 kB
        2. qtbug134502_stack.txt
          49 kB
        3. myProject.zip
          3 kB
        For Gerrit Dashboard: QTBUG-134502
        # Subject Branch Project Status CR V

        Activity

          People

            anmaatta Antti Määttä
            mahdi.belila Mehdi Belila
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are 2 open Gerrit changes