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

Qt3D possible memory leak from repeated use of setVertexCount

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P1: Critical
    • None
    • 6.0.0
    • Qt3D
    • None
    • Win 10 64bit
    • Windows

    Description

      I am running Qt3D in Qt 6.0.0 using the RHI renderer.

      My use case is drawing of a continuous line and then animating it by setting the vertice count. The line is created with a vertex buffer, per vertex color buffer, and index buffer. To perform the animation I am repeatedly calling setVertexCount in the geometry renderer.

       

      m_geometryRenderer->setVertexCount(count);

       

      Unfortunately, doing this causes an increasing memory consumption, at least as shown in Visual Studio. Running the same code, but with this line commented out, resolves the memory increase. This causes me to believe that there may be a leak associated with this.

      Attachments

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

        Activity

          People

            seanharmer Sean Harmer
            emiljohansson Emil Johansson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes