WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
32933
WebKit hang while snapshoting this page
https://bugs.webkit.org/show_bug.cgi?id=32933
Summary
WebKit hang while snapshoting this page
String
Reported
2009-12-25 02:15:13 PST
URL:
http://blog.oup.com/2009/11/unfriend/
I try to capture the webpage after loading but it hangs and CPU runs to 100%. It works well for most other pages. This is my codes in QtWebKit(
r50477
+ Qt4.6.0 + GCC4.4.0). // set the viewport size to the whole webpage size m_webview->page()->setViewportSize ( tmpSize ); //disable scrollbar m_webview->page()->mainFrame()->setScrollBarPolicy(Qt::Horizontal,Qt::ScrollBarAlwaysOff); m_webview->page()->mainFrame()->setScrollBarPolicy(Qt::Vertical,Qt::ScrollBarAlwaysOff); //paint webpage into image QImage im ( tmpSize , QImage::Format_RGB888); //QImage::Format_RGB32 QPainter painter ( & im ); m_webview->page()->mainFrame()->render ( & painter ); The tree i have tracked: .....QWebFramePrivate::renderPrivate(QPainter *painter, QWebFrame::RenderLayer layer, const QRegion &clip) ...........WebCore::FrameView::paintContents(GraphicsContext* p, const IntRect& rect) ................contentRenderer->layer()->paint(p, rect, m_paintRestriction, eltRenderer); //void RenderLayer::paint ......................void RenderLayer::paintLayer(....) ...........................void RenderBlock::paint(PaintInfo& paintInfo, int tx, int ty) ...............................void RenderBlock::paintObject(PaintInfo& paintInfo, int tx, int ty) ....................................paintBoxDecorations(paintInfo, tx, ty); //hang here now.... I am not familiar with the WebKit rendering codes. It is too hard for me now. Please help to fix this bug. Thanks.
Attachments
Add attachment
proposed patch, testcase, etc.
String
Comment 1
2009-12-25 02:36:19 PST
Safari 4.0.4 for Win hangs(or load OK but hangs while refreshing) while loading this page. Arora 0.10.0 and Chrome 4.0.0249.30 finish loading soon.
String
Comment 2
2009-12-25 03:58:02 PST
Sorry, it seems a bug of Qt 4.6. Program hangs on QPainter::fillRect while invoking GraphicsContext::fillRect(FloatRect(0, 0, 1019, 44364), Color(-1))); Any one can help to report this bug to Qt community? Thanks.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug