<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>32933</bug_id>
          
          <creation_ts>2009-12-25 02:15:13 -0800</creation_ts>
          <short_desc>WebKit hang while snapshoting this page</short_desc>
          <delta_ts>2009-12-25 03:58:02 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Printing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows Vista</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://blog.oup.com/2009/11/unfriend/ </bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="String">tiansjun</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>174855</commentid>
    <comment_count>0</comment_count>
    <who name="String">tiansjun</who>
    <bug_when>2009-12-25 02:15:13 -0800</bug_when>
    <thetext>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-&gt;page()-&gt;setViewportSize ( tmpSize );  
    //disable scrollbar
    m_webview-&gt;page()-&gt;mainFrame()-&gt;setScrollBarPolicy(Qt::Horizontal,Qt::ScrollBarAlwaysOff); 
    m_webview-&gt;page()-&gt;mainFrame()-&gt;setScrollBarPolicy(Qt::Vertical,Qt::ScrollBarAlwaysOff); 
    //paint webpage into image
    QImage im ( tmpSize , QImage::Format_RGB888); //QImage::Format_RGB32
    QPainter painter ( &amp; im );
    m_webview-&gt;page()-&gt;mainFrame()-&gt;render ( &amp; painter ); 

The tree i have tracked:
.....QWebFramePrivate::renderPrivate(QPainter *painter, QWebFrame::RenderLayer layer, const QRegion &amp;clip)           
...........WebCore::FrameView::paintContents(GraphicsContext* p, const IntRect&amp; rect)
................contentRenderer-&gt;layer()-&gt;paint(p, rect, m_paintRestriction, eltRenderer); //void RenderLayer::paint
......................void RenderLayer::paintLayer(....)
...........................void RenderBlock::paint(PaintInfo&amp; paintInfo, int tx, int ty)
...............................void RenderBlock::paintObject(PaintInfo&amp; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174856</commentid>
    <comment_count>1</comment_count>
    <who name="String">tiansjun</who>
    <bug_when>2009-12-25 02:36:19 -0800</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>174859</commentid>
    <comment_count>2</comment_count>
    <who name="String">tiansjun</who>
    <bug_when>2009-12-25 03:58:02 -0800</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>