K
K
Kastuś2018-03-11 18:58:02
linux
Kastuś, 2018-03-11 18:58:02

Where to look for a qml file in memory?

In general, there is a project on Qt5.7 qml.
I am using Ubuntu 16.04.
When building the project, it gives:
"ASSERT failure in QList::operator[]: \"index out of range\", file /opt/Qt/5.7/gcc_64/include/QtCore/qlist.h, line 545" Empirically
established that he doesn't like the qml file. I once added this file, but considered that I did not need it and deleted it. 100% in the program, I do not use it anywhere, and have not used it.
Removed from .pro and removed from qml.qrc.
As soon as I add this file back, the application is built.
Any change to this file results in the above error.
Where and what else can swear and need to be changed?
(And on Windows in a virtual machine, everything is assembled without problems.)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kastuś, 2018-03-11
@Gytim

In general, I created a double, everything worked with a script in a new folder.

V
Vitaly, 2018-03-11
@vt4a2h

rootObjects() only returns a list of objects that have been loaded with load() or specified in the QQmlApplicationEngine constructor. If you haven't uploaded anything, the list will be empty.
Miracles do not happen if QList::operator[], says that even the first element is not there, then it is empty. Most likely there are 0 elements in the debugger. If they are not 0, but accessing the first element causes an assert, then somewhere higher there may be UB or the memory has deteriorated.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question