Unsolved Crash in QQmlValueTypeWrapper::typeId()
-
Hi,
I recently made the switch from Qt 5.7 to Qt 5.9 and since then I have some strange crash in code that was working before. The crash happens when I try to remove an item from a tree.
To give you some background (hopefully with some relevant info): We have a hybrid C++/QML application which uses an entity/component/system structure. The trees only contain (string representations of) entities. Each tree is represented by a template. Such a template is a list of components which an entity should have so it is added to the tree at a certain location (subitem of other entity). A tree is a so called system: it is notified when entities change, are added, removed,... . When something like that happens, the tree checks the entity against its template to see if it needs to be added/removed/changed from position/renamed/... . This is all implemented in a parent interface class (ECTreeModel) which subclasses from QAbstractItemModel. Next to that, I have the real implementations of the trees (i have 3 trees at this moment). The subclasses basically just define how the template of that tree looks like.
The ECTreeModel and the trees are all registered as meta type (qRegisterMetaType<ECTreeModel*>("ECTreeModel*"); qRegisterMetaType<ModelEditorTree*>("ModelEditorTree*"); ...) to be used as the model of a qml TreeView.At one point, when an item is removed from the tree, I get a crash in QQmlValueWrappert::typeId(), valueType was nullptr;
full call stack:
Qt5Qmld.dll!QV4::QQmlValueTypeWrapper::typeId() Line 287 C++ Symbols loaded.
Qt5Qmld.dll!QV4::QQmlValueTypeReference::readReferenceValue() Line 134 C++ Symbols loaded.
Qt5Qmld.dll!QV4::QQmlValueTypeWrapper::toVariant() Line 210 C++ Symbols loaded.
Qt5Qmld.dll!toVariant(QV4::ExecutionEngine * e, const QV4::Value & value, int typeHint, bool createJSValueForObjects, QSet<QV4::Heap::Object *> * visitedObjects) Line 1127 C++ Symbols loaded.
Qt5Qmld.dll!QV4::ExecutionEngine::toVariant(const QV4::Value & value, int typeHint, bool createJSValueForObjects) Line 1094 C++ Symbols loaded.
Qt5Qmld.dll!`anonymous namespace'::CallArgument::fromValue(int callType, QV4::ExecutionEngine * engine, const QV4::Value & value) Line 1610 C++ Symbols loaded.
Qt5Qmld.dll!CallMethod(const QQmlObjectOrGadget & object, int index, int returnType, int argCount, int * argTypes, QV4::ExecutionEngine * engine, QV4::CallData * callArgs, QMetaObject::Call callType) Line 1078 C++ Symbols loaded.
Qt5Qmld.dll!CallPrecise(const QQmlObjectOrGadget & object, const QQmlPropertyData & data, QV4::ExecutionEngine * engine, QV4::CallData * callArgs, QMetaObject::Call callType) Line 1345 C++ Symbols loaded.
Qt5Qmld.dll!QV4::QObjectMethod::callInternal(QV4::CallData * callData, QV4::Scope & scope) Line 1839 C++ Symbols loaded.
Qt5Qmld.dll!QV4::QObjectMethod::call(const QV4::Managed * m, QV4::Scope & scope, QV4::CallData * callData) Line 1769 C++ Symbols loaded.
Qt5Qmld.dll!QV4::Object::call(QV4::Scope & scope, QV4::CallData * d) Line 362 C++ Symbols loaded.
Qt5Qmld.dll!QV4::Runtime::method_callProperty(QV4::ExecutionEngine * engine, int nameIndex, QV4::CallData * callData) Line 1049 C++ Symbols loaded.
[External Code] Annotated FrameI checked the code and I don't see directly any problem in the QAbstractItemModel: all item pointers are valid and logical (pointing to the correct item, also with the correct entity representation). I also don't have persistent model indices (I look them up on the fly) and there is nothing happening in a separate thread.
BeginremoveRows, endremoverow are called as well as emit dataChanged.
At the end, i do call something like modelEditorTreeChanged signal and in a connected slot I do emit modelsTreeChanged(); which calls the getter of the modeleditortree (It is something historical, but it was working normal before). It get's into the getter and after that the crash occurs.I'm quite lost were to search for the error. My first thought was that something was wrong with some qmodelindices (had a lot of issues before because my lack of knowledge, but they all seemed to be fixed), but the call stack rather seems to tell something abt an issue with registered types (I'm just wildly guessing here, I'm totally not familiar with the qt quick internals :) )?
Has anybody have any idea what could be a cause of the crash and why it was working in 5.7 and in 5.9 not anymore?
Regards,Jan
-
Hi,
Did you ever figure out what the problem was that caused this crash? I have a similar crash in my application, to me it appears to happen when evaluating styleData.index for an invalid index. I have a small example project that shows the problem below. I could solve my problem by saving the index as a QPersistentModelIndex in a property of my delegate (I created a C++ function to convert the QModelIndex into a QPersistentModelIndex, as I could not figure out how to do it in QML)
Here is my project which has the same crash as you: qmltest.zip
Full backtrace:
Thread 1 "qmltest" received signal SIGSEGV, Segmentation fault. 0x00007ffff74b1f82 in QV4::QQmlValueTypeWrapper::typeId (this=0x7fffe61d6670) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlvaluetypewrapper.cpp:288 288 return d()->valueType->typeId; (gdb) bt #0 0x00007ffff74b1f82 in QV4::QQmlValueTypeWrapper::typeId (this=0x7fffe61d6670) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlvaluetypewrapper.cpp:288 #1 0x00007ffff74b126d in QV4::QQmlValueTypeReference::readReferenceValue (this=0x7fffe61d6670) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlvaluetypewrapper.cpp:135 #2 0x00007ffff74b193a in QV4::QQmlValueTypeWrapper::toVariant (this=0x7fffe61d6670) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlvaluetypewrapper.cpp:211 #3 0x00007ffff72f7b12 in toVariant (e=0x5555557c5ee0, value=..., typeHint=-1, createJSValueForObjects=true, visitedObjects=0x0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/jsruntime/qv4engine.cpp:1111 #4 0x00007ffff72f776e in QV4::ExecutionEngine::toVariant (this=0x5555557c5ee0, value=..., typeHint=-1, createJSValueForObjects=true) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/jsruntime/qv4engine.cpp:1078 #5 0x00007ffff73be039 in MatchScore (actual=..., conversionType=2) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:1225 #6 0x00007ffff73be9f4 in CallOverloaded (object=..., data=..., engine=0x5555557c5ee0, callArgs=0x7fffe61d65f8, propertyCache=0x555555b7a000, callType=QMetaObject::InvokeMetaMethod) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:1397 #7 0x00007ffff73c0ef0 in QV4::QObjectMethod::callInternal (this=0x7fffe61d6650, callData=0x7fffe61d65f8, scope=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:1833 #8 0x00007ffff73c092d in QV4::QObjectMethod::call (m=0x7fffe61d6650, scope=..., callData=0x7fffe61d65f8) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:1760 #9 0x00007ffff727311d in QV4::Object::call (this=0x7fffe61d6650, scope=..., d=0x7fffe61d65f8) at /opt/Qt-5.8/5.8/Src/qtdeclarative/include/QtQml/5.8.0/QtQml/private/../../../../../src/qml/jsruntime/qv4object_p.h:352 #10 0x00007ffff73e3e6e in QV4::Runtime::method_callProperty (engine=0x5555557c5ee0, nameIndex=39, callData=0x7fffe61d65f8) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/jsruntime/qv4runtime.cpp:1034 #11 0x00007ffff7fad070 in ?? () #12 0x00007fffe422bbd0 in ?? () #13 0x00007fffe61d65c8 in ?? () #14 0x00007fffe422bbd0 in ?? () #15 0x00007fffe422bbd0 in ?? () #16 0x00007ffffffefa00 in ?? () #17 0x00007ffff72fd1fa in QV4::FunctionObject::function (this=0x555555b77d40) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/jsruntime/qv4functionobject_p.h:140 #18 0x00007ffff733e35b in QV4::SimpleScriptFunction::call (that=0x7fffe4537ba0, scope=..., callData=0x7fffe61d6578) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/jsruntime/qv4functionobject.cpp:593 #19 0x00007ffff727311d in QV4::Object::call (this=0x7fffe4537ba0, scope=..., d=0x7fffe61d6578) at /opt/Qt-5.8/5.8/Src/qtdeclarative/include/QtQml/5.8.0/QtQml/private/../../../../../src/qml/jsruntime/qv4object_p.h:352 #20 0x00007ffff749f087 in QQmlJavaScriptExpression::evaluate (this=0x5555559a09b0, callData=0x7fffe61d6578, isUndefined=0x7ffffffefc5e, scope=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmljavascriptexpression.cpp:194 #21 0x00007ffff74a93f9 in QQmlNonbindingBinding::doUpdate (this=0x5555559a09b0, watcher=..., flags=..., scope=..., f=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:234 #22 0x00007ffff74a74f0 in QQmlBinding::update (this=0x5555559a09b0, flags=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:193 #23 0x00007ffff74a8389 in QQmlBinding::expressionChanged (this=0x5555559a09b0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:466 #24 0x00007ffff74a05cb in QQmlJavaScriptExpressionGuard_callback (e=0x555555e4c5a0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmljavascriptexpression.cpp:447 #25 0x00007ffff747ae62 in QQmlNotifier::emitNotify (endpoint=0x0, a=0x0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlnotifier.cpp:106 #26 0x00007ffff73f7986 in QQmlData::signalEmitted (object=0x555555bb4a30, index=7, a=0x0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlengine.cpp:820 #27 0x00007ffff6dc9358 in QMetaObject::activate (sender=0x555555bb4a30, signalOffset=3, local_signal_index=4, argv=0x0) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qobject.cpp:3618 #28 0x00007ffff73f39d8 in QQmlVMEMetaObject::activate (this=0x555555bb4b70, object=0x555555bb4a30, index=9, args=0x0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlvmemetaobject.cpp:1240 #29 0x00007ffff73f1ade in QQmlVMEMetaObject::metaCall (this=0x555555bb4b70, o=0x555555bb4a30, c=QMetaObject::WriteProperty, _id=5, a=0x7fffffff1a80) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlvmemetaobject.cpp:833 #30 0x00007ffff6d8dd19 in QMetaObject::metacall (object=0x555555bb4a30, cl=QMetaObject::WriteProperty, idx=5, argv=0x7fffffff1a80) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qmetaobject.cpp:299 #31 0x00007ffff7414eb6 in QQmlPropertyData::writeProperty (this=0x7fffd80f8a58, target=0x555555bb4a30, value=0x7fffffff1afe, flags=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/include/QtQml/5.8.0/QtQml/private/../../../../../src/qml/qml/qqmlpropertycache_p.h:324 #32 0x00007ffff74ac8e9 in GenericBinding<1>::doStore<bool> (flags=..., pd=0x7fffd80f8a58, value=false, this=0x555555bb7420) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:323 #33 GenericBinding<1>::write (this=0x555555bb7420, result=..., isUndefined=false, flags=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:285 #34 0x00007ffff74a946d in QQmlNonbindingBinding::doUpdate (this=0x555555bb7420, watcher=..., flags=..., scope=..., f=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:238 #35 0x00007ffff74a74f0 in QQmlBinding::update (this=0x555555bb7420, flags=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:193 #36 0x00007ffff74a8389 in QQmlBinding::expressionChanged (this=0x555555bb7420) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:466 #37 0x00007ffff74a05cb in QQmlJavaScriptExpressionGuard_callback (e=0x555555e4bae8) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmljavascriptexpression.cpp:447 #38 0x00007ffff747ae62 in QQmlNotifier::emitNotify (endpoint=0x0, a=0x0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlnotifier.cpp:106 #39 0x00007ffff73f7986 in QQmlData::signalEmitted (object=0x555555956890, index=32, a=0x0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlengine.cpp:820 #40 0x00007ffff6dc9358 in QMetaObject::activate (sender=0x555555956890, signalOffset=29, local_signal_index=3, argv=0x0) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qobject.cpp:3618 #41 0x00007ffff73f39d8 in QQmlVMEMetaObject::activate (this=0x555555c35310, object=0x555555956890, index=49, args=0x0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlvmemetaobject.cpp:1240 #42 0x00007ffff73f1ade in QQmlVMEMetaObject::metaCall (this=0x555555c35310, o=0x555555956890, c=QMetaObject::WriteProperty, _id=44, a=0x7fffffff3ab0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlvmemetaobject.cpp:833 #43 0x00007ffff6d8dd19 in QMetaObject::metacall (object=0x555555956890, cl=QMetaObject::WriteProperty, idx=44, argv=0x7fffffff3ab0) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qmetaobject.cpp:299 #44 0x00007ffff7414eb6 in QQmlPropertyData::writeProperty (this=0x7fffd80e8348, target=0x555555956890, value=0x7fffffff3b2e, flags=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/include/QtQml/5.8.0/QtQml/private/../../../../../src/qml/qml/qqmlpropertycache_p.h:324 #45 0x00007ffff74ac8e9 in GenericBinding<1>::doStore<bool> (flags=..., pd=0x7fffd80e8348, value=false, this=0x5555559569c0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:323 #46 GenericBinding<1>::write (this=0x5555559569c0, result=..., isUndefined=false, flags=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:285 #47 0x00007ffff74a946d in QQmlNonbindingBinding::doUpdate (this=0x5555559569c0, watcher=..., flags=..., scope=..., f=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:238 #48 0x00007ffff74a74f0 in QQmlBinding::update (this=0x5555559569c0, flags=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:193 #49 0x00007ffff74a8389 in QQmlBinding::expressionChanged (this=0x5555559569c0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:466 #50 0x00007ffff74a05cb in QQmlJavaScriptExpressionGuard_callback (e=0x555555e4a5b0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmljavascriptexpression.cpp:447 #51 0x00007ffff747ae62 in QQmlNotifier::emitNotify (endpoint=0x0, a=0x0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlnotifier.cpp:106 #52 0x00007ffff73f7986 in QQmlData::signalEmitted (object=0x555555956890, index=29, a=0x0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlengine.cpp:820 #53 0x00007ffff6dc9358 in QMetaObject::activate (sender=0x555555956890, signalOffset=29, local_signal_index=0, argv=0x0) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qobject.cpp:3618 #54 0x00007ffff73f39d8 in QQmlVMEMetaObject::activate (this=0x555555c35310, object=0x555555956890, index=46, args=0x0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlvmemetaobject.cpp:1240 #55 0x00007ffff73f1ade in QQmlVMEMetaObject::metaCall (this=0x555555c35310, o=0x555555956890, c=QMetaObject::WriteProperty, _id=41, a=0x7fffffff5ae0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlvmemetaobject.cpp:833 #56 0x00007ffff6d8dd19 in QMetaObject::metacall (object=0x555555956890, cl=QMetaObject::WriteProperty, idx=41, argv=0x7fffffff5ae0) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qmetaobject.cpp:299 #57 0x00007ffff7414eb6 in QQmlPropertyData::writeProperty (this=0x7fffd80e82e8, target=0x555555956890, value=0x7fffffff5b68, flags=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/include/QtQml/5.8.0/QtQml/private/../../../../../src/qml/qml/qqmlpropertycache_p.h:324 #58 0x00007ffff74ac31c in GenericBinding<2>::doStore<int> (flags=..., pd=0x7fffd80e82e8, value=-1, this=0x555555bb1330) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:323 #59 GenericBinding<2>::write (this=0x555555bb1330, result=..., isUndefined=false, flags=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:290 #60 0x00007ffff74a946d in QQmlNonbindingBinding::doUpdate (this=0x555555bb1330, watcher=..., flags=..., scope=..., f=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:238 #61 0x00007ffff74a74f0 in QQmlBinding::update (this=0x555555bb1330, flags=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:193 #62 0x00007ffff74a8389 in QQmlBinding::expressionChanged (this=0x555555bb1330) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:466 #63 0x00007ffff74a05cb in QQmlJavaScriptExpressionGuard_callback (e=0x555555e4bfb8) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmljavascriptexpression.cpp:447 #64 0x00007ffff747ae62 in QQmlNotifier::emitNotify (endpoint=0x0, a=0x0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlnotifier.cpp:106 #65 0x00007ffff73f7986 in QQmlData::signalEmitted (object=0x555555c22830, index=3, a=0x0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlengine.cpp:820 #66 0x00007ffff6dc9358 in QMetaObject::activate (sender=0x555555c22830, signalOffset=3, local_signal_index=0, argv=0x0) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qobject.cpp:3618 #67 0x00007ffff6dc918c in QMetaObject::activate (sender=0x555555c22830, m=0x7ffff772d560 <QQmlDelegateModelItem::staticMetaObject>, local_signal_index=0, argv=0x0) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qobject.cpp:3602 #68 0x00007ffff752b42f in QQmlDelegateModelItem::modelIndexChanged (this=0x555555c22830) at .moc/moc_qqmldelegatemodel_p_p.cpp:169 #69 0x00007ffff74fab5f in QQmlDelegateModelItem::setModelIndex (this=0x555555c22830, idx=-1) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/types/qqmldelegatemodel_p_p.h:127 #70 0x00007ffff74f0c9b in QQmlDelegateModel::_q_modelReset (this=0x555555b6d630) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/types/qqmldelegatemodel.cpp:1497 #71 0x00007ffff7528bf9 in QQmlDelegateModel::qt_static_metacall (_o=0x555555b6d630, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fffffff7bb0) at .moc/moc_qqmldelegatemodel_p.cpp:195 #72 0x00007ffff752951d in QQmlDelegateModel::qt_metacall (this=0x555555b6d630, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7fffffff7bb0) at .moc/moc_qqmldelegatemodel_p.cpp:336 #73 0x00007ffff6d8dd39 in QMetaObject::metacall (object=0x555555b6d630, cl=QMetaObject::InvokeMetaMethod, idx=17, argv=0x7fffffff7bb0) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qmetaobject.cpp:301 #74 0x00007ffff6dc9a98 in QMetaObject::activate (sender=0x555555b77d40, signalOffset=3, local_signal_index=18, argv=0x0) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qobject.cpp:3755 #75 0x00007ffff6dc918c in QMetaObject::activate (sender=0x555555b77d40, m=0x7ffff70b9b60 <QAbstractItemModel::staticMetaObject>, local_signal_index=18, argv=0x0) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qobject.cpp:3602 #76 0x00007ffff6e72b11 in QAbstractItemModel::modelReset (this=0x555555b77d40) at .moc/moc_qabstractitemmodel.cpp:657 #77 0x00007ffff6d1de8b in QAbstractItemModel::endResetModel (this=0x555555b77d40) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/itemmodels/qabstractitemmodel.cpp:3230 #78 0x00007fffe5af4a86 in QQuickTreeModelAdaptor1::clearModelData (this=0x555555b77d40) at /opt/Qt-5.8/5.8/Src/qtquickcontrols/src/controls/Private/qquicktreemodeladaptor.cpp:123 #79 0x00007fffe5af4962 in QQuickTreeModelAdaptor1::setModel (this=0x555555b77d40, arg=0x555555c0cae0) at /opt/Qt-5.8/5.8/Src/qtquickcontrols/src/controls/Private/qquicktreemodeladaptor.cpp:104 #80 0x00007fffe5b18e6c in QQuickTreeModelAdaptor1::qt_static_metacall (_o=0x555555b77d40, _c=QMetaObject::WriteProperty, _id=0, _a=0x7fffffff7ef0) at .moc/moc_qquicktreemodeladaptor_p.cpp:310 #81 0x00007ffff7414e1f in QQmlPropertyData::writeProperty (this=0x7fffd80f6e78, target=0x555555b77d40, value=0x7fffffff7f68, flags=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/include/QtQml/5.8.0/QtQml/private/../../../../../src/qml/qml/qqmlpropertycache_p.h:320 #82 0x00007ffff74a9b19 in QObjectPointerBinding::write (this=0x555555b77ec0, result=..., isUndefined=false, flags=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:614 #83 0x00007ffff74a946d in QQmlNonbindingBinding::doUpdate (this=0x555555b77ec0, watcher=..., flags=..., scope=..., f=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:238 #84 0x00007ffff74a74f0 in QQmlBinding::update (this=0x555555b77ec0, flags=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:193 #85 0x00007ffff74a8389 in QQmlBinding::expressionChanged (this=0x555555b77ec0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlbinding.cpp:466 #86 0x00007ffff74a05cb in QQmlJavaScriptExpressionGuard_callback (e=0x555555b7e060) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmljavascriptexpression.cpp:447 #87 0x00007ffff747ae62 in QQmlNotifier::emitNotify (endpoint=0x0, a=0x0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlnotifier.cpp:106 #88 0x00007ffff73f7986 in QQmlData::signalEmitted (object=0x5555558e2c20, index=69, a=0x0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlengine.cpp:820 #89 0x00007ffff6dc9358 in QMetaObject::activate (sender=0x5555558e2c20, signalOffset=69, local_signal_index=0, argv=0x0) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qobject.cpp:3618 #90 0x00007ffff73f39d8 in QQmlVMEMetaObject::activate (this=0x555555b7c620, object=0x5555558e2c20, index=92, args=0x0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlvmemetaobject.cpp:1240 #91 0x00007ffff73f2a3a in QQmlVMEMetaObject::writeVarProperty (this=0x555555b7c620, id=0, value=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlvmemetaobject.cpp:1055 #92 0x00007ffff73f339c in QQmlVMEMetaObject::setVMEProperty (this=0x555555b7c620, index=81, v=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlvmemetaobject.cpp:1158 #93 0x00007ffff73bac96 in QV4::QObjectWrapper::setProperty (engine=0x5555557c5ee0, object=0x5555558e2c20, property=0x7fffd81015e8, value=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:411 #94 0x00007ffff73bc20e in QV4::QObjectWrapper::setProperty (engine=0x5555557c5ee0, object=0x5555558e2c20, propertyIndex=81, value=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:593 #95 0x00007ffff73bc0e3 in QV4::QObjectWrapper::setProperty (this=0x7fffe61d63e8, engine=0x5555557c5ee0, propertyIndex=81, value=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/jsruntime/qv4qobjectwrapper.cpp:575 #96 0x00007ffff73e6292 in QV4::Runtime::method_setQmlQObjectProperty (engine=0x5555557c5ee0, object=..., propertyIndex=81, value=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/jsruntime/qv4runtime.cpp:1514 #97 0x00007ffff7fad4fb in ?? () #98 0x00007ffff07f4770 in ?? () #99 0x00007fffe61d6370 in ?? () #100 0x00007ffff07f4770 in ?? () #101 0x00007ffff07f4770 in ?? () #102 0x00007fffffff9f70 in ?? () #103 0x00007ffff72fd1fa in QV4::FunctionObject::function (this=0x7fffe80016f0) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/jsruntime/qv4functionobject_p.h:140 #104 0x00007ffff733e35b in QV4::SimpleScriptFunction::call (that=0x7fffec011798, scope=..., callData=0x7fffe61d6320) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/jsruntime/qv4functionobject.cpp:593 #105 0x00007ffff727311d in QV4::Object::call (this=0x7fffec011798, scope=..., d=0x7fffe61d6320) at /opt/Qt-5.8/5.8/Src/qtdeclarative/include/QtQml/5.8.0/QtQml/private/../../../../../src/qml/jsruntime/qv4object_p.h:352 #106 0x00007ffff749f087 in QQmlJavaScriptExpression::evaluate (this=0x555555b78720, callData=0x7fffe61d6320, isUndefined=0x0, scope=...) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmljavascriptexpression.cpp:194 #107 0x00007ffff7423682 in QQmlBoundSignalExpression::evaluate (this=0x555555b78720, a=0x7fffffffbd70) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlboundsignal.cpp:240 #108 0x00007ffff7423ce1 in QQmlBoundSignal_callback (e=0x555555b7c440, a=0x7fffffffbd70) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlboundsignal.cpp:372 #109 0x00007ffff747ae62 in QQmlNotifier::emitNotify (endpoint=0x0, a=0x7fffffffbd70) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlnotifier.cpp:106 #110 0x00007ffff73f7986 in QQmlData::signalEmitted (object=0x555555b7d050, index=26, a=0x7fffffffbd70) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/qml/qml/qqmlengine.cpp:820 #111 0x00007ffff6dc9358 in QMetaObject::activate (sender=0x555555b7d050, signalOffset=3, local_signal_index=23, argv=0x7fffffffbd70) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qobject.cpp:3618 #112 0x00007ffff6dc918c in QMetaObject::activate (sender=0x555555b7d050, m=0x7fffe61c5f60 <QQuickKeysAttached::staticMetaObject>, local_signal_index=23, argv=0x7fffffffbd70) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qobject.cpp:3602 #113 0x00007fffe5fdd7e0 in QQuickKeysAttached::returnPressed (this=0x555555b7d050, _t1=0x555555b78460) at .moc/moc_qquickitem_p.cpp:2159 #114 0x00007fffe5fdab6f in QQuickKeysAttached::qt_static_metacall (_o=0x555555b7d050, _c=QMetaObject::InvokeMetaMethod, _id=23, _a=0x7fffffffc490) at .moc/moc_qquickitem_p.cpp:1306 #115 0x00007ffff6d91a43 in QMetaMethod::invoke (this=0x7fffffffc700, object=0x555555b7d050, connectionType=Qt::DirectConnection, returnValue=..., val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qmetaobject.cpp:2222 #116 0x00007fffe5e0ce2d in QMetaMethod::invoke (this=0x7fffffffc700, object=0x555555b7d050, connectionType=Qt::DirectConnection, val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=..., val7=..., val8=..., val9=...) at /opt/Qt-5.8/5.8/Src/qtbase/include/QtCore/../../src/corelib/kernel/qmetaobject.h:123 #117 0x00007fffe5df7050 in QQuickKeysAttached::keyPressed (this=0x555555b7d050, event=0x7fffffffd430, post=false) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/quick/items/qquickitem.cpp:1348 #118 0x00007fffe5e00f87 in QQuickItemPrivate::deliverKeyEvent (this=0x5555558e2cd0, e=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/quick/items/qquickitem.cpp:4948 #119 0x00007fffe5e07be9 in QQuickItem::event (this=0x5555558e2c20, ev=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/quick/items/qquickitem.cpp:7653 #120 0x00007ffff6d84992 in QCoreApplicationPrivate::notify_helper (receiver=0x5555558e2c20, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1122 #121 0x00007ffff6d845ba in doNotify (receiver=0x5555558e2c20, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1063 #122 0x00007ffff6d8451e in QCoreApplication::notify (this=0x7fffffffd860, receiver=0x5555558e2c20, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1049 #123 0x00007ffff784bd84 in QGuiApplication::notify (this=0x7fffffffd860, object=0x5555558e2c20, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/gui/kernel/qguiapplication.cpp:1666 #124 0x00007ffff6d8449b in QCoreApplication::notifyInternal2 (receiver=0x5555558e2c20, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:988 #125 0x00007fffe5e0cd02 in QCoreApplication::sendEvent (receiver=0x5555558e2c20, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231 #126 0x00007fffe5df6d69 in QQuickKeysAttached::keyPressed (this=0x555555b6f2a0, event=0x7fffffffd430, post=false) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/quick/items/qquickitem.cpp:1329 #127 0x00007fffe5e00f87 in QQuickItemPrivate::deliverKeyEvent (this=0x555555b75ee0, e=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/quick/items/qquickitem.cpp:4948 #128 0x00007fffe5e07be9 in QQuickItem::event (this=0x555555b7d6a0, ev=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/quick/items/qquickitem.cpp:7653 #129 0x00007ffff6d84992 in QCoreApplicationPrivate::notify_helper (receiver=0x555555b7d6a0, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1122 #130 0x00007ffff6d845ba in doNotify (receiver=0x555555b7d6a0, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1063 #131 0x00007ffff6d8451e in QCoreApplication::notify (this=0x7fffffffd860, receiver=0x555555b7d6a0, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1049 #132 0x00007ffff784bd84 in QGuiApplication::notify (this=0x7fffffffd860, object=0x555555b7d6a0, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/gui/kernel/qguiapplication.cpp:1666 #133 0x00007ffff6d8449b in QCoreApplication::notifyInternal2 (receiver=0x555555b7d6a0, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:988 #134 0x00007fffe5e0cd02 in QCoreApplication::sendEvent (receiver=0x555555b7d6a0, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231 #135 0x00007fffe5df6d69 in QQuickKeysAttached::keyPressed (this=0x555555b70460, event=0x7fffffffd430, post=false) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/quick/items/qquickitem.cpp:1329 #136 0x00007fffe5e00f87 in QQuickItemPrivate::deliverKeyEvent (this=0x555555b6d920, e=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/quick/items/qquickitem.cpp:4948 #137 0x00007fffe5e07be9 in QQuickItem::event (this=0x555555b6e900, ev=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/quick/items/qquickitem.cpp:7653 #138 0x00007ffff6d84992 in QCoreApplicationPrivate::notify_helper (receiver=0x555555b6e900, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1122 #139 0x00007ffff6d845ba in doNotify (receiver=0x555555b6e900, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1063 #140 0x00007ffff6d8451e in QCoreApplication::notify (this=0x7fffffffd860, receiver=0x555555b6e900, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1049 #141 0x00007ffff784bd84 in QGuiApplication::notify (this=0x7fffffffd860, object=0x555555b6e900, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/gui/kernel/qguiapplication.cpp:1666 #142 0x00007ffff6d8449b in QCoreApplication::notifyInternal2 (receiver=0x555555b6e900, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:988 #143 0x00007fffe5e0cd02 in QCoreApplication::sendEvent (receiver=0x555555b6e900, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231 #144 0x00007fffe5e27feb in QQuickWindow::sendEvent (this=0x555555809580, item=0x555555b6e900, e=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/quick/items/qquickwindow.cpp:2772 #145 0x00007fffe5e213e8 in QQuickWindowPrivate::deliverKeyEvent (this=0x555555809640, e=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/quick/items/qquickwindow.cpp:1622 #146 0x00007fffe5e212d7 in QQuickWindow::keyPressEvent (this=0x555555809580, e=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/quick/items/qquickwindow.cpp:1605 #147 0x00007ffff786009c in QWindow::event (this=0x555555809580, ev=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/gui/kernel/qwindow.cpp:2068 #148 0x00007fffe5e21230 in QQuickWindow::event (this=0x555555809580, e=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtdeclarative/src/quick/items/qquickwindow.cpp:1596 #149 0x00007ffff6d84992 in QCoreApplicationPrivate::notify_helper (receiver=0x555555809580, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1122 #150 0x00007ffff6d845ba in doNotify (receiver=0x555555809580, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1063 #151 0x00007ffff6d8451e in QCoreApplication::notify (this=0x7fffffffd860, receiver=0x555555809580, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1049 #152 0x00007ffff784bd84 in QGuiApplication::notify (this=0x7fffffffd860, object=0x555555809580, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/gui/kernel/qguiapplication.cpp:1666 #153 0x00007ffff6d8449b in QCoreApplication::notifyInternal2 (receiver=0x555555809580, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:988 #154 0x00007ffff7854b66 in QCoreApplication::sendSpontaneousEvent (receiver=0x555555809580, event=0x7fffffffd430) at /opt/Qt-5.8/5.8/Src/qtbase/include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234 #155 0x00007ffff784d406 in QGuiApplicationPrivate::processKeyEvent (e=0x555555c35b80) at /opt/Qt-5.8/5.8/Src/qtbase/src/gui/kernel/qguiapplication.cpp:2040 #156 0x00007ffff784bf35 in QGuiApplicationPrivate::processWindowSystemEvent (e=0x555555c35b80) at /opt/Qt-5.8/5.8/Src/qtbase/src/gui/kernel/qguiapplication.cpp:1717 #157 0x00007ffff782c8f1 in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at /opt/Qt-5.8/5.8/Src/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:710 #158 0x00007ffff7ee8faa in userEventSourceDispatch (source=0x5555557b6090) at /opt/Qt-5.8/5.8/Src/qtbase/src/platformsupport/eventdispatchers/qeventdispatcher_glib.cpp:76 #159 0x00007ffff3edb377 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #160 0x00007ffff3edb5e0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #161 0x00007ffff3edb68c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #162 0x00007ffff6e0b190 in QEventDispatcherGlib::processEvents (this=0x5555557b5960, flags=...) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:423 #163 0x00007ffff7ee91be in QPAEventDispatcherGlib::processEvents (this=0x5555557b5960, flags=...) at /opt/Qt-5.8/5.8/Src/qtbase/src/platformsupport/eventdispatchers/qeventdispatcher_glib.cpp:121 #164 0x00007ffff6d80b6a in QEventLoop::processEvents (this=0x7fffffffd7d0, flags=...) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qeventloop.cpp:134 #165 0x00007ffff6d80ea1 in QEventLoop::exec (this=0x7fffffffd7d0, flags=...) at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qeventloop.cpp:212 #166 0x00007ffff6d84c93 in QCoreApplication::exec () at /opt/Qt-5.8/5.8/Src/qtbase/src/corelib/kernel/qcoreapplication.cpp:1261 #167 0x00007ffff784bd34 in QGuiApplication::exec () at /opt/Qt-5.8/5.8/Src/qtbase/src/gui/kernel/qguiapplication.cpp:1657 #168 0x0000555555556c8d in main (argc=1, argv=0x7fffffffd988) at ../qmltest/main.cpp:15
Regards, Håkon