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

[REG 5.14.1 -> 5.15] "Trying to construct an instance of an invalid type" when using array of strings for ListView model

    XMLWordPrintable

Details

    • 19cc92d170eaba83812be2abda15348ecfa2f072 (qt/qtdeclarative/5.14)

    Description

      Regression from 5.14.

      Also seems to be triggered by an array of JS objects.

      import QtQuick 2.12
      import QtQuick.Window 2.12
      
      Window {
          id: window
          width: 640
          height: 800
          visible: true
          color: "black"
      
          ListView {
              id: listView
              model: ["A", "B", "C"]
          }
      }
      

      Call stack:

      1   (anonymous namespace)::customConstruct(QVariant::Private *, void const *)                                                                                                     qvariant.cpp             1459 0x1073bd5af 
      2   QVariant::create(int, void const *)                                                                                                                                           qvariant.cpp             1811 0x10733bc8b 
      3   QVariant::QVariant(int, void const *)                                                                                                                                         qvariant.cpp             2132 0x10733c7f3 
      4   QVariant::QVariant(int, void const *)                                                                                                                                         qvariant.cpp             2132 0x10733c883 
      5   toVariant(QV4::ExecutionEngine *, QV4::Value const&, int, bool, QSet<QV4::Heap::Object *> *)                                                                                  qv4engine.cpp            1522 0x104545fe1 
      6   QV4::ExecutionEngine::toVariant(QV4::Value const&, int, bool)                                                                                                                 qv4engine.cpp            1452 0x104544e44 
      7   QJSValue::toVariant() const                                                                                                                                                   qjsvalue.cpp             713  0x1044ebbc2 
      8   QQuickItemView::setModel(QVariant const&)                                                                                                                                     qquickitemview.cpp       190  0x100a66b9d 
      9   QQuickItemView::qt_static_metacall(QObject *, QMetaObject::Call, int, void * *)                                                                                               moc_qquickitemview_p.cpp 892  0x100a9c248 
      10  QQmlPropertyData::writeProperty(QObject *, void *, QFlags<QQmlPropertyData::WriteFlag>) const                                                                                 qqmlpropertydata_p.h     375  0x104d2c86c 
      11  QQmlPropertyPrivate::write(QObject *, QQmlPropertyData const&, QVariant const&, QQmlContextData *, QFlags<QQmlPropertyData::WriteFlag>)                                       qqmlproperty.cpp         1300 0x104d29f50 
      12  QQmlPropertyPrivate::writeValueProperty(QObject *, QQmlPropertyData const&, QQmlPropertyData const&, QVariant const&, QQmlContextData *, QFlags<QQmlPropertyData::WriteFlag>) qqmlproperty.cpp         1209 0x104d27586 
      13  QQmlBinding::slowWrite(QQmlPropertyData const&, QQmlPropertyData const&, QV4::Value const&, bool, QFlags<QQmlPropertyData::WriteFlag>)                                        qqmlbinding.cpp          474  0x104ee8b57 
      14  GenericBinding<0>::write(QV4::Value const&, bool, QFlags<QQmlPropertyData::WriteFlag>)                                                                                        qqmlbinding.cpp          335  0x104efc3c6 
      15  QQmlNonbindingBinding::doUpdate(QQmlJavaScriptExpression::DeleteWatcher const&, QFlags<QQmlPropertyData::WriteFlag>, QV4::Scope&)                                             qqmlbinding.cpp          258  0x104ef071a 
      16  QQmlBinding::update(QFlags<QQmlPropertyData::WriteFlag>)                                                                                                                      qqmlbinding.cpp          194  0x104ee64a6 
      17  QQmlBinding::setEnabled(bool, QFlags<QQmlPropertyData::WriteFlag>)                                                                                                            qqmlbinding.cpp          566  0x104eea28e 
      18  non-virtual thunk to QQmlBinding::setEnabled(bool, QFlags<QQmlPropertyData::WriteFlag>)                                                                                       qqmlbinding.cpp               0x104eeabac 
      19  QQmlObjectCreator::finalize(QQmlInstantiationInterrupt&)                                                                                                                      qqmlobjectcreator.cpp    1389 0x104f47c62 
      20  QQmlComponentPrivate::complete(QQmlEnginePrivate *, QQmlComponentPrivate::ConstructionState *)                                                                                qqmlcomponent.cpp        988  0x104d3d75f 
      ... <More>                                                                                                                                                                                                                  
      

      Attachments

        Issue Links

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

          Activity

            People

              fabiankosmale Fabian Kosmale
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes