Bug 273643

Summary: KOrganizer crashes on category selection for TO-DOs
Product: [Applications] kontact Reporter: Christoph Herrmann <csherrmann>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 4.6 beta4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christoph Herrmann 2011-05-19 14:55:57 UTC
Application: kontact (4.6 beta4)
KDE Platform Version: 4.6.3 (4.6.3)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-9-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
When I edit a To-Do that has not been in a category before, it is saved in that category, but KOrganizer crashes before I can see it again. 

Same goes for adding a new To-Do and putting it in a category right away

If the item has been in a category before, changing the category does not lead to a crash 

If it is of relevance, I use a citadel GroupDAV calendar/task resource.

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f63b7fd87a0 (LWP 2596))]

Thread 3 (Thread 0x7f639ecdb700 (LWP 2597)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f63b4a27832 in ?? () from /usr/lib/libQtWebKit.so.4
#2  0x00007f63b048ed8c in start_thread (arg=0x7f639ecdb700) at pthread_create.c:304
#3  0x00007f63b55ab04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f6393fb8700 (LWP 2604)):
#0  0x00007f63b559df03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=<value optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f63affc3104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f63affc3639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f63b5ce5446 in QEventDispatcherGlib::processEvents (this=0x29c6f00, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007f63b5cb9882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f63b5cb9abc in QEventLoop::exec (this=0x7f6393fb7db0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007f63b5bd0924 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:492
#7  0x00007f63b5c9bc2f in QInotifyFileSystemWatcherEngine::run (this=0x31e2240) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f63b5bd3175 in QThreadPrivate::start (arg=0x31e2240) at thread/qthread_unix.cpp:320
#9  0x00007f63b048ed8c in start_thread (arg=0x7f6393fb8700) at pthread_create.c:304
#10 0x00007f63b55ab04d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f63b7fd87a0 (LWP 2596)):
[KCrash Handler]
#6  QModelIndex (this=0x3a9bbe0, row=0, column=0) at /usr/include/qt4/QtCore/qabstractitemmodel.h:65
#7  KSelectionProxyModelPrivate::mapTopLevelToSource (this=0x3a9bbe0, row=0, column=0) at ../../kdeui/itemviews/kselectionproxymodel.cpp:1595
#8  0x00007f63b7381a6f in KSelectionProxyModel::mapToSource (this=0x3a9bab0, proxyIndex=...) at ../../kdeui/itemviews/kselectionproxymodel.cpp:2123
#9  0x00007f63b737ce5f in KSelectionProxyModel::data (this=0x3a9bab0, index=..., role=35) at ../../kdeui/itemviews/kselectionproxymodel.cpp:2227
#10 0x00007f63b275aca8 in data (this=<value optimized out>, sourceRow=<value optimized out>, sourceParent=...) at /usr/include/qt4/QtCore/qabstractitemmodel.h:398
#11 Akonadi::EntityMimeTypeFilterModel::filterAcceptsRow (this=<value optimized out>, sourceRow=<value optimized out>, sourceParent=...) at ../../akonadi/entitymimetypefiltermodel.cpp:106
#12 0x00007f63b6c156e1 in QSortFilterProxyModelPrivate::source_items_inserted (this=0x3a9c370, source_parent=..., start=<value optimized out>, end=1, orient=Qt::Vertical) at itemviews/qsortfilterproxymodel.cpp:767
#13 0x00007f63b6c15a5f in QSortFilterProxyModelPrivate::_q_sourceRowsInserted (this=0x3a9c370, source_parent=<value optimized out>, start=<value optimized out>, end=<value optimized out>) at itemviews/qsortfilterproxymodel.cpp:1278
#14 0x00007f63b6c178ec in QSortFilterProxyModel::qt_metacall (this=0x3a9c350, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7fff2e0ecea0) at .moc/release-shared/moc_qsortfilterproxymodel.cpp:135
#15 0x00007f63b5ccf5f8 in QMetaObject::activate (sender=0x3a9bab0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff2e0ecea0) at kernel/qobject.cpp:3287
#16 0x00007f63b5d15f34 in QAbstractItemModel::rowsInserted (this=<value optimized out>, _t1=<value optimized out>, _t2=0, _t3=1) at .moc/release-shared/moc_qabstractitemmodel.cpp:181
#17 0x00007f63b5cb54e8 in QAbstractItemModel::endInsertRows (this=0x3a9bab0) at kernel/qabstractitemmodel.cpp:2412
#18 0x00007f63b73877d8 in KSelectionProxyModelPrivate::insertSelectionIntoProxy (this=0x3a9bbe0, selection=...) at ../../kdeui/itemviews/kselectionproxymodel.cpp:1935
#19 0x00007f63b7388447 in KSelectionProxyModelPrivate::selectionChanged (this=0x3a9bbe0, _selected=<value optimized out>, _deselected=<value optimized out>) at ../../kdeui/itemviews/kselectionproxymodel.cpp:1869
#20 0x00007f63b7389d6e in KSelectionProxyModel::qt_metacall (this=0x3a9bab0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff2e0ed4b0) at ./moc_kselectionproxymodel.cpp:134
#21 0x00007f63b5ccf5f8 in QMetaObject::activate (sender=0x3a63af0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff2e0ed4b0) at kernel/qobject.cpp:3287
#22 0x00007f63b6be0407 in QItemSelectionModel::selectionChanged (this=<value optimized out>, _t1=<value optimized out>, _t2=<value optimized out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:152
#23 0x00007f63b6be6b60 in QItemSelectionModel::emitSelectionChanged (this=0x3a63af0, newSelection=<value optimized out>, oldSelection=<value optimized out>) at itemviews/qitemselectionmodel.cpp:1594
#24 0x00007f63b6be734f in QItemSelectionModel::select (this=0x3a63af0, selection=<value optimized out>, command=...) at itemviews/qitemselectionmodel.cpp:1101
#25 0x00007f63b6be233a in QItemSelectionModel::select (this=0x3a63af0, index=<value optimized out>, command=...) at itemviews/qitemselectionmodel.cpp:976
#26 0x00007f63b7366ac5 in KViewStateSaverPrivate::restoreSelection (this=0x51eddb0) at ../../kdeui/itemviews/kviewstatesaver.cpp:343
#27 0x00007f63b73672dc in KViewStateSaver::restoreSelection (this=<value optimized out>, indexStrings=<value optimized out>) at ../../kdeui/itemviews/kviewstatesaver.cpp:362
#28 0x00007f63b7367418 in KViewStateSaverPrivate::processPendingChanges (this=0x51eddb0) at ../../kdeui/itemviews/kviewstatesaver.cpp:188
#29 0x00007f63b736796c in KViewStateSaver::restoreState (this=<value optimized out>, configGroup=<value optimized out>) at ../../kdeui/itemviews/kviewstatesaver.cpp:207
#30 0x00007f6390be3609 in Future::KViewStateMaintainer<Akonadi::ETMViewStateSaver>::restoreState() () from /usr/lib/libkorganizerprivate.so.4
#31 0x00007f6390bcf7a1 in ActionManager::restoreCollectionViewSetting (this=0x3a4bb50) at ../../korganizer/actionmanager.cpp:868
#32 0x00007f6390be27a3 in ActionManager::qt_metacall (this=0x3a4bb50, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff2e0ed9e0) at ./actionmanager.moc:279
#33 0x00007f63b5ccf5f8 in QMetaObject::activate (sender=0x3a63b20, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3287
#34 0x00007f6390bf80c5 in rowsInserted (this=0x3a63b20, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff2e0edb20) at ../../korganizer/akonadicollectionview.cpp:456
#35 AkonadiCollectionView::qt_metacall (this=0x3a63b20, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff2e0edb20) at ./akonadicollectionview.moc:103
#36 0x00007f63b5ccf5f8 in QMetaObject::activate (sender=0x3a73270, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff2e0edb20) at kernel/qobject.cpp:3287
#37 0x00007f63b5d15f34 in QAbstractItemModel::rowsInserted (this=<value optimized out>, _t1=<value optimized out>, _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:181
#38 0x00007f63b5cb54e8 in QAbstractItemModel::endInsertRows (this=0x3a73270) at kernel/qabstractitemmodel.cpp:2412
#39 0x00007f63b6c11c59 in QSortFilterProxyModelPrivate::insert_source_items (this=0x3a734d0, source_to_proxy=..., proxy_to_source=..., source_items=<value optimized out>, source_parent=<value optimized out>, orient=Qt::Vertical, emit_signal=true) at itemviews/qsortfilterproxymodel.cpp:693
#40 0x00007f63b6c15673 in QSortFilterProxyModelPrivate::source_items_inserted (this=0x3a734d0, source_parent=..., start=<value optimized out>, end=<value optimized out>, orient=Qt::Vertical) at itemviews/qsortfilterproxymodel.cpp:804
#41 0x00007f63b6c15a5f in QSortFilterProxyModelPrivate::_q_sourceRowsInserted (this=0x3a734d0, source_parent=<value optimized out>, start=<value optimized out>, end=<value optimized out>) at itemviews/qsortfilterproxymodel.cpp:1278
#42 0x00007f63b6c178ec in QSortFilterProxyModel::qt_metacall (this=0x3a73270, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7fff2e0ede60) at .moc/release-shared/moc_qsortfilterproxymodel.cpp:135
#43 0x00007f63b5ccf5f8 in QMetaObject::activate (sender=0x3987450, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff2e0ede60) at kernel/qobject.cpp:3287
#44 0x00007f63b5d15f34 in QAbstractItemModel::rowsInserted (this=<value optimized out>, _t1=<value optimized out>, _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:181
#45 0x00007f63b5cb54e8 in QAbstractItemModel::endInsertRows (this=0x3987450) at kernel/qabstractitemmodel.cpp:2412
#46 0x00007f639c4f07da in _k_sourceRowsInserted (this=0x3987450, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff2e0ee000) at ../../akonadi_next/kidentityproxymodel.cpp:734
#47 Future::KIdentityProxyModel::qt_metacall (this=0x3987450, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff2e0ee000) at ./kidentityproxymodel.moc:118
#48 0x00007f639c4ed2e0 in Future::KCheckableProxyModel::qt_metacall (this=0x3c0a978, _c=QMetaObject::WriteProperty, _id=161, _a=0x3c0a980) at ./kcheckableproxymodel.moc:70
#49 0x00007f63b5ccf5f8 in QMetaObject::activate (sender=0x3a64b60, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff2e0ee000) at kernel/qobject.cpp:3287
#50 0x00007f63b5d15f34 in QAbstractItemModel::rowsInserted (this=<value optimized out>, _t1=<value optimized out>, _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:181
#51 0x00007f63b5cb54e8 in QAbstractItemModel::endInsertRows (this=0x3a64b60) at kernel/qabstractitemmodel.cpp:2412
#52 0x00007f63b6c11c59 in QSortFilterProxyModelPrivate::insert_source_items (this=0x3a66f70, source_to_proxy=..., proxy_to_source=..., source_items=<value optimized out>, source_parent=<value optimized out>, orient=Qt::Vertical, emit_signal=true) at itemviews/qsortfilterproxymodel.cpp:693
#53 0x00007f63b6c15673 in QSortFilterProxyModelPrivate::source_items_inserted (this=0x3a66f70, source_parent=..., start=<value optimized out>, end=<value optimized out>, orient=Qt::Vertical) at itemviews/qsortfilterproxymodel.cpp:804
#54 0x00007f63b6c15a5f in QSortFilterProxyModelPrivate::_q_sourceRowsInserted (this=0x3a66f70, source_parent=<value optimized out>, start=<value optimized out>, end=<value optimized out>) at itemviews/qsortfilterproxymodel.cpp:1278
#55 0x00007f63b6c178ec in QSortFilterProxyModel::qt_metacall (this=0x3a64b60, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7fff2e0ee340) at .moc/release-shared/moc_qsortfilterproxymodel.cpp:135
#56 0x00007f63b5ccf5f8 in QMetaObject::activate (sender=0x3a64090, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff2e0ee340) at kernel/qobject.cpp:3287
#57 0x00007f63b5d15f34 in QAbstractItemModel::rowsInserted (this=<value optimized out>, _t1=<value optimized out>, _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:181
#58 0x00007f63b5cb54e8 in QAbstractItemModel::endInsertRows (this=0x3a64090) at kernel/qabstractitemmodel.cpp:2412
#59 0x00007f63b6c11c59 in QSortFilterProxyModelPrivate::insert_source_items (this=0x3a66a60, source_to_proxy=..., proxy_to_source=..., source_items=<value optimized out>, source_parent=<value optimized out>, orient=Qt::Vertical, emit_signal=true) at itemviews/qsortfilterproxymodel.cpp:693
#60 0x00007f63b6c15673 in QSortFilterProxyModelPrivate::source_items_inserted (this=0x3a66a60, source_parent=..., start=<value optimized out>, end=<value optimized out>, orient=Qt::Vertical) at itemviews/qsortfilterproxymodel.cpp:804
#61 0x00007f63b6c15a5f in QSortFilterProxyModelPrivate::_q_sourceRowsInserted (this=0x3a66a60, source_parent=<value optimized out>, start=<value optimized out>, end=<value optimized out>) at itemviews/qsortfilterproxymodel.cpp:1278
#62 0x00007f63b6c178ec in QSortFilterProxyModel::qt_metacall (this=0x3a64090, _c=QMetaObject::InvokeMetaMethod, _id=12, _a=0x7fff2e0ee680) at .moc/release-shared/moc_qsortfilterproxymodel.cpp:135
#63 0x00007f63b5ccf5f8 in QMetaObject::activate (sender=0x3a65d40, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff2e0ee680) at kernel/qobject.cpp:3287
#64 0x00007f63b5d15f34 in QAbstractItemModel::rowsInserted (this=<value optimized out>, _t1=<value optimized out>, _t2=0, _t3=0) at .moc/release-shared/moc_qabstractitemmodel.cpp:181
#65 0x00007f63b5cb54e8 in QAbstractItemModel::endInsertRows (this=0x3a65d40) at kernel/qabstractitemmodel.cpp:2412
#66 0x00007f63b276f313 in Akonadi::EntityTreeModelPrivate::monitoredItemLinked (this=0x3a66360, item=..., collection=...) at ../../akonadi/entitytreemodel_p.cpp:1033
#67 0x00007f63b275ff85 in Akonadi::EntityTreeModel::qt_metacall (this=0x3a65d40, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff2e0ee8d0) at ./entitytreemodel.moc:161
#68 0x00007f63b5ccf5f8 in QMetaObject::activate (sender=0x39c2780, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff2e0ee8d0) at kernel/qobject.cpp:3287
#69 0x00007f63b27b09da in Akonadi::Monitor::itemLinked (this=<value optimized out>, _t1=<value optimized out>, _t2=<value optimized out>) at ./monitor.moc:197
#70 0x00007f63b27b45bc in Akonadi::MonitorPrivate::emitItemNotification (this=0x3a648c0, msg=..., item=<value optimized out>, collection=<value optimized out>, collectionDest=<value optimized out>) at ../../akonadi/monitor_p.cpp:462
#71 0x00007f63b27b607e in Akonadi::MonitorPrivate::emitNotification (this=0x3a648c0, msg=...) at ../../akonadi/monitor_p.cpp:270
#72 0x00007f63b2717511 in Akonadi::ChangeRecorderPrivate::emitNotification (this=0x3a648c0, msg=<value optimized out>) at ../../akonadi/changerecorder_p.h:60
#73 0x00007f63b27b751e in Akonadi::MonitorPrivate::dataAvailable (this=0x3a648c0) at ../../akonadi/monitor_p.cpp:287
#74 0x00007f63b27b0d75 in Akonadi::Monitor::qt_metacall (this=0x39c2780, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff2e0eee20) at ./monitor.moc:156
#75 0x00007f63b2717398 in Akonadi::ChangeRecorder::qt_metacall (this=0x39c2780, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=<value optimized out>) at ./changerecorder.moc:72
#76 0x00007f63b5ccf5f8 in QMetaObject::activate (sender=0x3a64920, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x0) at kernel/qobject.cpp:3287
#77 0x00007f63b271ac76 in Akonadi::EntityCache<Akonadi::Collection, Akonadi::CollectionFetchJob, Akonadi::CollectionFetchScope>::fetchResult (this=0x3a64920, job=<value optimized out>) at ../../akonadi/entitycache_p.h:189
#78 0x00007f63b2759503 in Akonadi::EntityCacheBase::qt_metacall (this=0x3a64920, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff2e0eeff0) at ./entitycache_p.moc:77
#79 0x00007f63b5ccf5f8 in QMetaObject::activate (sender=0x4b0c2c0, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff2e0eeff0) at kernel/qobject.cpp:3287
#80 0x00007f63b6126d32 in KJob::result (this=<value optimized out>, _t1=0x4b0c2c0) at ./kjob.moc:194
#81 0x00007f63b6126d70 in KJob::emitResult (this=0x4b0c2c0) at ../../kdecore/jobs/kjob.cpp:312
#82 0x00007f63b27a85fd in Akonadi::Job::qt_metacall (this=0x4b0c2c0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x4f96f20) at ./job.moc:91
#83 0x00007f63b2727415 in Akonadi::CollectionFetchJob::qt_metacall (this=0x4b0c2c0, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x4f96f20) at ./collectionfetchjob.moc:73
#84 0x00007f63b5cce49a in QObject::event (this=0x4b0c2c0, e=<value optimized out>) at kernel/qobject.cpp:1226
#85 0x00007f63b66799e4 in QApplicationPrivate::notify_helper (this=0x25e7760, receiver=0x4b0c2c0, e=0x51b0e00) at kernel/qapplication.cpp:4462
#86 0x00007f63b667e3aa in QApplication::notify (this=<value optimized out>, receiver=0x4b0c2c0, e=0x51b0e00) at kernel/qapplication.cpp:4341
#87 0x00007f63b7399196 in KApplication::notify (this=0x7fff2e0efa60, receiver=0x4b0c2c0, event=0x51b0e00) at ../../kdeui/kernel/kapplication.cpp:311
#88 0x00007f63b5cba49c in QCoreApplication::notifyInternal (this=0x7fff2e0efa60, receiver=0x4b0c2c0, event=0x51b0e00) at kernel/qcoreapplication.cpp:731
#89 0x00007f63b5cbdc25 in sendEvent (receiver=0x0, event_type=0, data=0x258bd40) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#90 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x258bd40) at kernel/qcoreapplication.cpp:1372
#91 0x00007f63b5ce5253 in sendPostedEvents (s=0x25e45c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#92 postEventSourceDispatch (s=0x25e45c0) at kernel/qeventdispatcher_glib.cpp:277
#93 0x00007f63affc2bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#94 0x00007f63affc33a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#95 0x00007f63affc3639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#96 0x00007f63b5ce53ef in QEventDispatcherGlib::processEvents (this=0x258b520, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#97 0x00007f63b6720dfe in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#98 0x00007f63b5cb9882 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#99 0x00007f63b5cb9abc in QEventLoop::exec (this=0x7fff2e0ef9b0, flags=...) at kernel/qeventloop.cpp:201
#100 0x00007f63b5cbdecb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#101 0x0000000000403bd3 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../../kontact/src/main.cpp:218

Possible duplicates by query: bug 272525, bug 272380, bug 271682, bug 262447.

Reported using DrKonqi
Comment 1 Christophe Marin 2011-05-19 15:04:11 UTC

*** This bug has been marked as a duplicate of bug 271682 ***