PDA

View Full Version : memory leak in QTWebkit



ericzhang
18th November 2013, 13:04
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

buvintech
21st January 2014, 20:37
Read This For A "Pseudo-Solution" To The Qt Webkit Memory Leak:

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