[Webkit-unassigned] [Bug 116706] New: QTwebkit memory consumption
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 24 00:10:52 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=116706
Summary: QTwebkit memory consumption
Product: WebKit
Version: 528+ (Nightly build)
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: Blocker
Priority: P2
Component: WebKit Qt
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: rmorgade at arantia.com
We fave developed a webbrowser on top of QT for an embedded linux platform. There is 256MB available to the linux kernel, on startup there's almost 140MB free but as you load different URIs into the browser, the memory keeps growing until wraps all the available memory. Then the oom killer usually kills the process or the system must be reboot.
We have made a minimum webbrowser which loads continuosly the same webpage:
#include <QWebView>
#include <QtGui>
class Loader : public QObject {
Q_OBJECT
public:
Loader(QWebView* view, const QUrl& url) : m_view(view), m_url(url) {}
public slots:
void loadNext()
{
m_view->load(m_url);
}
private:
QWebView* m_view;
QUrl m_url;
};
#include "main.moc"
int main(int argc, char **argv)
{
QApplication application(argc, argv);
QWebView view;
QUrl url("http://www.webkit.org");
Loader loader(&view, url);
QObject::connect(&view, SIGNAL(loadFinished(bool)), &loader,
SLOT(loadNext()));
view.load(url);
view.show();
return application.exec();
}
This have been tested with:
- Qt versions : 4.7.2 / 4.8.1 /4.8.4
- Platforms : x86 / mipsel
The process used memory increments itself per interation in amounts of ~4KB.
I have seen several issues like this reported and throughout the internet even from years ago, but I wasn't able to find a solution. So our browser, that is ment to be used in a long run app ( IPTV middleware ) is useless right now.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list