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

Stale QML cache is not updated on AGL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • 6.5, 6.8
    • 6.5.4
    • QML: Compiler
    • None
    • Linux/Yocto

    Description

      I am facing strange behaviour, the QML stored in qrc and the QML executed are different. so I think the QtQuickCompiler precompiler the QML and cached it.

         QFile f(":/main.qml");
        f.open(QIODevice::ReadOnly);
        auto s = f.readAll(); 

      I dumped the QML in qrc, and confirmed the QML file is actually updated.

      I reproduce this issue on RPI4 with Automotive grade Linux. and by enabling QML_DISABLE_DISK_CACHE=1 can fix the issue.

      attached the binary and sample which I tried: settings settings.zip

       

      Attachments

        1. cache.tar.gz
          13 kB
        2. hello-agl.tar.gz
          13 kB
        3. hello-agl-20240814.zip
          1.28 MB
        4. hello-agl-20240815.zip
          1.26 MB
        5. hello-agl-bin_modified.tar.gz
          436 kB
        6. hello-agl-bin_original.tar.gz
          436 kB
        7. settings
          2.38 MB
        8. settings.zip
          1.73 MB

        Issue Links

          For Gerrit Dashboard: QTBUG-126757
          # Subject Branch Project Status CR V

          Activity

            People

              ulherman Ulf Hermann
              jiu shanheng jiu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes