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

Qml ShaderEffectSource/ShaderEffect crashes on exit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.10.0, 5.9.4, 5.10.1, 5.11.0 Beta 4
    • Fix Version/s: 5.9.7, 5.11.2
    • Labels:
      None
    • Environment:
      Win 10 64 Pro, mingw32, Qt 5.10.1 package from Qt installer.
      Windows 10 MSVC 2017
      Ubuntu 16.04
      iOS 11
      Android 7.1
      macOS 10.13
    • Commits:
      0a65246c0264c4c21af196f87df644b8a223dbed 449c9c2474da0461c14e7d6ea12ff4e35c3c7aae

      Description

      The following code hangs and then crashes with mingw32 builds on exit:

      import QtQuick 2.10
      import QtQuick.Window 2.10
      import QtQuick.Controls 2.2
      
      import QtGraphicalEffects 1.0
      
      ApplicationWindow {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          Page // Comment "Page" out to prevent crash on exit
          {
              anchors.fill: parent
      
              Rectangle {
                  id: testRect
                  anchors.fill: parent
                  color: "red"
      
                  // Comment "Menu" out to prevent crash on exit:
                  Menu {
                      id: testMenu
                  }
              }
      
              FastBlur {
                  id: shader
                  anchors.fill: parent
      
                  property var source: ShaderEffectSource {
                      id: shaderEffectSource
                      sourceItem: testRect
                      hideSource: false
                  }
              }
          }
      }
      
      

      The crash does not occur when the "Menu" element is removed. I tested this with different shaders (also custom ones).
      Also the crash does not occur when the shader is not placed in the Page element.

        Attachments

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

          Activity

            People

            Assignee:
            mitch_curtis Mitch Curtis
            Reporter:
            DanielSt Peter Staab
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes