<?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>101413</bug_id>
          
          <creation_ts>2005-03-13 08:57:20 +0000</creation_ts>
          <short_desc>User closing a khtmlpart tab before the page is loaded crashes akregator</short_desc>
          <delta_ts>2005-03-24 17:26:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>akregator</product>
          <component>akregator konqueror plugin</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>0</everconfirmed>
          <reporter name="Joonas Koivunen">joonas.koivunen</reporter>
          <assigned_to name="kdepim bugs">pim-bugs-null</assigned_to>
          <cc>amitshah</cc>
    
    <cc>cerebro84</cc>
    
    <cc>lderkacz</cc>
    
    <cc>symbiont</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>323566</commentid>
    <comment_count>0</comment_count>
    <who name="Joonas Koivunen">joonas.koivunen</who>
    <bug_when>2005-03-13 08:57:20 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.4.0)
Installed from:    Compiled From Sources
OS:                Linux

I just had a quite long delay, perhaps the delay affected http kioslave and the creation of browser was delayed too. I decided to close down the tab as nothing was happening.

A few seconds later the slave connected the host and khtmlpart started opening the page to an nonexistant tab and widget..

I think that this is pretty trivial to fix, ask me if I explained this too complexly.

Backtrace:
Using host libthread_db library &quot;/lib/libthread_db.so.1&quot;.
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 1424)]
[KCrash handler]
#4  0x4155c8ea in QTimer::stop () from /usr/lib/qt/lib/libqt-mt.so.3
#5  0x40115f1f in KHTMLPart::openURL ()
   from /home/rzei/kdecvs/lib/libkhtml.so.4
#6  0x420d30a5 in Akregator::BrowserRun::foundMimeType ()
   from /home/rzei/kdecvs/lib/kde3/libakregatorpart.so
#7  0x40940660 in KParts::BrowserRun::slotBrowserMimetype ()
   from /home/rzei/kdecvs/lib/libkparts.so.2
#8  0x409437d2 in KParts::BrowserRun::qt_invoke ()
   from /home/rzei/kdecvs/lib/libkparts.so.2
#9  0x420d3224 in Akregator::BrowserRun::qt_invoke ()
   from /home/rzei/kdecvs/lib/kde3/libakregatorpart.so
#10 0x4153b11c in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#11 0x40ab0444 in KIO::TransferJob::mimetype ()
   from /home/rzei/kdecvs/lib/libkio.so.4
#12 0x40a9a2e3 in KIO::TransferJob::slotMimetype ()
   from /home/rzei/kdecvs/lib/libkio.so.4
#13 0x40ab05f1 in KIO::TransferJob::qt_invoke ()
   from /home/rzei/kdecvs/lib/libkio.so.4
#14 0x4153b11c in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#15 0x4153b5bd in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#16 0x40a87a6b in KIO::SlaveInterface::mimeType ()
   from /home/rzei/kdecvs/lib/libkio.so.4
#17 0x40a8355e in KIO::SlaveInterface::dispatch ()
   from /home/rzei/kdecvs/lib/libkio.so.4
#18 0x40a83067 in KIO::SlaveInterface::dispatch ()
   from /home/rzei/kdecvs/lib/libkio.so.4
#19 0x40a7fe37 in KIO::Slave::gotInput ()
   from /home/rzei/kdecvs/lib/libkio.so.4
#20 0x40a82599 in KIO::Slave::qt_invoke ()
   from /home/rzei/kdecvs/lib/libkio.so.4
#21 0x4153b11c in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#22 0x4153b27d in QObject::activate_signal ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#23 0x4185d972 in QSocketNotifier::activated ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#24 0x415578e0 in QSocketNotifier::event () from /usr/lib/qt/lib/libqt-mt.so.3
#25 0x414de7df in QApplication::internalNotify ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#26 0x414dddde in QApplication::notify () from /usr/lib/qt/lib/libqt-mt.so.3
#27 0x41081c0b in KApplication::notify ()
   from /home/rzei/kdecvs/lib/libkdecore.so.4
#28 0x414ce1ea in QEventLoop::activateSocketNotifiers ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#29 0x414888c3 in QEventLoop::processEvents ()
   from /usr/lib/qt/lib/libqt-mt.so.3
#30 0x414f0b38 in QEventLoop::enterLoop () from /usr/lib/qt/lib/libqt-mt.so.3
#31 0x414f09e8 in QEventLoop::exec () from /usr/lib/qt/lib/libqt-mt.so.3
#32 0x414dea31 in QApplication::exec () from /usr/lib/qt/lib/libqt-mt.so.3
#33 0x080504f9 in main ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325631</commentid>
    <comment_count>1</comment_count>
    <who name="Teemu Rytilahti">tpr</who>
    <bug_when>2005-03-19 13:59:48 +0000</bug_when>
    <thetext>*** Bug 101789 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325718</commentid>
    <comment_count>2</comment_count>
    <who name="Teemu Rytilahti">tpr</who>
    <bug_when>2005-03-19 18:43:21 +0000</bug_when>
    <thetext>CVS commit by rytilahti: 

Okay, finally. Make BrowserRun to delete itself when Viewer got destroyed...
BUGS:101413


  M +7 -0      akregator_run.cpp   1.8
  M +3 -0      akregator_run.h   1.5


--- kdepim/akregator/src/akregator_run.cpp  #1.7:1.8
@@ -35,4 +35,5 @@ BrowserRun::BrowserRun(Viewer *viewer, Q
 {
     m_viewer=viewer;
+    connect(m_viewer, SIGNAL(destroyed()), this, SLOT(killMyself()));
 }
 
@@ -50,4 +51,10 @@ void BrowserRun::foundMimeType( const QS
 }
 
+void BrowserRun::killMyself()
+{
+    kdDebug() &lt;&lt; &quot;BrowserRun::killMyself()&quot; &lt;&lt; endl;
+    delete this;
+}
+
 #include &quot;akregator_run.moc&quot;
 

--- kdepim/akregator/src/akregator_run.h  #1.4:1.5
@@ -43,4 +43,7 @@ namespace Akregator
             virtual void foundMimeType( const QString &amp; _type );
 
+    private slots:
+        void killMyself();
+
     private:
         Viewer *m_viewer;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325725</commentid>
    <comment_count>3</comment_count>
    <who name="Teemu Rytilahti">tpr</who>
    <bug_when>2005-03-19 18:54:40 +0000</bug_when>
    <thetext>CVS commit by rytilahti: 

backport for bug 101413
CCBUGS:101413


  M +7 -0      akregator_run.cpp   1.5.6.3
  M +3 -0      akregator_run.h   1.3.6.2


--- kdepim/akregator/src/akregator_run.cpp  #1.5.6.2:1.5.6.3
@@ -35,4 +35,5 @@ BrowserRun::BrowserRun(Viewer *viewer, Q
 {
     m_viewer=viewer;
+    connect(m_viewer, SIGNAL(destroyed()), this, SLOT(killMyself()));
 }
 
@@ -50,4 +51,10 @@ void BrowserRun::foundMimeType( const QS
 }
 
+void BrowserRun::killMyself()
+{
+    kdDebug() &lt;&lt; &quot;BrowserRun::killMyself()&quot; &lt;&lt; endl;
+    delete this;
+}
+
 #include &quot;akregator_run.moc&quot;
 

--- kdepim/akregator/src/akregator_run.h  #1.3.6.1:1.3.6.2
@@ -43,4 +43,7 @@ namespace Akregator
             virtual void foundMimeType( const QString &amp; _type );
 
+    private slots:
+        void killMyself();
+
     private:
         Viewer *m_viewer;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325728</commentid>
    <comment_count>4</comment_count>
    <who name="Teemu Rytilahti">tpr</who>
    <bug_when>2005-03-19 18:57:30 +0000</bug_when>
    <thetext>*** Bug 100405 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>327548</commentid>
    <comment_count>5</comment_count>
    <who name="Teemu Rytilahti">tpr</who>
    <bug_when>2005-03-24 09:20:22 +0000</bug_when>
    <thetext>*** Bug 102346 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>327631</commentid>
    <comment_count>6</comment_count>
    <who name="Teemu Rytilahti">tpr</who>
    <bug_when>2005-03-24 12:28:17 +0000</bug_when>
    <thetext>Oh, and 1.0.2 fixes this bug, don&apos;t know how it should made available to KDE 3.4 users, but it&apos;ll be in 3.4.1 at least...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>327655</commentid>
    <comment_count>7</comment_count>
    <who name="Frank Osterfeld">osterfeld</who>
    <bug_when>2005-03-24 13:04:32 +0000</bug_when>
    <thetext>&gt; Oh, and 1.0.2 fixes this bug

No, 1.0.2 is 1.0 + forms + notification in kontact + delete articles older than/disable archiving fixes, nothing else</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>327735</commentid>
    <comment_count>8</comment_count>
    <who name="Teemu Rytilahti">tpr</who>
    <bug_when>2005-03-24 17:26:52 +0000</bug_when>
    <thetext>*** Bug 102360 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>