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

Attached properties through createObject with initial parameters crash if done from a javascript file

XMLWordPrintable

      Attached application creates an object and sets Layout attached property through initial parameters from QML and it works, but trying to do the same from a .js file crashes.

      If import statement for QtQuick.Layouts in .qml file is removed it seems to also crash in QML side as well, so it probably relates to it not being known.

      1  QV4::Object::put                                                                                            qv4object_p.h          281  0x7ffff7b3b78d 
      2  QQmlComponentPrivate::setInitialProperty                                                                    qqmlcomponent.cpp      400  0x7ffff7b3b78d 
      3  QQmlComponentPrivate::createWithProperties                                                                  qqmlcomponent.cpp      983  0x7ffff7b3fea3 
      4  QQmlComponent::createObject                                                                                 qqmlcomponent.cpp      1955 0x7ffff7b40125 
      7  QQmlObjectOrGadget::metacall                                                                                qqmlobjectorgadget.cpp 14   0x7ffff7bd129d 
      9  QV4::QObjectMethod::callPrecise                                                                             qv4qobjectwrapper.cpp  2076 0x7ffff7a72050 
      10 operator()                                                                                                  qv4qobjectwrapper.cpp  3078 0x7ffff7a73991 
      11 operator()<QV4::QObjectMethod::callInternal(const QV4::Value *, const QV4::Value *, int) const::<lambda()>> qv4qobjectwrapper.cpp  3055 0x7ffff7a73991 
      12 QV4::QObjectMethod::callInternal                                                                            qv4qobjectwrapper.cpp  3078 0x7ffff7a73991 
      13 QV4::FunctionObject::call                                                                                   qv4functionobject_p.h  187  0x7ffff7adb5df 
      14 QV4::Moth::VME::interpret                                                                                   qv4vme_moth.cpp        798  0x7ffff7adb5df 
      15 QV4::Moth::VME::exec                                                                                        qv4vme_moth.cpp        487  0x7ffff7ae0ee3 
      16 qfoDoCall                                                                                                   qv4functionobject.cpp  527  0x7ffff7a183d8 
      17 QV4::FunctionObject::call                                                                                   qv4functionobject_p.h  187  0x7ffff7adb5df 
      18 QV4::Moth::VME::interpret                                                                                   qv4vme_moth.cpp        798  0x7ffff7adb5df 
      19 QV4::Moth::VME::exec                                                                                        qv4vme_moth.cpp        487  0x7ffff7ae0ee3 
      20 QV4::doCall                                                                                                 qv4function.cpp        52   0x7ffff7a1397a
      

        1. QTBUG-138825.tar.gz
          2 kB
          Joni Poikelin
        For Gerrit Dashboard: QTBUG-138825
        # Subject Branch Project Status CR V

            fabiankosmale Fabian Kosmale
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: