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

Qt 5.14.1 - Crash in debug when updating diffuse component of Qt3DExtras::QDiffuseSpecularMaterial

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.14.1
    • Qt3D
    • None
    • Microsoft VS2019 Qt5.14.1
    • Windows

    Description

      When updating the diffuse property of Qt3DExtras::QDiffuseSpecularMaterial on an entity in the 3D scene, the program crashes when running in debug mode with the following message:

      Module: 5.14.1
      File: aspects\qabstractaspect.cpp

      Line: 213

      ASSERT: "metaObj" in file aspects\qabstractaspect.cpp, line 213.

       

      Crash does not occur in release mode, nor does it occur when changing the ambient property of Qt3DExtras::QDiffuseSpecularMaterial in either mode.

      Crash does not occur when running the same program with Qt 5.12.1

       

      Attached a small working example with buttons to change the ambient and diffuse property of the material of the sphere in the 3D scene.

      Confirmed that the same behavior occurs when the 3D scene contains a torus instead of a sphere.

       

       

       

       

      Attachments

        1. main.cpp
          6 kB
        2. qtbug.h
          0.2 kB
        3. scenemodifier.cpp
          5 kB
        4. scenemodifier.h
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            seanharmer Sean Harmer
            rene_skarving Rene Skarving
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes