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

Multiple Repeaters attached to DelegateModel parts crashes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.6.1
    • None
    • Arch Linux

    Description

      With attached example there seems to be an assert:

      ASSERT failure in QVector<T>::at: "index out of range", file qt5/qtbase/src/corelib/tools/qvector.h, line 419
      
      1  raise                                                                          0x7ffff53fa295 
      2  abort                                                                          0x7ffff53fb6da 
      3  qt_message_fatal                                qlogging.cpp              1648 0x7ffff657816c 
      4  QMessageLogger::fatal                           qlogging.cpp              790  0x7ffff6574670 
      5  qt_assert_x                                     qglobal.cpp               3007 0x7ffff656db51 
      6  QVector<QPointer<QQuickItem>>::at               qvector.h                 419  0x7ffff7b2276f 
      7  QQuickRepeater::initItem                        qquickrepeater.cpp        413  0x7ffff7b21a5d 
      8  QQuickRepeater::qt_static_metacall              moc_qquickrepeater_p.cpp  138  0x7ffff7c10718 
      9  QQuickRepeater::qt_metacall                     moc_qquickrepeater_p.cpp  261  0x7ffff7c10d4d 
      10 QMetaObject::metacall                           qmetaobject.cpp           295  0x7ffff67c7957 
      11 QMetaObject::activate                           qobject.cpp               3745 0x7ffff67ff229 
      12 QMetaObject::activate                           qobject.cpp               3595 0x7ffff67fe962 
      13 QQmlInstanceModel::initItem                     moc_qqmlobjectmodel_p.cpp 236  0x7ffff6efb86e 
      14 QQmlPartsModel::initPackage                     qqmldelegatemodel.cpp     3212 0x7ffff6ec9594 
      15 QQmlDelegateModelGroupPrivate::initPackage      qqmldelegatemodel.cpp     2284 0x7ffff6ec5368 
      16 QQmlDelegateModelPrivate::emitInitPackage       qqmldelegatemodel.cpp     803  0x7ffff6ebd5bf 
      17 QQmlDelegateModelPrivate::setInitialState       qqmldelegatemodel.cpp     910  0x7ffff6ebdc13 
      18 QQDMIncubationTask::setInitialState             qqmldelegatemodel.cpp     901  0x7ffff6ebdb9f 
      19 QQmlIncubatorPrivate::incubate                  qqmlincubator.cpp         322  0x7ffff6e072d4 
      20 QQmlEnginePrivate::incubate                     qqmlincubator.cpp         87   0x7ffff6e067b0 
      21 QQmlDelegateModelItem::incubateObject           qqmldelegatemodel.cpp     1958 0x7ffff6ec4022 
      22 QQmlDelegateModelPrivate::object                qqmldelegatemodel.cpp     981  0x7ffff6ebe29e 
      23 QQmlPartsModel::object                          qqmldelegatemodel.cpp     3145 0x7ffff6ec9150 
      24 QQuickRepeater::modelUpdated                    qquickrepeater.cpp        494  0x7ffff7b2237b 
      25 QQuickRepeater::qt_static_metacall              moc_qquickrepeater_p.cpp  139  0x7ffff7c1074e 
      26 QQuickRepeater::qt_metacall                     moc_qquickrepeater_p.cpp  261  0x7ffff7c10d4d 
      27 QMetaObject::metacall                           qmetaobject.cpp           295  0x7ffff67c7957 
      28 QMetaObject::activate                           qobject.cpp               3745 0x7ffff67ff229 
      29 QMetaObject::activate                           qobject.cpp               3595 0x7ffff67fe962 
      30 QQmlInstanceModel::modelUpdated                 moc_qqmlobjectmodel_p.cpp 222  0x7ffff6efb7b2 
      31 QQmlPartsModel::emitModelUpdated                qqmldelegatemodel.cpp     3224 0x7ffff6ec964a 
      32 QQmlDelegateModelGroupPrivate::emitModelUpdated qqmldelegatemodel.cpp     2269 0x7ffff6ec5242 
      33 QQmlDelegateModelPrivate::emitChanges           qqmldelegatemodel.cpp     1444 0x7ffff6ec0a8f 
      34 QQmlDelegateModel::componentComplete            qqmldelegatemodel.cpp     328  0x7ffff6ebc176 
      35 QQmlObjectCreator::finalize                     qqmlobjectcreator.cpp     1206 0x7ffff6e95fd3 
      36 QQmlComponentPrivate::complete                  qqmlcomponent.cpp         919  0x7ffff6e027d6 
      37 QQmlComponentPrivate::completeCreate            qqmlcomponent.cpp         955  0x7ffff6e028be 
      38 QQmlComponent::completeCreate                   qqmlcomponent.cpp         948  0x7ffff6e0286e 
      39 QQmlComponent::create                           qqmlcomponent.cpp         781  0x7ffff6e02079 
      40 QQmlApplicationEnginePrivate::_q_finishLoad     qqmlapplicationengine.cpp 130  0x7ffff6e86c2c 
      41 QQmlApplicationEnginePrivate::startLoad         qqmlapplicationengine.cpp 109  0x7ffff6e869d5 
      42 QQmlApplicationEngine::load                     qqmlapplicationengine.cpp 250  0x7ffff6e86f29 
      43 main                                            main.cpp                  9    0x400e88       
      

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              poikelin Joni Poikelin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes