Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved QQmlEngine crash after using clearComponentCache

    QML and Qt Quick
    2
    2
    561
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Max a Vadallat last edited by

      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

      1 Reply Last reply Reply Quote 0
      • P
        Paletteguy last edited by

        I'm seeing the same thing on Qt 5.9.1 on Linux gcc.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post