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

QGraphicsView memory leak OpenGL

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15
    • GUI: OpenGL
    • None
    • GPU: Intel Iris(R) Xe Graphics
    • Windows

    Description

      I'm getting a big memory leak when I add a pixmap to a scene and then when I resize the window in run-time.

      Below short code that produce the issue:

       

      MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)  {

          setupUi(this);

          view_->setViewport(new QOpenGLWidget(this));

          view_->setScene(new QGraphicsScene(this));

          view_->scene()>addPixmap(QPixmap("test"));

      }

       

      I don't have the issue when OpenGL is not used (by removing view_->setViewport(new QOpenGLWidget(this))

      This issue is not reproduced on all laptops. It's working on a laptop with NVIDIA Gefoirce GTX 960M and also working with Intel HD Graphics 530 but NOT working with Intel Iris Xe Graphics (driver version: 27.20.100.9030)

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            seb326 Sébastien Cayla
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes