Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-59018

QML Caching

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.8.0
    • None
    • Arch Linux, lxqt desktop

    Description

      Got caching problem with QML in 5.8 for my typical scenario.

      I use lxqt desktop, so Qt remains loaded in memory and in use all the way.

      I have C++/Qt program which displays QML things using QQuickWidget.
      My typical scenario: just click "run" in QtCreator to launch(no C++ changes!).
      So I open QML file in editor, edit it, save, launch bash-script which makes final binary zipped resource with QML and other files, click "run" (actually run launches script, but I tried to do manually too), and it starts C++ program which loads pack and loads qml from there.

      It was ok prior, but not now. Currently new edited qml will be loaded ONLY if I do any change to C++ (like adding space), otherwise it keeps load old version.
      Restart of QtCreator or program do not help. I tried to add trimComponentCache(); but it does not help too.

      Upd: I'm testing appearence of new QML very fast, maybe 5s or so - click to open qml win (which starts load into engine), see no changes - close, close program, and as result in destructor:

      /usr/lib/libQt5Qml.so.5(_ZN3QV412CompiledData15CompilationUnit6unlinkEv+0x116)[0x7f54a79ccc96]
      /usr/lib/libQt5Qml.so.5(_ZN3QV415ExecutionEngineD1Ev+0x3c1)[0x7f54a7a982c1]
      /usr/lib/libQt5Qml.so.5(_ZN9QV8EngineD1Ev+0xe2)[0x7f54a7bec612]
      /usr/lib/libQt5Qml.so.5(_ZN9QV8EngineD0Ev+0x9)[0x7f54a7bec739]
      /usr/lib/libQt5Qml.so.5(_ZN9QJSEngineD1Ev+0x26)[0x7f54a7a2d1e6]
      /usr/lib/libQt5Qml.so.5(_ZN10QQmlEngineD1Ev+0x11d)[0x7f54a7b4b91d]
      /usr/lib/libQt5Qml.so.5(_ZN10QQmlEngineD0Ev+0x9)[0x7f54a7b4b9d9]
      /usr/lib/libQt5Core.so.5(_ZN14QObjectPrivate14deleteChildrenEv+0x71)[0x7f54a7158411]
      /usr/lib/libQt5Widgets.so.5(_ZN7QWidgetD2Ev+0x36b)[0x7f54ab68e63b]

      ...possibly issue is related to timings somehow,

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shausman Simon Hausmann
            alexzk_ alexzk_
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes