Bug 289107

Summary: Kontact crashes when quitting
Product: [Applications] kontact Reporter: Geert Janssens <info>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: bugs, christoph, crglasoe, dmn, freetolga, ianseeks, james, kdebugs, kdenis, mm_maiwald, stakanov.s
Priority: HI    
Version: 5.3.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Geert Janssens 2011-12-16 11:12:02 UTC
Application: kontact (4.7.3)
KDE Platform Version: 4.7.3 (4.7.3)
Qt Version: 4.8.0
Operating System: Linux 3.1.5-2.fc16.i686.PAE i686
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
I clicked "Quit" in the menu, after which kontact crashed. I know it was stalling on a folder synchronisation (a very large trash folder) and at the same time attempting to send a mail I had just written. I have no idea though if those things are related.

- Unusual behavior I noticed:
Abnormally long stalls at frequent intervals, which seem to be related to the very large trash folder I mentioned above.

Perhaps this is related to https://bugzilla.redhat.com/show_bug.cgi?id=768326 which I was just creating when I ran into this crash.

-- Backtrace:
Application: Kontact (kontact), signal: Aborted
Using host libthread_db library "/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0xb76d6780 (LWP 3654))]

Thread 3 (Thread 0xb685ab40 (LWP 3655)):
#0  0x00748424 in __kernel_vsyscall ()
#1  0x063ee84c in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:172
#2  0x01b12c93 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x01b12db0 in ?? () from /usr/lib/libQtWebKit.so.4
#4  0x063eacd3 in start_thread (arg=0xb685ab40) at pthread_create.c:309
#5  0x025967ce in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb5f31b40 (LWP 3656)):
#0  0x0073f001 in __GI_clock_gettime (clock_id=1, tp=0xb5f30fb8) at ../sysdeps/unix/clock_gettime.c:116
#1  0x04e2daf6 in do_gettime (frac=0xb5f30fb0, sec=0xb5f30fa8) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x04f16547 in QTimerInfoList::updateCurrentTime (this=0xb5601abc) at kernel/qeventdispatcher_unix.cpp:343
#4  0x04f168ab in QTimerInfoList::timerWait (this=0xb5601abc, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#5  0x04f150f3 in timerSourcePrepareHelper (src=<optimized out>, timeout=0xb5f3109c) at kernel/qeventdispatcher_glib.cpp:136
#6  0x086b6bdc in g_main_context_prepare (context=0xb56004e0, priority=0xb5f310f8) at gmain.c:2746
#7  0x086b7998 in g_main_context_iterate (context=0xb56004e0, block=1, dispatch=1, self=0xb5600d70) at gmain.c:3053
#8  0x086b7faf in g_main_context_iteration (context=0xb56004e0, may_block=1) at gmain.c:3136
#9  0x04f15c67 in QEventDispatcherGlib::processEvents (this=0xb5600468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#10 0x04ee1e4e in QEventLoop::processEvents (this=0xb5f31230, flags=...) at kernel/qeventloop.cpp:149
#11 0x04ee20f9 in QEventLoop::exec (this=0xb5f31230, flags=...) at kernel/qeventloop.cpp:204
#12 0x04dcbadc in QThread::exec (this=0x96e1e68) at thread/qthread.cpp:501
#13 0x04dcbbcc in QThread::run (this=0x96e1e68) at thread/qthread.cpp:568
#14 0x04dcf061 in QThreadPrivate::start (arg=0x96e1e68) at thread/qthread_unix.cpp:298
#15 0x063eacd3 in start_thread (arg=0xb5f31b40) at pthread_create.c:309
#16 0x025967ce in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb76d6780 (LWP 3654)):
[KCrash Handler]
#7  0x00748424 in __kernel_vsyscall ()
#8  0x024d398f in raise () from /lib/libc.so.6
#9  0x024d52d5 in abort () from /lib/libc.so.6
#10 0x0246b74d in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#11 0x024694c4 in __cxxabiv1::__terminate (handler=0x246b600 <__gnu_cxx::__verbose_terminate_handler()>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:40
#12 0x02469500 in std::terminate () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:50
#13 0x0246a173 in __cxxabiv1::__cxa_pure_virtual () at ../../../../libstdc++-v3/libsupc++/pure.cc:50
#14 0x0578ba5e in MailCommon::FolderCollection::writeConfig (this=0x9bdd9d8) at /usr/src/debug/kdepim-4.7.3/mailcommon/foldercollection.cpp:217
#15 0x0578c98e in MailCommon::FolderCollection::~FolderCollection (this=0x9bdd9d8, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.7.3/mailcommon/foldercollection.cpp:89
#16 0x0578ca73 in MailCommon::FolderCollection::~FolderCollection (this=0x9bdd9d8, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.7.3/mailcommon/foldercollection.cpp:90
#17 0x0575be29 in deref (value=0x9bdd9d8, d=0xc0694c8) at /usr/include/QtCore/qsharedpointer_impl.h:342
#18 deref (this=0xd474714) at /usr/include/QtCore/qsharedpointer_impl.h:336
#19 ~ExternalRefCount (this=0xd474714, __in_chrg=<optimized out>) at /usr/include/QtCore/qsharedpointer_impl.h:401
#20 ~QSharedPointer (this=0xd474714, __in_chrg=<optimized out>) at /usr/include/QtCore/qsharedpointer_impl.h:466
#21 MailCommon::CollectionGeneralPage::~CollectionGeneralPage (this=0xd4746d8, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.7.3/mailcommon/collectiongeneralpage.cpp:58
#22 0x0575be73 in MailCommon::CollectionGeneralPage::~CollectionGeneralPage (this=0xd4746d8, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.7.3/mailcommon/collectiongeneralpage.cpp:60
#23 0x04ef6e62 in QObjectPrivate::deleteChildren (this=0xe380128) at kernel/qobject.cpp:1907
#24 0x0331577c in QWidget::~QWidget (this=0xe3492d0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1675
#25 0x03735d10 in QFrame::~QFrame (this=0xe3492d0, __in_chrg=<optimized out>) at widgets/qframe.cpp:240
#26 0x0379e8e0 in QStackedWidget::~QStackedWidget (this=0xe3492d0, __in_chrg=<optimized out>) at widgets/qstackedwidget.cpp:191
#27 0x0379e923 in QStackedWidget::~QStackedWidget (this=0xe3492d0, __in_chrg=<optimized out>) at widgets/qstackedwidget.cpp:193
#28 0x04ef6e62 in QObjectPrivate::deleteChildren (this=0xe37ff78) at kernel/qobject.cpp:1907
#29 0x0331577c in QWidget::~QWidget (this=0xc21cad0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1675
#30 0x037ab7f0 in QTabWidget::~QTabWidget (this=0xc21cad0, __in_chrg=<optimized out>) at widgets/qtabwidget.cpp:365
#31 0x03034dd3 in KTabWidget::~KTabWidget (this=0xc21cad0, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.7.3/kdeui/widgets/ktabwidget.cpp:241
#32 0x03034e13 in KTabWidget::~KTabWidget (this=0xc21cad0, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.7.3/kdeui/widgets/ktabwidget.cpp:244
#33 0x04ef6e62 in QObjectPrivate::deleteChildren (this=0xe37fd78) at kernel/qobject.cpp:1907
#34 0x0331577c in QWidget::~QWidget (this=0xde9aa68, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1675
#35 0x03315a83 in QWidget::~QWidget (this=0xde9aa68, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1699
#36 0x04ef6e62 in QObjectPrivate::deleteChildren (this=0xbd61660) at kernel/qobject.cpp:1907
#37 0x0331577c in QWidget::~QWidget (this=0xbfff8e0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1675
#38 0x038102d6 in QDialog::~QDialog (this=0xbfff8e0, __in_chrg=<optimized out>) at dialogs/qdialog.cpp:318
#39 0x02e6ad45 in KDialog::~KDialog (this=0xbfff8e0, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.7.3/kdeui/dialogs/kdialog.cpp:201
#40 0x06e72944 in Akonadi::CollectionPropertiesDialog::~CollectionPropertiesDialog (this=0xbfff8e0, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.3/akonadi/collectionpropertiesdialog.cpp:160
#41 0x06e729d3 in Akonadi::CollectionPropertiesDialog::~CollectionPropertiesDialog (this=0xbfff8e0, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.3/akonadi/collectionpropertiesdialog.cpp:163
#42 0x04ef6e62 in QObjectPrivate::deleteChildren (this=0x9c0f628) at kernel/qobject.cpp:1907
#43 0x0331577c in QWidget::~QWidget (this=0x9bf7b08, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1675
#44 0x070e3739 in KMMainWidget::~KMMainWidget (this=0x9bf7b08, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.7.3/kmail/kmmainwidget.cpp:336
#45 0x070e3973 in KMMainWidget::~KMMainWidget (this=0x9bf7b08, __in_chrg=<optimized out>) at /usr/src/debug/kdepim-4.7.3/kmail/kmmainwidget.cpp:341
#46 0x04ef6e62 in QObjectPrivate::deleteChildren (this=0x9bec628) at kernel/qobject.cpp:1907
#47 0x0331577c in QWidget::~QWidget (this=0x9bebdf0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1675
#48 0x03315a83 in QWidget::~QWidget (this=0x9bebdf0, __in_chrg=<optimized out>) at kernel/qwidget.cpp:1699
#49 0x0014acdc in KParts::Part::~Part (this=0x980f810, __vtt_parm=0x5159388, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.7.3/kparts/part.cpp:209
#50 0x0014dc9d in KParts::ReadOnlyPart::~ReadOnlyPart (this=0x980f810, __vtt_parm=0x5159384, __in_chrg=<optimized out>) at /usr/src/debug/kdelibs-4.7.3/kparts/part.cpp:460
#51 0x051538dd in KMailPart::~KMailPart (this=0x980f810, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.7.3/kmail/kmail_part.cpp:132
#52 0x051539e3 in KMailPart::~KMailPart (this=0x980f810, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.7.3/kmail/kmail_part.cpp:141
#53 0x00484ea9 in KontactInterface::Plugin::~Plugin (this=0x98639b0, __vtt_parm=0x89ab4e4, __in_chrg=<optimized out>) at /usr/src/debug/kdepimlibs-4.7.3/kontactinterface/plugin.cpp:90
#54 0x0899d246 in KMailPlugin::~KMailPlugin (this=0x98639b0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.7.3/kontact/plugins/kmail/kmail_plugin.cpp:159
#55 0x0899d293 in KMailPlugin::~KMailPlugin (this=0x98639b0, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.7.3/kontact/plugins/kmail/kmail_plugin.cpp:163
#56 0x0023272f in Kontact::MainWindow::~MainWindow (this=0x97251b8, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.7.3/kontact/src/mainwindow.cpp:287
#57 0x002328c3 in Kontact::MainWindow::~MainWindow (this=0x97251b8, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdepim-4.7.3/kontact/src/mainwindow.cpp:289
#58 0x04ef6c14 in qDeleteInEventHandler (o=0x97251b8) at kernel/qobject.cpp:4276
#59 0x04efdda8 in QObject::event (this=0x97251b8, e=0xd021ec0) at kernel/qobject.cpp:1175
#60 0x0331b512 in QWidget::event (this=0x97251b8, event=0xd021ec0) at kernel/qwidget.cpp:8809
#61 0x03753f44 in QMainWindow::event (this=0x97251b8, event=0xd021ec0) at widgets/qmainwindow.cpp:1478
#62 0x0300b614 in KMainWindow::event (this=0x97251b8, ev=0xd021ec0) at /usr/src/debug/kdelibs-4.7.3/kdeui/widgets/kmainwindow.cpp:1084
#63 0x03054873 in KXmlGuiWindow::event (this=0x97251b8, ev=0xd021ec0) at /usr/src/debug/kdelibs-4.7.3/kdeui/xmlgui/kxmlguiwindow.cpp:126
#64 0x032c0a34 in notify_helper (e=0xd021ec0, receiver=0x97251b8, this=0x954c9e8) at kernel/qapplication.cpp:4518
#65 QApplicationPrivate::notify_helper (this=0x954c9e8, receiver=0x97251b8, e=0xd021ec0) at kernel/qapplication.cpp:4490
#66 0x032c5f7b in QApplication::notify (this=0x954c9e8, receiver=0x97251b8, e=0xd021ec0) at kernel/qapplication.cpp:4483
#67 0x02f2c622 in KApplication::notify (this=0xbfdb0b04, receiver=0x97251b8, event=0xd021ec0) at /usr/src/debug/kdelibs-4.7.3/kdeui/kernel/kapplication.cpp:311
#68 0x04ee2f5e in QCoreApplication::notifyInternal (this=0xbfdb0b04, receiver=0x97251b8, event=0xd021ec0) at kernel/qcoreapplication.cpp:876
#69 0x04ee6eb8 in sendEvent (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#70 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x952bc90) at kernel/qcoreapplication.cpp:1500
#71 0x04ee71ed in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1393
#72 0x04f15805 in sendPostedEvents () at kernel/qcoreapplication.h:236
#73 postEventSourceDispatch (s=0x954e390) at kernel/qeventdispatcher_glib.cpp:279
#74 0x086b75bf in g_main_dispatch (context=0x954e300) at gmain.c:2425
#75 g_main_context_dispatch (context=0x954e300) at gmain.c:2995
#76 0x086b7d00 in g_main_context_iterate (context=0x954e300, block=141322144, dispatch=1, self=0x954cbb8) at gmain.c:3073
#77 0x086b7faf in g_main_context_iteration (context=0x954e300, may_block=1) at gmain.c:3136
#78 0x04f15c08 in QEventDispatcherGlib::processEvents (this=0x952c828, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#79 0x0337538b in QGuiEventDispatcherGlib::processEvents (this=0x952c828, flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#80 0x04ee1e4e in QEventLoop::processEvents (this=0xbfdb0a64, flags=...) at kernel/qeventloop.cpp:149
#81 0x04ee20f9 in QEventLoop::exec (this=0xbfdb0a64, flags=...) at kernel/qeventloop.cpp:204
#82 0x04ee729b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#83 0x032be835 in QApplication::exec () at kernel/qapplication.cpp:3779
#84 0x0804ae53 in main (argc=1, argv=0xbfdb0d24) at /usr/src/debug/kdepim-4.7.3/kontact/src/main.cpp:218

Possible duplicates by query: bug 284729, bug 284551, bug 284493, bug 284453, bug 284369.

Reported using DrKonqi
Comment 1 Jekyll Wu 2013-10-05 08:15:40 UTC
*** Bug 325644 has been marked as a duplicate of this bug. ***
Comment 2 Denis Kurz 2016-09-06 19:41:47 UTC
*** Bug 358682 has been marked as a duplicate of this bug. ***
Comment 3 Denis Kurz 2016-09-06 19:42:42 UTC
*** Bug 368354 has been marked as a duplicate of this bug. ***
Comment 4 Denis Kurz 2016-09-06 19:43:12 UTC
*** Bug 368168 has been marked as a duplicate of this bug. ***
Comment 5 Denis Kurz 2016-09-06 19:43:26 UTC
*** Bug 365489 has been marked as a duplicate of this bug. ***
Comment 6 Denis Kurz 2016-09-06 19:43:39 UTC
*** Bug 359007 has been marked as a duplicate of this bug. ***
Comment 7 Denis Kurz 2016-09-06 19:43:59 UTC
*** Bug 354441 has been marked as a duplicate of this bug. ***
Comment 8 Denis Kurz 2016-09-06 19:45:43 UTC
This has been reported for Kontact versions up to 5.2.2 (in bug 365489), setting to confirmed.
Comment 9 Tom Chiverton 2016-09-06 20:14:41 UTC
Where can I get an updated version to test with then ?
https://launchpad.net/%7Ekubuntu-ppa/+archive/ubuntu/ppa/+index?batch=75&memo=150&start=150 doesn't appear to be it
Comment 11 Christoph Feck 2017-07-15 01:23:26 UTC
*** Bug 382030 has been marked as a duplicate of this bug. ***
Comment 12 Christoph Feck 2017-12-31 12:35:13 UTC
*** Bug 387553 has been marked as a duplicate of this bug. ***
Comment 13 Geert Janssens 2018-10-01 09:25:12 UTC
I haven't seen this happening any more recently. My current version of Kontact is 5.7.3.
Comment 14 stakanov.s 2018-10-01 10:32:46 UTC
I do not know if this is the very same bug, but, with 5.7.3 I have the following: memory leak, when you close kontact and you start it up again, the program crashes silently. The second start after this will work. 
This can be avoided if akonadi is stopped and then Kontact is started, usually the program then does not crash at startup. 
Unfortunately I do not get a backtrace from Konqi to tell if this is this bug or another one. (Leap, KDE Frameworks 5.45.0 Plasma 5.12.6 QT 5.9.4 and Kontact 5.7.3)
Comment 15 Justin Zobel 2020-12-17 05:38:09 UTC
Thank you for the crash report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 16 Bug Janitor Service 2021-01-01 04:34:38 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 17 stakanov.s 2021-01-01 13:26:41 UTC
AFAIK still the case in opensuse 15.1 (EOL will be the 31 of January 2021). It is difficult to say if 15.2 is any better because KDE PIM is substantially such an alfa level in that OS edition, that it cannot possibly used in any productive environment. 
But as of 2021, 15.1 with 
Plasma 5.12.8 QT 5.9.7 and Frameworks 5.55.0 
that crash is still valid and occurs although not with the high frequency as before!
Bug 413750
https://bugs.kde.org/show_bug.cgi?id=413750
Maybe another "duplicate"?
Comment 18 Christoph Feck 2021-01-09 16:39:51 UTC
The backtrace from comment 413750 is different, so I doubt these are duplicates. Reopening.
Comment 19 freetolga 2021-05-17 07:42:41 UTC
I am using Debian GNU/Linux 11 Bullseye and i use the plasma wayland session and everytime i quit the wayland session akonadi proccesses have 100% cpu usage until i kill them the same issue doesnt happen on xorg
Comment 20 Christoph Cullmann 2024-09-21 16:34:15 UTC
Please re-try with a recent version, thanks!

I can not reproduce this behavior.
Comment 21 Geert Janssens 2024-09-23 07:07:18 UTC
As OP, the last time I could reproduce this was a long time ago, but perhaps the others reporting after me may still have the issue ?
Comment 22 Bug Janitor Service 2024-10-08 03:47:17 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 23 Bug Janitor Service 2024-10-23 03:47:11 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.