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

QWebEngineView memory leak

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.12
    • 5.9.5, 5.10.1, 5.11.1
    • WebEngine
    • None
    • Linux/X11

      Creating and deleting a QWebEngineView appears to create a memory leak. I have tried the attached code on 5.9, 5.10, and 5.11 and see the same memory leak on each.

       

      I do not have a valgrind result to attach as I've had difficulty capturing that data.

       

      To reproduce:

      • Build this application
      • Run the application ./leak-test
      • - While application is running:
      •       while true; do sleep 1; grep VmRSS /proc/$(pidof leak-test)/status | awk '{print $2}'; done
      • - Observe, or graph, that these values are increasing over time

       

        1. README.md
          0.3 kB
          Gavin Stark
        2. leak-test.pro
          0.2 kB
          Gavin Stark
        3. leaker.cpp
          0.6 kB
          Gavin Stark
        4. leaker.h
          0.2 kB
          Gavin Stark
        5. main.cpp
          0.2 kB
          Gavin Stark
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kiburtse Kirill Burtsev
            gavinstark Gavin Stark
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes