Version: unspecified (using Devel) OS: Linux On deleting an collection which was contained in a FavoriteCollectionsModel (which has an EntityTreeModel as its source model), KAlarm crashes every time. Using the latest git master sources. Application: KAlarm (kalarm), signal: Aborted [KCrash Handler] #6 0xb76fd424 in __kernel_vsyscall () #7 0xb4be8640 in raise () from /lib/i686/cmov/libc.so.6 #8 0xb4bea018 in abort () from /lib/i686/cmov/libc.so.6 #9 0xb4ec7b08 in qt_message_output (msgType=QtFatalMsg, buf=0x8f7d200 "ASSERT: \"refCountMap.contains( id )\" in file /home/david/src/git/kdepimlibs/akonadi/monitor_p.cpp, line 603") at global/qglobal.cpp:2259 #10 0xb4ec7d13 in qt_message (msgType=QtFatalMsg, msg=0xb5090a14 "ASSERT: \"%s\" in file %s, line %d", ap=0xbfc009f4 "\221�2�\\�2�[\002") at global/qglobal.cpp:2305 #11 0xb4ec7d81 in qFatal (msg=0xb5090a14 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2488 #12 0xb4ec7fd6 in qt_assert (assertion=0xb732ac91 "refCountMap.contains( id )", file=0xb732ac5c "/home/david/src/git/kdepimlibs/akonadi/monitor_p.cpp", line=603) at global/qglobal.cpp:2004 #13 0xb727a6ec in Akonadi::MonitorPrivate::deref (this=0x8bbefd8, id=23) at /home/david/src/git/kdepimlibs/akonadi/monitor_p.cpp:603 #14 0xb721d173 in Akonadi::EntityTreeModelPrivate::deref (this=0x8c3c398, id=23) at /home/david/src/git/kdepimlibs/akonadi/entitytreemodel_p.cpp:1432 #15 0xb721418f in Akonadi::EntityTreeModel::setData (this=0x8c39748, index=@0xbfc00ee0, value=@0xbfc00cdc, role=53) at /home/david/src/git/kdepimlibs/akonadi/entitytreemodel.cpp:737 #16 0x081d6a9d in AkonadiModel::setData (this=0x8c39748, index=@0xbfc00ee0, value=@0xbfc00cdc, role=53) at /home/david/src/git/kdepim/kalarm/akonadimodel.cpp:555 #17 0xb72a1df6 in Akonadi::SelectionProxyModelPrivate::rootIndexAboutToBeRemoved (this=0x8c57598, removedRootIndex=@0xbfc00ee0) at /home/david/src/git/kdepimlibs/akonadi/selectionproxymodel.cpp:59 #18 0xb72a17cc in Akonadi::SelectionProxyModel::qt_metacall (this=0x8c543b8, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfc00e7c) at /home/david/src/git/obj/kdepimlibs/akonadi/selectionproxymodel.moc:76 #19 0xb7236606 in Akonadi::FavoriteCollectionsModel::qt_metacall (this=0x8c543b8, _c=QMetaObject::InvokeMetaMethod, _id=43, _a=0xbfc00e7c) at /home/david/src/git/obj/kdepimlibs/akonadi/favoritecollectionsmodel.moc:79 #20 0x081e1fcc in CollectionControlModel::qt_metacall (this=0x8c543b8, _c=QMetaObject::InvokeMetaMethod, _id=43, _a=0xbfc00e7c) at /home/david/src/git/obj/kdepim/kalarm/moc_collectionmodel.cpp:282 #21 0xb500c9cb in QMetaObject::metacall (object=0x8c543b8, cl=QMetaObject::InvokeMetaMethod, idx=43, argv=0xbfc00e7c) at kernel/qmetaobject.cpp:237 #22 0xb5022201 in QMetaObject::activate (sender=0x8c543b8, m=0xb68016a4, local_signal_index=0, argv=0xbfc00e7c) at kernel/qobject.cpp:3280 #23 0xb65e0dc0 in KSelectionProxyModel::rootIndexAboutToBeRemoved (this=0x8c543b8, _t1=@0xbfc00ee0) at /home/david/src/git/obj/kdelibs/kdeui/moc_kselectionproxymodel.cpp:147 #24 0xb65e7e99 in KSelectionProxyModelPrivate::removeRangeFromProxy (this=0x8dde8f8, range=@0xbfc01094) at /home/david/src/git/kdelibs/kdeui/itemviews/kselectionproxymodel.cpp:1700 #25 0xb65e828a in KSelectionProxyModelPrivate::removeSelectionFromProxy (this=0x8dde8f8, selection=@0xbfc01158) at /home/david/src/git/kdelibs/kdeui/itemviews/kselectionproxymodel.cpp:1591 #26 0xb65eae3b in KSelectionProxyModelPrivate::selectionChanged (this=0x8dde8f8, _selected=@0xbfc01634, _deselected=@0xbfc01464) at /home/david/src/git/kdelibs/kdeui/itemviews/kselectionproxymodel.cpp:1836 #27 0xb65ebea2 in KSelectionProxyModel::qt_metacall (this=0x8c543b8, _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0xbfc013a8) at /home/david/src/git/obj/kdelibs/kdeui/moc_kselectionproxymodel.cpp:134 #28 0xb72a175d in Akonadi::SelectionProxyModel::qt_metacall (this=0x8c543b8, _c=QMetaObject::InvokeMetaMethod, _id=40, _a=0xbfc013a8) at /home/david/src/git/obj/kdepimlibs/akonadi/selectionproxymodel.moc:70 #29 0xb7236606 in Akonadi::FavoriteCollectionsModel::qt_metacall (this=0x8c543b8, _c=QMetaObject::InvokeMetaMethod, _id=40, _a=0xbfc013a8) at /home/david/src/git/obj/kdepimlibs/akonadi/favoritecollectionsmodel.moc:79 #30 0x081e1fcc in CollectionControlModel::qt_metacall (this=0x8c543b8, _c=QMetaObject::InvokeMetaMethod, _id=40, _a=0xbfc013a8) at /home/david/src/git/obj/kdepim/kalarm/moc_collectionmodel.cpp:282 #31 0xb500c9cb in QMetaObject::metacall (object=0x8c543b8, cl=QMetaObject::InvokeMetaMethod, idx=40, argv=0xbfc013a8) at kernel/qmetaobject.cpp:237 #32 0xb5022201 in QMetaObject::activate (sender=0x8c4c808, m=0xb6359010, local_signal_index=0, argv=0xbfc013a8) at kernel/qobject.cpp:3280 #33 0xb5f67409 in QItemSelectionModel::selectionChanged (this=0x8c4c808, _t1=@0xbfc01634, _t2=@0xbfc01464) at .moc/debug-shared/moc_qitemselectionmodel.cpp:152 #34 0xb5f6f7be in QItemSelectionModelPrivate::_q_rowsAboutToBeRemoved (this=0x8dc84e8, parent=@0xbfc01860, start=0, end=0) at itemviews/qitemselectionmodel.cpp:671 #35 0xb5f70794 in QItemSelectionModel::qt_metacall (this=0x8c4c808, _c=QMetaObject::InvokeMetaMethod, _id=11, _a=0xbfc017a4) at .moc/debug-shared/moc_qitemselectionmodel.cpp:136 #36 0xb500c9cb in QMetaObject::metacall (object=0x8c4c808, cl=QMetaObject::InvokeMetaMethod, idx=15, argv=0xbfc017a4) at kernel/qmetaobject.cpp:237 #37 0xb5022201 in QMetaObject::activate (sender=0x8c39748, m=0xb51705f8, local_signal_index=6, argv=0xbfc017a4) at kernel/qobject.cpp:3280 #38 0xb508bede in QAbstractItemModel::rowsAboutToBeRemoved (this=0x8c39748, _t1=@0xbfc01860, _t2=0, _t3=0) at .moc/debug-shared/moc_qabstractitemmodel.cpp:188 #39 0xb4ff54c0 in QAbstractItemModel::beginRemoveRows (this=0x8c39748, parent=@0xbfc01860, first=0, last=0) at kernel/qabstractitemmodel.cpp:2450 #40 0xb7221477 in Akonadi::EntityTreeModelPrivate::monitoredCollectionRemoved (this=0x8c3c398, collection=@0xbfc01ac8) at /home/david/src/git/kdepimlibs/akonadi/entitytreemodel_p.cpp:778 #41 0xb72120b1 in Akonadi::EntityTreeModel::qt_metacall (this=0x8c39748, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0xbfc01a4c) at /home/david/src/git/obj/kdepimlibs/akonadi/entitytreemodel.moc:157 #42 0x08082d76 in AkonadiModel::qt_metacall (this=0x8c39748, _c=QMetaObject::InvokeMetaMethod, _id=43, _a=0xbfc01a4c) at /home/david/src/git/obj/kdepim/kalarm/moc_akonadimodel.cpp:122 #43 0xb500c9cb in QMetaObject::metacall (object=0x8c39748, cl=QMetaObject::InvokeMetaMethod, idx=43, argv=0xbfc01a4c) at kernel/qmetaobject.cpp:237 #44 0xb5022201 in QMetaObject::activate (sender=0x8c0c198, m=0xb73a66d4, local_signal_index=10, argv=0xbfc01a4c) at kernel/qobject.cpp:3280 #45 0xb7278848 in Akonadi::Monitor::collectionRemoved (this=0x8c0c198, _t1=@0xbfc01ac8) at /home/david/src/git/obj/kdepimlibs/akonadi/monitor.moc:239 #46 0xb727b94b in Akonadi::MonitorPrivate::emitCollectionNotification (this=0x8bbefd8, msg=@0xbfc01c98, col=@0xbfc01b78, par=@0xbfc01b80, dest=@0xbfc01b7c) at /home/david/src/git/kdepimlibs/akonadi/monitor_p.cpp:539 #47 0xb727e2c8 in Akonadi::MonitorPrivate::emitNotification (this=0x8bbefd8, msg=@0xbfc01c98) at /home/david/src/git/kdepimlibs/akonadi/monitor_p.cpp:267 #48 0xb71c54c5 in Akonadi::ChangeRecorderPrivate::emitNotification (this=0x8bbefd8, msg=@0xbfc01c98) at /home/david/src/git/kdepimlibs/akonadi/changerecorder_p.h:60 #49 0xb727d7ee in Akonadi::MonitorPrivate::dispatchNotifications (this=0x8bbefd8) at /home/david/src/git/kdepimlibs/akonadi/monitor_p.cpp:212 #50 0xb727dfed in Akonadi::MonitorPrivate::slotNotify (this=0x8bbefd8, msgs=@0x8d78480) at /home/david/src/git/kdepimlibs/akonadi/monitor_p.cpp:378 #51 0xb71c540b in Akonadi::ChangeRecorderPrivate::slotNotify (this=0x8bbefd8, msgs=@0x8d78480) at /home/david/src/git/kdepimlibs/akonadi/changerecorder_p.h:51 #52 0xb7278fe9 in Akonadi::Monitor::qt_metacall (this=0x8c0c198, _c=QMetaObject::InvokeMetaMethod, _id=22, _a=0xbfc01e8c) at /home/david/src/git/obj/kdepimlibs/akonadi/monitor.moc:155 #53 0xb71c1006 in Akonadi::ChangeRecorder::qt_metacall (this=0x8c0c198, _c=QMetaObject::InvokeMetaMethod, _id=26, _a=0xbfc01e8c) at /home/david/src/git/obj/kdepimlibs/akonadi/changerecorder.moc:72 #54 0xb500c9cb in QMetaObject::metacall (object=0x8c0c198, cl=QMetaObject::InvokeMetaMethod, idx=26, argv=0xbfc01e8c) at kernel/qmetaobject.cpp:237 #55 0xb5022201 in QMetaObject::activate (sender=0x8c2a5a0, m=0xb73a8584, local_signal_index=0, argv=0xbfc01e8c) at kernel/qobject.cpp:3280 #56 0xb7306ca2 in OrgFreedesktopAkonadiNotificationSourceInterface::notify (this=0x8c2a5a0, _t1=@0x8d78480) at /home/david/src/git/obj/kdepimlibs/akonadi/notificationsourceinterface.moc:91 #57 0xb7306d25 in OrgFreedesktopAkonadiNotificationSourceInterface::qt_metacall (this=0x8c2a5a0, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfc01f40) at /home/david/src/git/obj/kdepimlibs/akonadi/notificationsourceinterface.moc:77 #58 0xb519490a in QDBusConnectionPrivate::deliverCall (this=0x8b1b828, object=0x8c2a5a0, msg=@0x8d1c1a4, metaTypes=@0x8d1c1a8, slotIdx=5) at qdbusintegrator.cpp:919 #59 0xb51a81e0 in QDBusCallDeliveryEvent::placeMetaCall (this=0x8d1c178, object=0x8c2a5a0) at qdbusintegrator_p.h:103 #60 0xb501f25d in QObject::event (this=0x8c2a5a0, e=0x8d1c178) at kernel/qobject.cpp:1219 #61 0xb57f207a in QApplicationPrivate::notify_helper (this=0x8b2dde8, receiver=0x8c2a5a0, e=0x8d1c178) at kernel/qapplication.cpp:4397 #62 0xb57f24ec in QApplication::notify (this=0x8b2e010, receiver=0x8c2a5a0, e=0x8d1c178) at kernel/qapplication.cpp:3799 #63 0xb66020ef in KApplication::notify (this=0x8b2e010, receiver=0x8c2a5a0, event=0x8d1c178) at /home/david/src/git/kdelibs/kdeui/kernel/kapplication.cpp:311 #64 0xb5004a62 in QCoreApplication::notifyInternal (this=0x8b2e010, receiver=0x8c2a5a0, event=0x8d1c178) at kernel/qcoreapplication.cpp:732 #65 0xb57eee21 in QCoreApplication::sendEvent (receiver=0x8c2a5a0, event=0x8d1c178) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215 #66 0xb5004fec in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8b00e98) at kernel/qcoreapplication.cpp:1373 #67 0xb5005281 in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1266 #68 0xb58dd5a6 in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220 #69 0xb5042259 in postEventSourceDispatch (s=0x8b2e098) at kernel/qeventdispatcher_glib.cpp:277 #70 0xb44dc1d8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 #71 0xb44df873 in ?? () from /usr/lib/libglib-2.0.so.0 #72 0x08b38440 in ?? () #73 0x00000000 in ?? () Reproducible: Always Steps to Reproduce: Using KAlarm built with Akonadi resources, add any calendar. The calendar should be enabled (ticked in the calendars list). Remove it using the Remove button in KAlarm.
*** Bug 264834 has been marked as a duplicate of this bug. ***
I haven't seen this crash for quite some time now, so marking as fixed.