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

Memory leak when changing texture image in Qt3D

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.2.2, 6.3.1
    • Qt3D
    • None
    • Linux/X11

    Description

      The memory usage of a program slowly increase when changing the texture of an object with a TextureMaterial. 

      An example program with a rotating sphere highlight the issue. The only special thing done is alternating the texture source between two images on each frame.

      A valgrind show that some leaks occur with memory allocated in the RHI GL backend.

      ==30772== 11,782,400 (10,874,304 direct, 908,096 indirect) bytes in 3,132 blocks are definitely lost in loss record 2,169 of 2,169
      ==30772== at 0x4846DEF: operator new(unsigned long) (vg_replace_malloc.c:342)
      ==30772== by 0x55DF4F3: QRhiGles2::createShaderResourceBindings() (in /builds/mytoolchain

      /usr/lib/libQt6Gui.so.6.3.1)
      ==30772== by 0x19E9BEC8: ??? (in /builds/mytoolchain/usr/lib/plugins/renderers/librhirenderer.so)

      Attachments

        1. qtbug-107051.zip
          286 kB
        2. valgrind-out.zip
          76 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            seanharmer Sean Harmer
            jplajoiedorval Jean-Philippe Lajoie Dorval
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes