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

QQuick3DGeometry: memory leak? on update

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.15.1
    • 5.15.0 Beta4
    • GUI: OpenGL, Quick: 3D
    • None
    • Windows
    • 2
    • b4721218492d239afa76b7eac83e687dd655abb0 (qt/qtquick3d/5.15)

    Description

      I created CustomGeometry class base on source of GridGeometry.

      When the application continue to update the properties of that class, the memory usage continue to increase.

      I tried the same situation with GridGeometry, but the result was the same.

       

      Model {
          id: gridModel
          geometry: GridGeometry {
              id: gridGeometry
              horizontalLines: 50000
              verticalLines: 50000 
          }
      }
      
      SequentialAnimation {
          running: true
          loops: Animation.Infinite
          NumberAnimation { 
              target: gridGeometry
              property: "horizontalLines"
              to: 100000
              duration: 1000
          }
          NumberAnimation { 
              target: gridGeometry
              property: "verticalLines"
              to: 100000
              duration: 1000
          }
          NumberAnimation {
              target: gridGeometry
              property: "horizontalLines"
              to: 50000
              duration: 1000
          } 
          NumberAnimation { 
              target: gridGeometry 
              property: "verticalLines" 
              to: 50000 
              duration: 1000
          }
      }
      

      How to free the memory each time?

       

      Attachments

        Issue Links

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

          Activity

            People

              janichol Andy Nichols
              susumuendo Susumu Endo
              Pasi Keränen Pasi Keränen
              Andy Nichols Andy Nichols
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes