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

Use of Custom Vertex shader with Stackview with MSVC2019 64bit causes crash when Stackview's pop()/clear() is called.

    XMLWordPrintable

Details

    • Windows

    Description

      User reported a crash when a Stackview with custom vertex shader is used with MSVC2019 64bit. Same does not occur with MinGW 64-bit

       

      Steps to reproduce with the attached example:

      The example has also two buttons to push and pop the two pages.
      Execution:
      1. At the beginning of execution the stack loads page 1.
      2. Press the Load button to load the 3d view page.
      3. Then, Press the Back button (to return to the previous page).
      4. The application crashed for no reason.

       

      If following lines of vertex shader code (Model component in MyView3D.qml) are commented out the crash does not occur:

      Model {
      id: theModel
      source: "meshes/plane.mesh"
      pickable: true
      scale: Qt.vector3d(100, 100, 100)
      materials: CustomMaterial {
      
      property real amplitude: 6
      
      vertexShader: "material.vert" <<<<< --------------- This one
      fragmentShader: "material.frag"
      
      property TextureInput someTextureMap: TextureInput {
      texture: Texture {
      source: "textura.jpeg"
      }
      }
      
      property TextureInput heightMap: TextureInput { <<<<< --------------- This one
      texture: Texture { source: "alturas2.png" } <<<<< --------------- This one
      } <<<<< --------------- This one
      }
      } 

       

      Attachments

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            tero.pelkonen Tero Pelkonen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: