Bug 155911 - Crash when clicking a favorite folder
Summary: Crash when clicking a favorite folder
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: folder list (show other bugs)
Version: 1.9.50
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-16 14:29 UTC by Oliver Putz
Modified: 2008-02-25 19:48 UTC (History)
0 users

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 Oliver Putz 2008-01-16 14:29:11 UTC
Version:           1.9.50 (using 4.00.80 (KDE 4.0.80 >= 20080104), Gentoo)
Compiler:          i686-pc-linux-gnu-gcc
OS:                Linux (i686) release 2.6.22-gentoo-r9

As soon as I click on "Local Inbox" (under Favorite Folders) in Kontact, KMail crashes with the following backtrace:
(I use the Gentoo ebuilds to build kdepim and kdepimlibs)

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb53c4ab0 (LWP 5334)]
[KCrash handler]
#6  0xb36ffd07 in KMFolderTreeItem::folder (this=0x8345810)
    at /var/tmp/portage/kde-base/kdepim-9999.4/work/kdepim-9999.4/kmail/kmfoldertree.h:81
#7  0xb33b18da in KMail::FavoriteFolderView::itemClicked (this=0x8345810, 
    item=0x0)
    at /var/tmp/portage/kde-base/kdepim-9999.4/work/kdepim-9999.4/kmail/favoritefolderview.cpp:304
#8  0xb33b3680 in KMail::FavoriteFolderView::qt_metacall (this=0x8345810, 
    _c=QMetaObject::InvokeMetaMethod, _id=136, _a=0xbffc233c)
    at /var/tmp/portage/kde-base/kdepim-9999.4/work/kdepim_build/kmail/favoritefolderview.moc:141
#9  0xb7eb7124 in QMetaObject::activate (sender=0x8345810, 
    from_signal_index=53, to_signal_index=53, argv=<value optimized out>)
    at kernel/qobject.cpp:3083
#10 0xb7eb7cc4 in QMetaObject::activate (sender=0x8345810, m=0xb66e6528, 
    local_signal_index=3, argv=0xbffc233c) at kernel/qobject.cpp:3142
#11 0xb665e064 in Q3ListView::clicked (this=0x8345810, _t1=0x0)
    at .moc/debug-shared/moc_q3listview.cpp:285
#12 0xb64ed72c in Q3ListView::contentsMouseReleaseEventEx (this=0x8345810, 
    e=0xbffc25c8) at itemviews/q3listview.cpp:4485
#13 0xb64edf24 in Q3ListView::contentsMouseReleaseEvent (this=0x8345810, 
    e=0xbffc25c8) at itemviews/q3listview.cpp:4384
#14 0xb632244f in K3ListView::contentsMouseReleaseEvent (this=0x8345810, 
    e=0xbffc25c8)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kde3support/kdeui/k3listview.cpp:863
#15 0xb61db119 in KPIM::KFolderTree::contentsMouseReleaseEvent (
    this=0x8345810, e=0xbffc25c8)
    at /var/tmp/portage/kde-base/kdepim-9999.4/work/kdepim-9999.4/libkdepim/kfoldertree.cpp:461
#16 0xb654701e in Q3ScrollView::viewportMouseReleaseEvent (this=0x8345810, 
    e=0xbffc2c64) at widgets/q3scrollview.cpp:1782
#17 0xb6548246 in Q3ScrollView::eventFilter (this=0x8345810, obj=0x8345f68, 
    e=0xbffc2c64) at widgets/q3scrollview.cpp:1500
#18 0xb64e5456 in Q3ListView::eventFilter (this=0x8345810, o=0x8345f68, 
    e=0xbffc2c64) at itemviews/q3listview.cpp:3792
#19 0xb6d83fdb in QApplicationPrivate::notify_helper (this=0x805ffe0, 
    receiver=0x8345f68, e=0xbffc2c64) at kernel/qapplication.cpp:3550
#20 0xb6d85c6c in QApplication::notify (this=0xbffc31f0, receiver=0x8345f68, 
    e=0xbffc2c64) at kernel/qapplication.cpp:3257
#21 0xb7a2d583 in KApplication::notify (this=0xbffc31f0, receiver=0x8345f68, 
    event=0xbffc2c64)
    at /var/tmp/portage/kde-base/kdelibs-9999.4/work/kdelibs-9999.4/kdeui/kernel/kapplication.cpp:314
#22 0xb7ea3cab in QCoreApplication::notifyInternal (this=0xbffc31f0, 
    receiver=0x8345f68, event=0xbffc2c64) at kernel/qcoreapplication.cpp:532
#23 0xb6de9908 in QETWidget::translateMouseEvent (this=0x8345f68, 
    event=0xbffc3028)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:205
#24 0xb6de816e in QApplication::x11ProcessEvent (this=0xbffc31f0, 
    event=0xbffc3028) at kernel/qapplication_x11.cpp:2917
#25 0xb6e0def5 in QEventDispatcherX11::processEvents (this=0x805aba8, 
    flags=@0xbffc3114) at kernel/qeventdispatcher_x11.cpp:127
#26 0xb7ea30c1 in QEventLoop::processEvents (this=0xbffc3180, 
    flags=@0xbffc3148) at kernel/qeventloop.cpp:142
#27 0xb7ea31ca in QEventLoop::exec (this=0xbffc3180, flags=@0xbffc3188)
    at kernel/qeventloop.cpp:188
#28 0xb7ea5556 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:761
#29 0xb6d836c7 in QApplication::exec () at kernel/qapplication.cpp:3055
#30 0x0804b3e5 in main (argc=1, argv=0xbffc3384)
    at /var/tmp/portage/kde-base/kdepim-9999.4/work/kdepim-9999.4/kontact/src/main.cpp:162
#31 0xb5716fdc in __libc_start_main (main=0x804ab50 <main>, argc=1, 
    ubp_av=0xbffc3384, init=0x804c170 <__libc_csu_init>, 
    fini=0x804c160 <__libc_csu_fini>, rtld_fini=0xb7f67100 <_dl_fini>, 
    stack_end=0xbffc337c) at libc-start.c:229
#32 0x0804a781 in _start ()
#0  0xffffe410 in __kernel_vsyscall ()
Comment 1 Oliver Putz 2008-01-18 16:44:29 UTC
Hi, if it helps, I just found out that this crash only occurs when I start kmail from within kontact. (Start Kontact and then go to kmail) 
If I start kmail directely, it does not crash.
Comment 2 Thomas McGuire 2008-01-19 19:04:46 UTC
I can reproduce this. For me, the following sequence triggers the bug:

1. Start Kontact, go to the mail component and select any folder which is not
   in the favorite folder view.
2. Go back to the summary page and quit Kontact.
3. Sart Kontact, go to the mails, and click any folder in the favorite folder
   view.

I'll investigate this later.
Comment 3 Thomas McGuire 2008-02-25 19:48:25 UTC
SVN commit 779262 by tmcguire:

Propagate the event correctly to the superclass.
Lesson learned: event() isn't the same as resizeEvent() etc...
BUG: 155911


 M  +3 -2      favoritefolderview.cpp  
 M  +0 -28     kmmainwidget.cpp  
 M  +0 -1      kmmainwidget.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=779262