Summary: | Zanshin and Kontact/KOrganizer crash when trying to edit category or name of ToDo (in either) | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Matija Šuklje <matija> |
Component: | libakonadi | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | ervin |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | console output |
Description
Matija Šuklje
2011-06-27 21:30:14 UTC
Also I noticed that a few seconds before it crashes all the resources in the list go blank (text and icon disappears, but they still take the space), while (some of) the Projects stay. I managed to crash it in the same manner again by just manually syncinc Nepomuk Tags (for KMail) in Akonadi Console. This crashed both KOntact immediately and Zenshin as described above. Created attachment 61398 [details]
console output
Console output from start to crash.
I can reproduce the same in Kontact/KOrganizer 4.6.0. For the record, from your description it sounds like something not specific to Zanshin (as you experience similar issues with korganizer apparently). When korganizer crashes, that would be useful to have its backtrace as well. Also your backtrace seems incomplete, it stops at frame 6 would be useful to have a complete one, I guess you're not running a debug build right now. Last but not least, I've been unable to reproduce that behavior so far. It sounds like we miss a piece of the puzzle at the moment to go further. If you get korganizer backtrace, and more complete zanshin backtrace, or more precise information to reproduce reliably, please let us know. I'll try to get a better backtrace soon and upload it. OK, I here's how I can replicate the issue using Kontact (Zanshin is running as well): 1) edited an existing ToDo in Kontact and added a category to it (it didn't have one before) *** at this point the resources disappeared from the resource list in Kontact's calendar view *** 2) repeated step 1) a few times; *** at this point Zanshin crashed, but not relevant for what I was testing *** 3) refreshed my IMAP folders in KMail (could be unrelated); 4) edited an existing ToDo in Kontact and changed its title; *** at this point Kontact stopped being responsive and started to consume 100% of CPU*** 5) waited for an hour or so; 6) put it out of its misery by killing Kontact. Managed to replicate it as well by running just Kontact and: 1) edited some titles of ToDos; 2) changed the category of some ToDos; 3) deleted two ToDos; *** Kontact starts eating up 100% CPU now *** 4) waited for 10 minutes or so; 5) killed Kontact with SIGSEGV to get a backtrace Note: in the first example I edited only the Kolab resource and in the second example only a local resource. Also in the second example I didn't look when the resource list got garbled. So, it seems it's not a Zanshin(-only) thing, but could be a lower level problem. I don't know what causes it yet though :\ Kontact's backtrace from example no. 2 in comment #7: Application: Kontact (kontact), signal: Segmentation fault [Current thread is 1 (Thread 0x7fa45c39b760 (LWP 12813))] Thread 2 (Thread 0x7fa444c3b700 (LWP 12816)): #0 pthread_cond_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162 #1 0x00007fa458df288d in WTF::TCMalloc_PageHeap::scavengerThread (this=<value optimized out>) at wtf/FastMalloc.cpp:2378 #2 0x00007fa458df2999 in WTF::TCMalloc_PageHeap::runScavengerThread (context=0x7fa4595a6f34) at wtf/FastMalloc.cpp:1497 #3 0x00007fa454791c1a in start_thread (arg=<value optimized out>) at pthread_create.c:301 #4 0x00007fa4598e6eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115 Thread 1 (Thread 0x7fa45c39b760 (LWP 12813)): [KCrash Handler] #6 0x00007fa45b712d13 in QHash<QPersistentModelIndex, int>::findNode (this=0x33daee0, akey=..., ahp=0x0) at /usr/include/qt4/QtCore/qhash.h:885 #7 0x00007fa45b712e38 in QHash<QPersistentModelIndex, int>::remove (this=0x33daee0, akey=...) at /usr/include/qt4/QtCore/qhash.h:789 #8 0x00007fa45b731bea in eraseRight (this=0x33dae90, start=<value optimized out>, end=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.6.3-r2/work/kdelibs-4.6.3/kdeui/itemviews/kbihash_p.h:216 #9 KSelectionProxyModelPrivate::removeFirstChildMappings (this=0x33dae90, start=<value optimized out>, end=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.6.3-r2/work/kdelibs-4.6.3/kdeui/itemviews/kselectionproxymodel.cpp:1538 #10 0x00007fa45b738550 in KSelectionProxyModelPrivate::endRemoveRows (this=0x33dae90, sourceParent=<value optimized out>, proxyStart=<value optimized out>, proxyEnd=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.6.3-r2/work/kdelibs-4.6.3/kdeui/itemviews/kselectionproxymodel.cpp:1176 #11 0x00007fa45b7386cd in KSelectionProxyModelPrivate::sourceRowsRemoved (this=0x33dae90, parent=..., start=176, end=<value optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.6.3-r2/work/kdelibs-4.6.3/kdeui/itemviews/kselectionproxymodel.cpp:1209 #12 0x00007fa45b73f0fe in KSelectionProxyModel::qt_metacall (this=0x33dad60, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff609e79a0) at /var/tmp/portage/kde-base/kdelibs-4.6.3-r2/work/kdelibs-4.6.3_build/kdeui/moc_kselectionproxymodel.cpp:126 #13 0x00007fa45a013a1f in QMetaObject::activate (sender=0x3395e20, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x27fd850) at kernel/qobject.cpp:3278 #14 0x00007fa45a05e724 in QAbstractItemModel::rowsRemoved (this=0x33daee0, _t1=<value optimized out>, _t2=176, _t3=176) at .moc/release-shared/moc_qabstractitemmodel.cpp:195 #15 0x00007fa459ff5817 in QAbstractItemModel::endRemoveRows (this=0x3395e20) at kernel/qabstractitemmodel.cpp:2466 #16 0x00007fa456bd8252 in Akonadi::EntityTreeModelPrivate::monitoredItemRemoved (this=<value optimized out>, item=...) at /var/tmp/portage/kde-base/kdepimlibs-4.6.3/work/kdepimlibs-4.6.3/akonadi/entitytreemodel_p.cpp:930 #17 0x00007fa456bccc14 in Akonadi::EntityTreeModel::qt_metacall (this=0x3395e20, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff609e7c80) at /var/tmp/portage/kde-base/kdepimlibs-4.6.3/work/kdepimlibs-4.6.3_build/akonadi/entitytreemodel.moc:158 #18 0x00007fa45a013a1f in QMetaObject::activate (sender=0x33947b0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x27fd850) at kernel/qobject.cpp:3278 #19 0x00007fa456c20615 in Akonadi::Monitor::itemRemoved (this=0x33daee0, _t1=<value optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.6.3/work/kdepimlibs-4.6.3_build/akonadi/monitor.moc:190 #20 0x00007fa456c23584 in Akonadi::MonitorPrivate::emitItemNotification (this=0x33947d0, msg=..., item=<value optimized out>, collection=<value optimized out>, collectionDest=<value optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.6.3/work/kdepimlibs-4.6.3/akonadi/monitor_p.cpp:457 #21 0x00007fa456c24bc3 in Akonadi::MonitorPrivate::emitNotification (this=0x33947d0, msg=...) at /var/tmp/portage/kde-base/kdepimlibs-4.6.3/work/kdepimlibs-4.6.3/akonadi/monitor_p.cpp:270 #22 0x00007fa456b89921 in Akonadi::ChangeRecorderPrivate::emitNotification(Akonadi::NotificationMessage const&) () from /usr/lib64/libakonadi-kde.so.4 #23 0x00007fa456c2408d in Akonadi::MonitorPrivate::dispatchNotifications (this=0x33947d0) at /var/tmp/portage/kde-base/kdepimlibs-4.6.3/work/kdepimlibs-4.6.3/akonadi/monitor_p.cpp:212 #24 0x00007fa456c26878 in Akonadi::MonitorPrivate::slotNotify (this=0x33947d0, msgs=...) at /var/tmp/portage/kde-base/kdepimlibs-4.6.3/work/kdepimlibs-4.6.3/akonadi/monitor_p.cpp:378 #25 0x00007fa456b8cb82 in Akonadi::ChangeRecorderPrivate::slotNotify(QList<Akonadi::NotificationMessage> const&) () from /usr/lib64/libakonadi-kde.so.4 #26 0x00007fa456c209d5 in Akonadi::Monitor::qt_metacall (this=0x33947b0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff609e82c0) at /var/tmp/portage/kde-base/kdepimlibs-4.6.3/work/kdepimlibs-4.6.3_build/akonadi/monitor.moc:155 #27 0x00007fa456b89608 in Akonadi::ChangeRecorder::qt_metacall (this=0x33daee0, _c=41932880, _id=9, _a=0x27fd850) at /var/tmp/portage/kde-base/kdepimlibs-4.6.3/work/kdepimlibs-4.6.3_build/akonadi/changerecorder.moc:72 #28 0x00007fa45a013a1f in QMetaObject::activate (sender=0x3395490, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x27fd850) at kernel/qobject.cpp:3278 #29 0x00007fa456c94f82 in OrgFreedesktopAkonadiNotificationSourceInterface::notify (this=0x33daee0, _t1=<value optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.6.3/work/kdepimlibs-4.6.3_build/akonadi/notificationsourceinterface.moc:91 #30 0x00007fa456c950b6 in OrgFreedesktopAkonadiNotificationSourceInterface::qt_metacall (this=0x3395490, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0x7fff609e83d0) at /var/tmp/portage/kde-base/kdepimlibs-4.6.3/work/kdepimlibs-4.6.3_build/akonadi/notificationsourceinterface.moc:77 #31 0x00007fa456f3c8d9 in ?? () from /usr/lib64/qt4/libQtDBus.so.4 #32 0x00007fa456f4660f in ?? () from /usr/lib64/qt4/libQtDBus.so.4 #33 0x00007fa45a00dace in QObject::event (this=0x3395490, e=0x33daee0) at kernel/qobject.cpp:1217 #34 0x00007fa45a9f58dc in QApplicationPrivate::notify_helper (this=0x17e9ea0, receiver=0x3395490, e=0x550a3b0) at kernel/qapplication.cpp:4462 #35 0x00007fa45a9fad7d in QApplication::notify (this=0x7fff609e9080, receiver=0x3395490, e=0x550a3b0) at kernel/qapplication.cpp:4341 #36 0x00007fa45b74f276 in KApplication::notify (this=0x7fff609e9080, receiver=0x3395490, event=0x550a3b0) at /var/tmp/portage/kde-base/kdelibs-4.6.3-r2/work/kdelibs-4.6.3/kdeui/kernel/kapplication.cpp:311 #37 0x00007fa459ffbd3b in QCoreApplication::notifyInternal (this=0x7fff609e9080, receiver=0x3395490, event=0x550a3b0) at kernel/qcoreapplication.cpp:731 #38 0x00007fa459ffecc1 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x17c1380) at kernel/qcoreapplication.h:215 #39 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x17c1380) at kernel/qcoreapplication.cpp:1372 #40 0x00007fa45a0282e3 in sendPostedEvents (s=0x17ebdc0) at kernel/qcoreapplication.h:220 #41 postEventSourceDispatch (s=0x17ebdc0) at kernel/qeventdispatcher_glib.cpp:277 #42 0x00007fa454238fa1 in g_main_dispatch (context=0x17ebce0) at gmain.c:2440 #43 g_main_context_dispatch (context=0x17ebce0) at gmain.c:3013 #44 0x00007fa45423d638 in g_main_context_iterate (context=0x17ebce0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:3091 #45 0x00007fa45423d7ec in g_main_context_iteration (context=0x17ebce0, may_block=1) at gmain.c:3154 #46 0x00007fa45a027e23 in QEventDispatcherGlib::processEvents (this=0x17c0f80, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422 #47 0x00007fa45aaa7cbe in QGuiEventDispatcherGlib::processEvents (this=0x33daee0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204 #48 0x00007fa459ffaa92 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149 #49 0x00007fa459ffae74 in QEventLoop::exec (this=0x7fff609e8fc0, flags=) at kernel/qeventloop.cpp:201 #50 0x00007fa459ffeeeb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008 #51 0x0000000000404149 in main (argc=<value optimized out>, argv=<value optimized out>) at /var/tmp/portage/kde-base/kontact-4.6.0/work/kontact-4.6.0/kontact/src/main.cpp:218 As a first approximation it looks like an issue in libakonadi, could be in the selection proxy model though. Upgraded to: * Zanshin 0.2_beta2 * KDE 4.7.0 * KDEPIM 4.7.0 (of course) * akonadi-server 1.6.0 ...and now the bug seems to be gone. I'm resolving it as FIXED and will reopen it if I manage to somehow trigger it. Possible related bugs: bug 291829, bug 276451 |