QQmlEngine crash after using clearComponentCache



  • Hi All,

    I'm generating .qml source files on da fly and loading those using Qt.createComponent.
    For some reason the created component/object is not up to date no matter if the generated qml source is different/updated since the first load.
    I believe it has something to do with caching.

    If I use the QML Engine's clearComponentCahce things seem to work ok, until shutdown.
    I have a crash of the engine.

    0   org.qt-project.QtQml          	0x000000011073cb3d QVector<QFlagPointer<QQmlPropertyCache> >::reallocData(int, int, QFlags<QArrayData::AllocationOption>) + 125
    1   org.qt-project.QtQml          	0x0000000110739e69 QV4::CompiledData::CompilationUnit::unlink() + 249
    2   org.qt-project.QtQml          	0x00000001107f5799 QV4::ExecutionEngine::~ExecutionEngine() + 377
    3   org.qt-project.QtQml          	0x000000011094d320 QV8Engine::~QV8Engine() + 176
    4   org.qt-project.QtQml          	0x000000011094d42e QV8Engine::~QV8Engine() + 14
    5   org.qt-project.QtQml          	0x00000001107a2dcf QJSEngine::~QJSEngine() + 79
    6   org.qt-project.QtQml          	0x00000001108a9dad QQmlEngine::~QQmlEngine() + 381
    7   org.qt-project.QtQml          	0x00000001108a9dfe QQmlEngine::~QQmlEngine() + 14
    8   org.qt-project.QtCore         	0x0000000110ddcc03 QObjectPrivate::deleteChildren() + 227
    9   org.qt-project.QtWidgets      	0x000000011166fc65 QWidget::~QWidget() + 1045
    10  org.qt-project.QtQuickWidgets 	0x000000011036c8d7 QQuickWidget::~QQuickWidget() + 135
    11  com.yourcompany.MaxDesigner   	0x000000010fb95da4 MainWindow::~MainWindow() + 116 (mainwindow.cpp:2210)
    

    Anyone has seen the same?

    Cheers,
    Max


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.