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

Error when using ShaderEffect doesn't tell the user how to fix it

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.0 (Next Major Release)
    • Fix Version/s: None
    • Component/s: Quick: SceneGraph
    • Labels:
      None

      Description

      Users with inline shader code will get errors like this when porting to Qt 6:

      qUncompress: Z_DATA_ERROR: Input data is corrupted
      Attempted to deserialize QShader with unknown version 0.
      ShaderEffect: Failed to deserialize QShader from :/opacity-mask.frag
      ShaderEffect: shader preparation failed for qrc:/opacity-mask.frag
      

      This doesn't tell them that they need to compile their .frag files to .qsb files. A message that says something like the following would enable the user to fix the problem on their own, and much faster:

      ShaderEffect: Failed to deserialize QShader from :/opacity-mask.frag. Shader files must be compiled to .qsb files in Qt 6. See https://doc-snapshots.qt.io/qt6-dev/qtshadertools-build.html for more information.

        Attachments

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

          Activity

            People

            Assignee:
            lagocs Laszlo Agocs
            Reporter:
            mitch_curtis Mitch Curtis
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes