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

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>73311</bug_id>
          
          <creation_ts>2004-01-23 10:24:20 +0000</creation_ts>
          <short_desc>Konqueror crashes on http://www.mozdev.org</short_desc>
          <delta_ts>2004-07-06 12:40:14 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</product>
          <component>khtml</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cornelius Schumacher">schumacher</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>alistair</cc>
    
    <cc>koos.vriezen</cc>
    
    <cc>leolist</cc>
    
    <cc>mic</cc>
    
    <cc>mueller</cc>
    
    <cc>qrto</cc>
    
    <cc>raabe</cc>
    
    <cc>renaud.lacour</cc>
    
    <cc>selecter</cc>
    
    <cc>thomas</cc>
    
    <cc>tomee</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>197995</commentid>
    <comment_count>0</comment_count>
    <who name="Cornelius Schumacher">schumacher</who>
    <bug_when>2004-01-23 10:24:21 +0000</bug_when>
    <thetext>Version:            (using KDE Devel)
Installed from:    Compiled sources

When going to http://www.mozdev.org Konqueror crashes in khtml. Coolo has the backtrace.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>197999</commentid>
    <comment_count>1</comment_count>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2004-01-23 10:46:10 +0000</bug_when>
    <thetext>(gdb) where
#0  0x421dc20d in khtml::RenderBox::calcWidth() (this=0x87e9760) at /coolo/prod/kdelibs/khtml/rendering/render_box.cpp:621
#1  0x421eb89f in khtml::RenderImage::setPixmap(QPixmap const&amp;, QRect const&amp;, khtml::CachedImage*) (this=0x87e9760, p=@0x8aeb0a8,
    r=@0xbfffd9d0, o=0x89880c0) at /coolo/prod/kdelibs/khtml/rendering/render_image.cpp:153
#2  0x4223c0a6 in khtml::CachedImage::ref(khtml::CachedObjectClient*) (this=0x89880c0, c=0x87e9760)
    at /coolo/prod/kdelibs/khtml/misc/loader.cpp:465
#3  0x421ecf53 in khtml::RenderImage::updateImage(khtml::CachedImage*) (this=0x87e9760, new_image=0x89880c0)
    at /coolo/prod/kdelibs/khtml/rendering/render_image.cpp:412
#4  0x421eb45c in khtml::RenderImage::setContentObject(khtml::CachedObject*) (this=0x87e9760, co=0x89880e8)
    at /coolo/prod/kdelibs/khtml/rendering/render_image.cpp:91
#5  0x421d9012 in khtml::RenderContainer::updatePseudoChild(khtml::RenderStyle::PseudoId, khtml::RenderObject*) (this=0x87e9680,
    type=AFTER, child=0x0) at /coolo/prod/kdelibs/khtml/rendering/render_container.cpp:270
#6  0x421c175e in khtml::RenderBlock::setStyle(khtml::RenderStyle*) (this=0x87e9680, _style=0x89caa50)
    at /coolo/prod/kdelibs/khtml/rendering/render_block.cpp:95
#7  0x421d0605 in khtml::RenderObject::createObject(DOM::NodeImpl*, khtml::RenderStyle*) (node=0x89caa10, style=0x89caa50)
    at /coolo/prod/kdelibs/khtml/rendering/render_object.cpp:129
#8  0x4217abbb in DOM::ElementImpl::attach() (this=0x89caa10) at /coolo/prod/kdelibs/khtml/xml/dom_elementimpl.cpp:444
#9  0x4218d356 in khtml::KHTMLParser::insertNode(DOM::NodeImpl*, bool) (this=0x8b54040, n=0x89caa10, flat=false)
    at /coolo/prod/kdelibs/khtml/html/htmlparser.cpp:318
#10 0x4218d255 in khtml::KHTMLParser::parseToken(khtml::Token*) (this=0x8b54040, t=0x8418444)
    at /coolo/prod/kdelibs/khtml/html/htmlparser.cpp:276
#11 0x4219561a in khtml::HTMLTokenizer::processToken() (this=0x8418410) at /coolo/prod/kdelibs/khtml/html/htmltokenizer.cpp:1577
#12 0x42193fe9 in khtml::HTMLTokenizer::parseTag(khtml::DOMStringIt&amp;) (this=0x8418410, src=@0x8418524)
    at /coolo/prod/kdelibs/khtml/html/htmltokenizer.cpp:1090
