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

[REG 6.6 → 6.7 ]Using QML_DISABLE_DISK_CACHE breaks QML code

XMLWordPrintable

    • Windows
    • 186405955 (dev), ec094564f (6.6), 25255f7f3 (6.6.3), 2d69be1b1 (6.7.0), 4257f585f (6.7)

      Using QML_DISABLE_DISK_CACHE breaks QML code

      When setting QML_DISABLE_DISK_CACHE=true mutliple examples from Qt Design Studio break with Qt 6.7.

      See QDS-12264 for details on the Qt Design Studio side.

      The issue is related to the stage propperty of QtQuick3D.Shader.
      The following (and similar) code does not work anymore if the cache is disabled:

      Shader {
              id: colormaster
              stage: Shader.Fragment
              shader: "qrc:/qtquick3deffects/shaders/colormaster.frag"
          }
      

      Settting QML_DISK_CACHE=aot trigers the same issue.

      This is the error message:

      Warning: QQmlApplicationEngine failed to create component ((null):0, (null))
      Warning: qrc:/qt-project.org/imports/QtQuick3D/Effects/ColorMaster.qml:15:9: Cannot assign value 1 to property stage (qrc:/qt-project.org/imports/QtQuick3D/Effects/ColorMaster.qml:15, (null))
      

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

            fabiankosmale Fabian Kosmale
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes