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

Qt Webkit severely leaks memory on Linux (Ubuntu)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.3.0 RC1
    • 4.8.6, 5.2.1
    • WebKit
    • None
    • b35325a13634501afc098c1dcc4a5a2236d6dd44

    Description

      To reproduce the bug (memory leak) open the attached leak.html file on any Qt 4/5 QWebKit based browser.
      The file displays >1000 markers in Google Maps to better see the effect. Once opened, each press of zoom-in/zoom-out (+/-) increases the amount of memory by several MB. After 10-20 zoom-ins/outs the application eats all of the RAM and segfaults.

      I found the leak using PyQt4 and PyQt5 on Ubuntu. I load the file with QWebView.setHtml().
      To see that this is not Python related I checked that the leak affects in the same way Qupzilla (a Qt based browser written in C++). To reproduce simply open the file leak.html and click zoom-in/zoom-out several times, until the browser crashes.

      This leak does not occur in PyQt4 on Windows.
      The attached html file can be opened other main browser (Chrome, IE, Firefox) on both Windows and Linux and the memory does not blow up simply by zooming-in/zooming-out.

      Attachments

        1. leak.html
          83 kB
        2. test5.py
          0.5 kB

        Issue Links

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

          Activity

            People

              allan.jensen Allan Sandfeld Jensen
              vkregistrator Valentas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes