Results 1 to 2 of 2

Thread: memory leak in QTWebkit

  1. #1
    Join Date
    Nov 2013
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default memory leak in QTWebkit

    Dear all,
    Here is a memory leak problem when I try to access different URLs in webview loop.
    I have register such slots as blow:

    SIGNAL(timeout())
    SIGNAL(loadStarted())
    SIGNAL(loadFinished(bool))
    SIGNAL(loadProgress(int))
    SIGNAL(finished(QNetworkReply *))

    then work-flow for my program is
    1. load(url)
    2. wait some time for loadFinished, then get the dom information
    3. this->page()->triggerAction(QWebPage::Stop);
    4. load another new url
    5. loop the steps

    It's obovious that the memory usage of the process become higher and higher till OOM of kernel.

    I think here should be some clear task around "this->page()->triggerAction(QWebPage::Stop)" to release some resource.

    Can anyone help me?

    Thanks

  2. #2
    Join Date
    Jan 2014
    Posts
    3
    Qt products
    Qt5
    Platforms
    MacOS X Windows Android

    Default Re: memory leak in QTWebkit

    Read This For A "Pseudo-Solution" To The Qt Webkit Memory Leak:

    http://qt-project.org/forums/viewthread/11105

Similar Threads

  1. QtWebKit with javascript: memory leak?
    By monkazer in forum Qt Programming
    Replies: 2
    Last Post: 22nd June 2013, 14:39
  2. memory leak in qml
    By jindoniit in forum Qt Quick
    Replies: 6
    Last Post: 26th September 2011, 11:16
  3. Qt example with memory leak
    By Squall in forum Qt Programming
    Replies: 5
    Last Post: 21st February 2011, 11:07
  4. Memory leak?
    By Enygma in forum Qt Programming
    Replies: 10
    Last Post: 4th September 2007, 17:24
  5. Memory Leak in Qt
    By Krish_ng in forum Qt Programming
    Replies: 3
    Last Post: 22nd July 2007, 09:02

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.