Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QQmlEngine crash after using clearComponentCache
Forum Update on Monday, May 27th 2025

QQmlEngine crash after using clearComponentCache

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 806 Views
  • 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 Offline
    M Offline
    Max a Vadallat
    wrote on 11 Jun 2017, 14:27 last edited by
    #1

    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
    0
    • P Offline
      P Offline
      Paletteguy
      wrote on 28 Sept 2017, 12:02 last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved