<?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>100348</bug_id>
          
          <creation_ts>2005-02-27 04:34:55 +0000</creation_ts>
          <short_desc>&quot;Clear History&quot; followed by &quot;Clear&quot; crashes Kcontrol&apos;s &quot;History Sidebar&quot; module</short_desc>
          <delta_ts>2005-08-29 08:33:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kcontrol</product>
          <component>kcmkonq</component>
          <version>unspecified</version>
          <rep_platform>unspecified</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="Hugo Rodrigues">rodrigueshugo</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</assigned_to>
          <cc>Aladne</cc>
    
    <cc>aliakc</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>1</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>318742</commentid>
    <comment_count>0</comment_count>
    <who name="Hugo Rodrigues">rodrigueshugo</who>
    <bug_when>2005-02-27 04:34:56 +0000</bug_when>
    <thetext>Version:           unknown (using KDE 3.4.0 Level &quot;a&quot; , SUSE 9.2 UNSUPPORTED)
Compiler:          gcc version 3.3.4 (pre 3.3.5 20040809)
OS:                Linux (i686) release 2.6.8-24.10-default

&quot;Clear History&quot; followed by &quot;Clear&quot; button crashes Kcontrol&apos;s &quot;History Sidebar&quot; module, but only if there&apos;s already history info collected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>319726</commentid>
    <comment_count>1</comment_count>
    <who name="Stephan Binner">binner</who>
    <bug_when>2005-03-01 12:51:46 +0000</bug_when>
    <thetext>&quot;Clear History&quot; in the sidebar or in the configuration module? Backtrace at hand?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>319907</commentid>
    <comment_count>2</comment_count>
    <who name="Hugo Rodrigues">rodrigueshugo</who>
    <bug_when>2005-03-01 20:44:29 +0000</bug_when>
    <thetext>It crashes ONLY if I press &quot;Clear History&quot; followed by &quot;Clear&quot; in the &quot;History Sidebar&quot; kcmodule inside Kcontrol.
Both &quot;Clear History&quot; followed by &quot;Clear&quot; in Konqueror&apos;s sidebar or in &quot;History Sidebar&quot; configuration module called from Konqueror&apos;s &quot;Settings&quot; --&gt; &quot;Configure Konqueror&quot; menu don&apos;t crash and work as expected.

Below is the backtrace of the crash, hope it helps:

Using host libthread_db library &quot;/lib/tls/libthread_db.so.1&quot;.
[Thread debugging using libthread_db enabled]
[New Thread 1096002112 (LWP 9135)]
[KCrash handler]
#7  0x40f04242 in QGArray::QGArray () from /usr/lib/qt3/lib/libqt-mt.so.3
#8  0x4091710c in DCOPObject::objId () from /opt/kde3/lib/libDCOP.so.4
#9  0x415762e1 in KonqHistoryManager::emitClear ()
   from /opt/kde3/lib/libkonq.so.4
#10 0x41e66cb5 in HistorySidebarConfig::slotClearHistory ()
   from /opt/kde3/lib/kde3/kcm_history.so
#11 0x41e674b0 in HistorySidebarConfig::qt_invoke ()
   from /opt/kde3/lib/kde3/kcm_history.so
#12 0x40c4131e in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#13 0x40c41ac6 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#14 0x40f9af7c in QButton::clicked () from /usr/lib/qt3/lib/libqt-mt.so.3
#15 0x40cd9c34 in QButton::mouseReleaseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0x40c77905 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x40bdebaf in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x40be0f56 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x4086a5d1 in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#20 0x40b7c25e in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x40b7b116 in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x40b8bb08 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x40bf6b41 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x40bf6986 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x40be063f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x4167230d in kdemain () from /opt/kde3/lib/libkdeinit_kcontrol.so
#27 0x400187b4 in kdeinitmain () from /opt/kde3/lib/kde3/kcontrol.so
#28 0x0804e892 in launch ()
#29 0x0804ef9c in handle_launcher_request ()
#30 0x0804f559 in handle_requests ()
#31 0x0804fd2a in main ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324936</commentid>
    <comment_count>3</comment_count>
    <who name="Hugo Rodrigues">rodrigueshugo</who>
    <bug_when>2005-03-17 21:04:05 +0000</bug_when>
    <thetext>Just to let you know that unfortunatly this ocours exactly the same way in the new KDE 3.4 final.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>324940</commentid>
    <comment_count>4</comment_count>
    <who name="Hugo Rodrigues">rodrigueshugo</who>
    <bug_when>2005-03-17 21:06:42 +0000</bug_when>
    <thetext>Here&apos;s the debug backtrace on the new KDE 3.4:

Using host libthread_db library &quot;/lib/tls/libthread_db.so.1&quot;.
[Thread debugging using libthread_db enabled]
[New Thread 1096002112 (LWP 6626)]
[KCrash handler]
#7  0x40f04242 in QGArray::QGArray () from /usr/lib/qt3/lib/libqt-mt.so.3
#8  0x4091710c in DCOPObject::objId () from /opt/kde3/lib/libDCOP.so.4
#9  0x415762a1 in KonqHistoryManager::emitClear ()
   from /opt/kde3/lib/libkonq.so.4
#10 0x41e20cb5 in HistorySidebarConfig::slotClearHistory ()
   from /opt/kde3/lib/kde3/kcm_history.so
#11 0x41e214b0 in HistorySidebarConfig::qt_invoke ()
   from /opt/kde3/lib/kde3/kcm_history.so
#12 0x40c4131e in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#13 0x40c41ac6 in QObject::activate_signal ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#14 0x40f9af7c in QButton::clicked () from /usr/lib/qt3/lib/libqt-mt.so.3
#15 0x40cd9c34 in QButton::mouseReleaseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0x40c77905 in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0x40bdebaf in QApplication::internalNotify ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0x40be0f56 in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0x4086a631 in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#20 0x40b7c25e in QETWidget::translateMouseEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x40b7b116 in QApplication::x11ProcessEvent ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#22 0x40b8bb08 in QEventLoop::processEvents ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#23 0x40bf6b41 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#24 0x40bf6986 in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x40be063f in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x4167230d in kdemain () from /opt/kde3/lib/libkdeinit_kcontrol.so
#27 0x400187b4 in kdeinitmain () from /opt/kde3/lib/kde3/kcontrol.so
#28 0x0804e892 in launch ()
#29 0x0804ef9c in handle_launcher_request ()
#30 0x0804f559 in handle_requests ()
#31 0x0804fd2a in main ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>334393</commentid>
    <comment_count>5</comment_count>
    <who name="Tommi Tervo">tommi.tervo</who>
    <bug_when>2005-04-14 09:27:49 +0000</bug_when>
    <thetext>*** Bug 103835 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>334407</commentid>
    <comment_count>6</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2005-04-14 10:59:45 +0000</bug_when>
    <thetext>CVS commit by faure: 

The KParts::HistoryManager/KonqHistoryManager singleton mechanism is quite broken...
KControl creates a KParts::HistoryManager on startup, and then the cast inside
KonqHistoryManager::kself() fails.
Better not use KonqHistoryManager at all from this code then.
BUG: 100348


  M +5 -4      kcmhistory.cpp   1.17


--- kdebase/konqueror/sidebar/trees/history_module/kcmhistory.cpp  #1.16:1.17
@@ -28,4 +28,5 @@
 
 #include &lt;dcopclient.h&gt;
+#include &lt;dcopref.h&gt;
 #include &lt;kapplication.h&gt;
 #include &lt;kconfig.h&gt;
@@ -106,6 +107,4 @@ HistorySidebarConfig::HistorySidebarConf
     topLayout-&gt;add(dialog);
     load();
-
-    (void) new KonqHistoryManager( kapp, &quot;history mgr&quot; );
 }
 
@@ -294,6 +293,8 @@ void HistorySidebarConfig::slotClearHist
                                           &quot;the entire history?&quot;),
                                      i18n(&quot;Clear History?&quot;), guiitem )
-         == KMessageBox::Continue )
-        KonqHistoryManager::kself()-&gt;emitClear();
+         == KMessageBox::Continue ) {
+        DCOPRef dcopHistManager( &quot;konqueror*&quot;, &quot;KonqHistoryManager&quot; );
+        dcopHistManager.send( &quot;notifyClear&quot;, &quot;KonqHistoryManager&quot; );
+    }
 }
 
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>369471</commentid>
    <comment_count>7</comment_count>
    <who name="Tommi Tervo">tommi.tervo</who>
    <bug_when>2005-08-29 08:33:49 +0000</bug_when>
    <thetext>*** Bug 111684 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>