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

Clean up resources properly on scene manager destruction

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.4.3, 6.5.0, 6.6.0
    • 6.4.1
    • Quick: 3D
    • None
    • f09fa8939 (dev), bbce2f8df (6.5), 8f7527a21 (6.4)

    Description

      QQuick3DSceneManager destructor deletes items in resourceCleanupQueue, but it doesn't properly clean up all the usage for these objects. For example, the objects in this queue can be used in QSSGBufferManager as keys in customMeshMap. If these keys are not properly cleaned, you can end up in situation where a new QSSGRenderGeometry object is created in the same memory location where an old deleted QSSGRenderGeometry object that is used for cache key was. This results in wrong geometry used for rendering. This can happen in e.g. QDS (see QDS-8516).

      Attachments

        Issue Links

          Activity

            People

              stromme Christian
              e0348803 Miikka Heikkinen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: