Bug 103770 - Crash after editing toolbar kmmainwin
Summary: Crash after editing toolbar kmmainwin
Status: RESOLVED FIXED
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: 1.1
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 104891 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-13 04:55 UTC by Sebastian
Modified: 2008-08-05 13:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian 2005-04-13 04:55:39 UTC
Version:           1.1 (using KDE 3.4.0, Debian Package 4:3.4.0-0ubuntu3 (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8ubuntu2)
OS:                Linux (i686) release 2.6.10-5-686

In the mail part of Kontact I used the "anti-SPAM assistant.
After that, two new buttons appeared in the toolbar kmmainwin.
I wanted to edit the symbols to new ones. After pressing "apply" Kontact crashed.
Now it is not possible to edit anything in kmmainwin. When I try to remove the buttons -> crash. Sometimes it even crashes every time I start the KMail component of Kontact. then I have to delete the configuration of kontact in ~/.kde/share/config to be able to start it again.

This is the backtrace of the crash after I klicked "apply":

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread -1238920032 (LWP 9833)]
[KCrash handler]
#4  0x00000011 in ?? ()
#5  0xb72c4c72 in KXMLGUI::ActionList::unplug () from /usr/lib/libkdeui.so.4
#6  0xb72c624c in KXMLGUI::ContainerNode::unplugClient ()
   from /usr/lib/libkdeui.so.4
#7  0xb72c6198 in KXMLGUI::ContainerNode::unplugActions ()
from /usr/lib/libkdeui.so.4
#8  0xb72c5cb4 in KXMLGUI::ContainerNode::destruct ()
   from /usr/lib/libkdeui.so.4
#9  0xb72c5e95 in KXMLGUI::ContainerNode::destructChildren ()
   from /usr/lib/libkdeui.so.4
#10 0xb72c5ca8 in KXMLGUI::ContainerNode::destruct ()
   from /usr/lib/libkdeui.so.4
#11 0xb72c2b89 in KXMLGUIFactory::removeClient () from /usr/lib/libkdeui.so.4
#12 0xb775660e in KParts::MainWindow::createGUI ()
   from /usr/lib/libkparts.so.2
#13 0x0805d66c in ?? ()
#14 0x081a5de0 in ?? ()
#15 0x083f74f0 in ?? ()
#16 0xbfffd538 in ?? ()
#17 0xb68f0e3f in QWidget::update () from /usr/lib/libqt-mt.so.3
#18 0x0805e85f in ?? ()
#19 0x081a5de0 in ?? ()
#20 0x08ac42a8 in ?? ()
#21 0xbfffd548 in ?? ()
#22 0xb6dbc670 in ?? () from /usr/lib/libqt-mt.so.3
#23 0x081a6838 in ?? ()
#24 0xbfffd5a0 in ?? ()
#25 0xbfffd578 in ?? ()
#26 0xb697d067 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#27 0xb697d067 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#28 0xb697ceae in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#29 0xb72d3603 in KEditToolbar::newToolbarConfig ()
   from /usr/lib/libkdeui.so.4
#30 0xb72cc0de in KEditToolbar::slotApply () from /usr/lib/libkdeui.so.4
#31 0xb728b3f6 in KDialogBase::qt_invoke () from /usr/lib/libkdeui.so.4
#32 0xb72d3653 in KEditToolbar::qt_invoke () from /usr/lib/libkdeui.so.4
#33 0xb697cfdd in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#34 0xb697ceae in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#35 0xb6c9ef12 in QButton::clicked () from /usr/lib/libqt-mt.so.3
#36 0xb6a08eae in QButton::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3
#37 0xb69b07e9 in QWidget::event () from /usr/lib/libqt-mt.so.3
#38 0xb6925370 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#39 0xb6924ac7 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#40 0xb6f2d960 in KApplication::notify () from /usr/lib/libkdecore.so.4
#41 0xb68be12f in QETWidget::translateMouseEvent ()
   from /usr/lib/libqt-mt.so.3
#42 0xb68bbe1c in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#43 0xb68d1ec2 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#44 0xb693674c in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#45 0xb69255d3 in QApplication::enter_loop () from /usr/lib/libqt-mt.so.3
#46 0xb6af720c in QDialog::exec () from /usr/lib/libqt-mt.so.3
#47 0x0805d624 in ?? ()
#48 0xbfffe0e0 in ?? ()
#49 0x08065d47 in _IO_stdin_used ()
#50 0x081a5de0 in ?? ()
#51 0x08065d30 in _IO_stdin_used ()
#52 0xb738c088 in vtable for KEditToolbar () from /usr/lib/libkdeui.so.4
#53 0x08a780e2 in ?? ()
#54 0x00000000 in ?? ()
#55 0x00000000 in ?? ()
#56 0x08800370 in ?? ()
#57 0x08555b38 in ?? ()
#58 0x08877b98 in ?? ()
#59 0x08acd650 in ?? ()
#60 0x00000000 in ?? ()
#61 0x00000000 in ?? ()
#62 0xb738c294 in vtable for KEditToolbar () from /usr/lib/libkdeui.so.4
#63 0x024031ed in ?? ()
#64 0x08854fc0 in ?? ()
#65 0x00000001 in ?? ()
#66 0x00000000 in ?? ()
#67 0x024031ed in ?? ()
#68 0x00c02815 in ?? ()
#69 0x040041e3 in ?? ()
#70 0x00000400 in ?? ()
#71 0x000000d4 in ?? ()
#72 0x00000087 in ?? ()
#73 0x00000321 in ?? ()
#74 0x00000233 in ?? ()
#75 0xffefefef in ?? ()
#76 0xffefefef in ?? ()
#77 0x08180338 in ?? ()
#78 0x08183080 in ?? ()
#79 0x088821d0 in ?? ()
#80 0x08ac85d8 in ?? ()
#81 0x00000000 in ?? ()
#82 0x0000004d in ?? ()
#83 0x08ac9d90 in ?? ()
#84 0x00000000 in ?? ()
#85 0x088821d0 in ?? ()
#86 0x08ac94e8 in ?? ()
#87 0x00000000 in ?? ()
#88 0x08acdeb8 in ?? ()
#89 0x00000000 in ?? ()
#90 0xb6924801 in QApplication::closeAllWindows () from /usr/lib/libqt-mt.so.3
#91 0x0805e8d5 in ?? ()
#92 0x081a5de0 in ?? ()
#93 0xb6dbc670 in ?? () from /usr/lib/libqt-mt.so.3
#94 0xb69248dd in QApplication::notify () from /usr/lib/libqt-mt.so.3
#95 0xb697d067 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#96 0xb697ceae in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#97 0xb7201711 in KAction::activated () from /usr/lib/libkdeui.so.4
#98 0xb7200f18 in KAction::slotActivated () from /usr/lib/libkdeui.so.4
#99 0xb7201042 in KAction::slotPopupActivated () from /usr/lib/libkdeui.so.4
#100 0xb72019e2 in KAction::qt_invoke () from /usr/lib/libkdeui.so.4
#101 0xb697d067 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#102 0xb6c981a5 in QSignal::signal () from /usr/lib/libqt-mt.so.3
#103 0xb6995ca9 in QSignal::activate () from /usr/lib/libqt-mt.so.3
#104 0xb6a79348 in QPopupMenu::mouseReleaseEvent ()
   from /usr/lib/libqt-mt.so.3
#105 0xb71efa70 in KPopupMenu::mouseReleaseEvent ()
   from /usr/lib/libkdeui.so.4
#106 0xb69b07e9 in QWidget::event () from /usr/lib/libqt-mt.so.3
#107 0xb6925370 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#108 0xb6924ac7 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#109 0xb6f2d960 in KApplication::notify () from /usr/lib/libkdecore.so.4
#110 0xb68bdd1d in QETWidget::translateMouseEvent ()
   from /usr/lib/libqt-mt.so.3
#111 0xb68bbe1c in QApplication::x11ProcessEvent ()
   from /usr/lib/libqt-mt.so.3
#112 0xb68d1ec2 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#113 0xb693674c in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#114 0xb69255d3 in QApplication::enter_loop () from /usr/lib/libqt-mt.so.3
#115 0xb6a7c0c8 in QPopupMenu::exec () from /usr/lib/libqt-mt.so.3
#116 0xb71f5744 in KToolBar::mousePressEvent () from /usr/lib/libkdeui.so.4
#117 0xb69b07d8 in QWidget::event () from /usr/lib/libqt-mt.so.3
#118 0xb6a24fcf in QDockWindow::event () from /usr/lib/libqt-mt.so.3
#119 0xb6aa0ea0 in QToolBar::event () from /usr/lib/libqt-mt.so.3
#120 0xb71f7ce9 in KToolBar::event () from /usr/lib/libkdeui.so.4
#121 0xb6925370 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#122 0xb6924ac7 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#123 0xb6f2d960 in KApplication::notify () from /usr/lib/libkdecore.so.4
#124 0xb68be12f in QETWidget::translateMouseEvent ()
   from /usr/lib/libqt-mt.so.3
#125 0xb68bbe1c in QApplication::x11ProcessEvent ()
   from /usr/lib/libqt-mt.so.3
#126 0xb68d1ec2 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#127 0xb693674c in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#128 0xb693660e in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#129 0xb692557b in QApplication::exec () from /usr/lib/libqt-mt.so.3
#130 0x08058d0b in ?? ()
#131 0xbffff980 in ?? ()
#132 0x00000001 in ?? ()
#133 0x00000001 in ?? ()
#134 0x00000000 in ?? ()
#135 0x00000000 in ?? ()
#136 0x00000001 in ?? ()
#137 0x08066400 in _IO_stdin_used ()
#138 0x00000000 in ?? ()
#139 0x08065831 in _IO_stdin_used ()
#140 0x0806581d in _IO_stdin_used ()
#141 0xbffff9a8 in ?? ()
#142 0xb64882ee in operator new () from /usr/lib/libstdc++.so.5
#143 0xb62b18c8 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#144 0x08058431 in ?? ()
Comment 1 Sebastian Damm 2005-05-05 21:59:50 UTC
Same Problem here (Gentoo, KDE 3.4.0, gcc 3.4.3); since KMail was the standard app  when starting kontact, Kontact now crashes right after starting. KMail standalone works, but the toolbar where the filters were placed is not shown anymore. And I can't select it when customizing the toolbar.
Comment 2 Sebastian Damm 2005-05-06 09:03:25 UTC
Just want to add how to reproduce it:

Use the Anti Spam Assistant of KMail and configure it. Then edit the toolbar, there will be near the bottom an entry "toolbar_filter_actions". Just click on it once. You will see a description for a short time and then the filter disappears. Now when you hit Abort everything is still fine. But if you accidentally hit OK, the filter buttons in the toolbar are gone and Kontact crashes. And there is no way getting the filter buttons back.

I got it back working by deleting $HOME/.kde/share/apps/kmail/kmmainwin.rc, of course I have to customize my toolbar again.
Comment 3 Daniel Molkentin 2005-05-27 13:06:27 UTC
Looking into it.
Comment 4 Tobias Koenig 2005-08-16 17:16:52 UTC
*** Bug 104891 has been marked as a duplicate of this bug. ***
Comment 5 Tobias Koenig 2005-08-16 21:48:39 UTC
Hi,

that has been fixed in 3.5 branch.

Ciao,
Tobias
Comment 6 Don C. Weber 2008-07-25 06:52:08 UTC
I am experiencing the same behavior.
Ubuntu 8.04.1 Kde 3.5.9 Kontact 1.2.9 Kmail 1.9.9

Here is my experience
--------------
I recently moved Linux distributions and brought my Kmail data (mail and kmailrc) to the new system (Ubuntu). Everything set up great even though I am now running Kmail through Kontact. So far I like it but I have noticed that Spam filtering stopped working. So, I used the wizard to configure Spam filter in hopes that it would help. It did not, but everything worked fine.

So I was looking around and I decided to check if Bogofilter (or whatever it is called) had a different button than the "Filter Classify as Spam" button. So, I went to configure the Kmail Toolbar and I noticed that although the toolbar contained the "Filter Classify as Spam" and the "Filter Classify as NOT Spam" buttons were on the toolbar the toolbar configuration menu showed they were not present. So, I selected each button and placed it on the toolbar and clicked okay. Kontact crashed. Every time I try and start Kontact, it crashes.

I have looked around but cannot seem to locate which file to modify so that the Kmail toolbar in Kontact goes back to normal.
--------------
THEN
--------------
Okay, I found it. Of course the configuration is handled through the "kmailrc". What threw me off was that the button is configured through the filter definition.


[Filter #17]
Applicability=0
AutomaticName=true
ConfigureShortcut=false
ConfigureToolbar=false
Icon=mail_spam
StopProcessingHere=true
accounts-set=
action-args-0=P
action-args-1=bogofilter -N -s
action-args-2=Junk
action-name-0=set status
action-name-1=execute
action-name-2=transfer
actions=3
apply-on=
contentsA=0
fieldA=<size>
funcA=greater-or-equal
name=Classify as spam
operator=and
rules=1

[Filter #18]
Applicability=0
AutomaticName=true
ConfigureShortcut=false
ConfigureToolbar=false
Icon=mail_ham
StopProcessingHere=true
accounts-set=
action-args-0=H
action-args-1=bogofilter -S -n
action-name-0=set status
action-name-1=execute
actions=2
apply-on=
contentsA=0
fieldA=<size>
funcA=greater-or-equal
name=Classify as NOT spam
operator=and
rules=1



I just changed "ConfigureShortcut" and "ConfigureToolbar" to false. Once I made this change it started right up. After playing around a little bit it seems that the "ConfigureShortcut" is the problem. But I cannot get "ConfigureToolbar" to go back to true. Also, now the buttons do not show up in the configuration menu at all.

So, then I ran the SpamWizard again and the buttons reappeared. Great, but when I restart Kmail crashes again. So, once again, no Anti-Spam.

--------------

Thank you,
Cutaway
Comment 7 Don C. Weber 2008-08-05 13:43:17 UTC
Is this being looked into?  I am dead in the water for Spam protection.

Thank you,
Cutaway