#13 0x421949c2 in khtml::HTMLTokenizer::write(QString const&amp;, bool) (this=0x8418410, str=@0xbfffde50, appendData=true)
    at /coolo/prod/kdelibs/khtml/html/htmltokenizer.cpp:1345

David and I see the same crash in the domts test suite and tracked it down
to the code 
void HTMLObjectBaseElementImpl::renderAlternative()
{
    // an unbelievable hack. FIXME!!

It detaches the renderer and deletes some cached objects.

BTW: the main page doesn&apos;t crash for me, but http://www.mozdev.org/projects/active.html does reproducable
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198133</commentid>
    <comment_count>2</comment_count>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2004-01-23 17:40:39 +0000</bug_when>
    <thetext>*** Bug 73338 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>198621</commentid>
    <comment_count>3</comment_count>
    <who name="Dirk Mueller">mueller</who>
    <bug_when>2004-01-25 04:54:05 +0000</bug_when>
    <thetext>Subject: kdelibs/khtml

CVS commit by mueller: 

* rendering/render_image.cpp (setPixmap): handle cases when
we&apos;re not inserted in the tree yet, but the image is already loaded
(this happens when the memory cache actually works) (#73311).
CCMAIL: 73311-done@bugs.kde.org


  M +6 -0      ChangeLog   1.182
  M +11 -6     rendering/render_image.cpp   1.129


--- kdelibs/khtml/rendering/render_image.cpp  #1.128:1.129
@@ -151,6 +151,8 @@ void RenderImage::setPixmap( const QPixm
         int oldwidth = m_width;
         int oldheight = m_height;
+        if ( parent() ) {
         calcWidth();
         calcHeight();
+        }
 
         if(iwchanged || m_width != oldwidth || m_height != oldheight)
@@ -161,4 +163,7 @@ void RenderImage::setPixmap( const QPixm
     }
 
+    // we&apos;re not fully integrated in the tree yet.. we&apos;ll come back.
+    if ( !parent() )
+        return;
 
     if(needlayout)

--- kdelibs/khtml/ChangeLog  #1.181:1.182
@@ -1,2 +1,8 @@
+2004-01-25  Dirk Mueller  &lt;mueller@kde.org&gt;
+
+        * rendering/render_image.cpp (setPixmap): handle cases when
+        we&apos;re not inserted in the tree yet, but the image is already loaded
+        (this happens when the memory cache actually works) (#73311).
+
 2004-01-23  Lubos Lunak  &lt;l.lunak@kde.org&gt;
 


</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>199276</commentid>
    <comment_count>4</comment_count>
    <who name="Sashmit Bhaduri">smt</who>
    <bug_when>2004-01-27 06:53:05 +0000</bug_when>
    <thetext>*** Bug 73570 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201932</commentid>
    <comment_count>5</comment_count>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2004-02-05 16:25:27 +0000</bug_when>
    <thetext>*** Bug 74240 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202677</commentid>
    <comment_count>6</comment_count>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2004-02-07 10:11:57 +0000</bug_when>
    <thetext>*** Bug 74411 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>202679</commentid>
    <comment_count>7</comment_count>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2004-02-07 10:12:48 +0000</bug_when>
    <thetext>*** Bug 74174 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>204790</commentid>
    <comment_count>8</comment_count>
    <who name="Tommi Tervo">tommi.tervo</who>
    <bug_when>2004-02-11 22:49:32 +0000</bug_when>
    <thetext>*** Bug 75002 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>206292</commentid>
    <comment_count>9</comment_count>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2004-02-16 13:54:51 +0000</bug_when>
    <thetext>*** Bug 75320 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>208297</commentid>
    <comment_count>10</comment_count>
    <who name="Stephan Kulow">coolo</who>
    <bug_when>2004-02-21 16:55:50 +0000</bug_when>
    <thetext>*** Bug 75767 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>246171</commentid>
    <comment_count>11</comment_count>
    <who name="Tommi Tervo">tommi.tervo</who>
    <bug_when>2004-07-06 12:40:14 +0000</bug_when>
    <thetext>*** Bug 79376 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>