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

Reloading View3D will lead memory leak in 5.15

    XMLWordPrintable

Details

    • Android, Windows
    • b080877ad2 (qt/tqtc-qtquick3d/5.15)

    Description

      A customer found there will be memroy leak if View3D is reloaded many times.

          Timer{
              id: reloadTimer
              interval: 1000*2
              running: true
              repeat: true
              property int test: 1
              onTriggered: {
                  if(test === 1){
      //                view3dLoader.sourceComponent = view3dComp
                      view3dLoader.active = true
                      test = 0
                  }
                  else{
      //                view3dLoader.sourceComponent = undefined
                      view3dLoader.active = false
                      test = 1
                  }
              }
          }
      
          Loader{
              id: view3dLoader
              anchors.fill: parent
              sourceComponent: view3dComp
          }
      
          Component{
              id: view3dComp
              View3D {
                  anchors.fill: parent
                  camera: camera
                  ...
              }
          }
      

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.graphics.and.multimedia Qt Graphics Team
              mawang Mark Wang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes