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

Container crashes with Repeater

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.1, 5.9.3
    • 5.9.0
    • Quick: Controls 2
    • None
    • 56c9ce5fac873e5c1e20a6a965eb750a81373968 71031b6e8c53a63f77542dbaaae05ca916287cfc

    Description

      import QtQuick 2.7
      import QtQuick.Controls 2.0
      
      ApplicationWindow {
          id: window
          width: 640
          height: 480
          visible: true
      
          Container {
              id: container
              Item { }
              Item { }
              Item { }
              Item { }
              contentItem: Row {
                  Repeater {
                      model: container.contentModel
                  }
              }
          }
      }
      
      ASSERT failure in QList<T>::operator[]: "index out of range", file /home/jpnurmi/Projects/qt-59/qtbase/include/QtCore/../../src/corelib/tools/qlist.h, line 549
      The program has unexpectedly finished.
      
      1  __GI_raise                                      raise.c                   58   0x7ffff58d091f 
      2  __GI_abort                                      abort.c                   89   0x7ffff58d251a 
      3  qt_message_fatal                                qlogging.cpp              1690 0x7ffff6a73248 
      4  QMessageLogger::fatal                           qlogging.cpp              796  0x7ffff6a73c05 
      5  qt_assert_x                                     qglobal.cpp               3057 0x7ffff6a6dff8 
      6  QList<QQmlObjectModelPrivate::Item>::operator[] qlist.h                   549  0x7ffff72ccf81 
      7  QQmlObjectModel::object                         qqmlobjectmodel.cpp       273  0x7ffff72ccf81 
      8  QQuickRepeater::modelUpdated                    qquickrepeater.cpp        504  0x7ffff7be1d07 
      9  QQuickRepeater::qt_static_metacall              moc_qquickrepeater_p.cpp  140  0x7ffff7be1fc7 
      10 QQuickRepeater::qt_metacall                     moc_qquickrepeater_p.cpp  260  0x7ffff7be2463 
      11 QMetaObject::metacall                           qmetaobject.cpp           301  0x7ffff6c629ec 
      12 QMetaObject::activate                           qobject.cpp               3781 0x7ffff6c87207 
      13 QMetaObject::activate                           qobject.cpp               3628 0x7ffff6c87451 
      14 QQmlInstanceModel::modelUpdated                 moc_qqmlobjectmodel_p.cpp 222  0x7ffff72caf0a 
      15 QQmlObjectModelPrivate::move                    qqmlobjectmodel.cpp       133  0x7ffff72cced5 
      16 QQmlObjectModel::move                           qqmlobjectmodel.cpp       406  0x7ffff72cced5 
      17 QQuickContainerPrivate::moveItem                qquickcontainer.cpp       266  0x7fffd8593e68 
      18 QQuickContainer::moveItem                       qquickcontainer.cpp       501  0x7fffd8593f0c 
      19 QQuickContainerPrivate::itemSiblingOrderChanged qquickcontainer.cpp       339  0x7fffd859405f 
      20 QQuickItemPrivate::siblingOrderChanged          qquickitem.cpp            3633 0x7ffff7b36bbe 
      21 QQuickItem::stackBefore                         qquickitem.cpp            2826 0x7ffff7b39b8a 
      22 QQuickRepeater::initItem                        qquickrepeater.cpp        447  0x7ffff7be091f 
      23 QQuickRepeater::qt_static_metacall              moc_qquickrepeater_p.cpp  139  0x7ffff7be1fb5 
      24 QQuickRepeater::qt_metacall                     moc_qquickrepeater_p.cpp  260  0x7ffff7be2463 
      25 QMetaObject::metacall                           qmetaobject.cpp           301  0x7ffff6c629ec 
      26 QMetaObject::activate                           qobject.cpp               3781 0x7ffff6c87207 
      27 QMetaObject::activate                           qobject.cpp               3628 0x7ffff6c87451 
      28 QQmlInstanceModel::initItem                     moc_qqmlobjectmodel_p.cpp 236  0x7ffff72caf8a 
      29 QQmlObjectModel::object                         qqmlobjectmodel.cpp       276  0x7ffff72ccf8e 
      30 QQuickRepeater::modelUpdated                    qquickrepeater.cpp        504  0x7ffff7be1d07 
      31 QQuickRepeater::qt_static_metacall              moc_qquickrepeater_p.cpp  140  0x7ffff7be1fc7 
      32 QQuickRepeater::qt_metacall                     moc_qquickrepeater_p.cpp  260  0x7ffff7be2463 
      33 QMetaObject::metacall                           qmetaobject.cpp           301  0x7ffff6c629ec 
      34 QMetaObject::activate                           qobject.cpp               3781 0x7ffff6c87207 
      35 QMetaObject::activate                           qobject.cpp               3628 0x7ffff6c87451 
      36 QQmlInstanceModel::modelUpdated                 moc_qqmlobjectmodel_p.cpp 222  0x7ffff72caf0a 
      37 QQmlObjectModelPrivate::move                    qqmlobjectmodel.cpp       133  0x7ffff72cced5 
      38 QQmlObjectModel::move                           qqmlobjectmodel.cpp       406  0x7ffff72cced5 
      39 QQuickContainerPrivate::moveItem                qquickcontainer.cpp       266  0x7fffd8593e68 
      40 QQuickContainer::moveItem                       qquickcontainer.cpp       501  0x7fffd8593f0c 
      41 QQuickContainerPrivate::itemSiblingOrderChanged qquickcontainer.cpp       339  0x7fffd859405f 
      42 QQuickItemPrivate::siblingOrderChanged          qquickitem.cpp            3633 0x7ffff7b36bbe 
      43 QQuickItem::stackBefore                         qquickitem.cpp            2826 0x7ffff7b39b8a 
      44 QQuickRepeater::initItem                        qquickrepeater.cpp        447  0x7ffff7be091f 
      45 QQuickRepeater::qt_static_metacall              moc_qquickrepeater_p.cpp  139  0x7ffff7be1fb5 
      46 QQuickRepeater::qt_metacall                     moc_qquickrepeater_p.cpp  260  0x7ffff7be2463 
      47 QMetaObject::metacall                           qmetaobject.cpp           301  0x7ffff6c629ec 
      48 QMetaObject::activate                           qobject.cpp               3781 0x7ffff6c87207 
      49 QMetaObject::activate                           qobject.cpp               3628 0x7ffff6c87451 
      50 QQmlInstanceModel::initItem                     moc_qqmlobjectmodel_p.cpp 236  0x7ffff72caf8a 
      51 QQmlObjectModel::object                         qqmlobjectmodel.cpp       276  0x7ffff72ccf8e 
      52 QQuickRepeaterPrivate::requestItems             qquickrepeater.cpp        404  0x7ffff7bde76f 
      53 QQuickRepeater::regenerate                      qquickrepeater.cpp        398  0x7ffff7bdecbb 
      54 QQuickRepeater::componentComplete               qquickrepeater.cpp        351  0x7ffff7be2310 
      55 QQmlObjectCreator::finalize                     qqmlobjectcreator.cpp     1236 0x7ffff72791ac 
      56 QQmlComponentPrivate::complete                  qqmlcomponent.cpp         900  0x7ffff71e4891 
      57 QQmlComponentPrivate::completeCreate            qqmlcomponent.cpp         936  0x7ffff71e492b 
      58 QQmlComponent::completeCreate                   qqmlcomponent.cpp         929  0x7ffff71e49f3 
      59 QQmlComponent::create                           qqmlcomponent.cpp         769  0x7ffff71e46dd 
      60 QQmlApplicationEnginePrivate::finishLoad        qqmlapplicationengine.cpp 134  0x7ffff726cedd 
      61 QQmlApplicationEnginePrivate::startLoad         qqmlapplicationengine.cpp 118  0x7ffff726d141 
      62 QQmlApplicationEngine::load                     qqmlapplicationengine.cpp 259  0x7ffff726d164 
      63 main                                            main.cpp                  10   0x401001       
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jpnurmi J-P Nurmi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes