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

QOpenGLFunctions_4_5_Core leads to memory leak

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.3
    • GUI: OpenGL
    • None
    • Linux/X11

    Description

      It seems that  "QOpenGLFunctions_4_5_Core::initializeOpenGLFunctions" leaves several leaking blocks. This can be reproduced with Qt's HelloGL2 example with little modification. 

      - class GLWidget : public QOpenGLWidget, protected QOpenGLFunctions
      + class GLWidget : public QOpenGLWidget, protected QOpenGLFunctions_4_5_Core 

      and adding #include <QOpenGLFunctions_4_5_Core>

      Steps to reproduce:

      Run attached example on RHEL8

      1. Click on "Unlock"
      2. Select "Add new" from menu "Window"
      3. Select "Quit" from menu "Window".

      Observe several leaking blocks related to for every repetition of steps 1 and 2, which means, the leak increases if glwidgets are created and destroyed during the lifetime of an application.

      Also attaching above modified example and valgrind report.

      Attachments

        1. qtbug122198.zip
          9 kB
        2. valgrind.log
          691 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            irfan.omair@digia.com Irfan Omair
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes