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

Memory leak when using QWebView::setUrl() on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.2.1
    • WebKit
    • None
    • Windows 7 64-bit

    Description

      I am using "Qt 5.2.1 MSVC-2010 32 bit OpenGL"(downloaded from Qt's download page) on windows 7 64-bit. I created HTML5 Application from Qt creator 3.0.1, which uses QGraphicsWebView inside, and I am getting memory leaks reported in Qt Creator's Application output. This bug is the same as the closed bug "QTBUG-29390"(created for Qt 5.0.0 and 5.0.1). I am creating a new bug because i am seeing this memory leak in Qt 5.2.1 as well. I doubt that it is fixed in Qt 5.3. The memory leak warnings in Qt-Creator are like:

      LEAK: 1 CachedResource
      LEAK: 1 Frame
      LEAK: 7 RenderObject
      LEAK: 28 WebCoreNode
      LEAK: 1 Page

      Attached is some sample code that illustrates the issue. This is a simple example, but when i do more involved DOM manipulation with javascript, the leaks grow dramatically. I have also tried Jocelyn's solution of using "QWebSettings::clearMemoryCaches()" as posted on "QTBUG-29390", but no luck.

      Attachments

        1. qt_memory_leak.zip
          22 kB
          Iqbal Singh
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            iqbal_singh_ Iqbal Singh
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes