Bug 270817 - ASSERT: "m_collections.contains( collection.id() ) in plasma when reloading a remote calendar
Summary: ASSERT: "m_collections.contains( collection.id() ) in plasma when reloading a...
Status: RESOLVED WORKSFORME
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: GIT (master)
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-13 11:28 UTC by Christophe Marin
Modified: 2011-05-13 18:43 UTC (History)
2 users (show)

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 Christophe Marin 2011-04-13 11:28:52 UTC
Steps:
- in korganizer, add an ical resource pointing to this test calendar: https://www.google.com/calendar/ical/dh66sd7ipeov47g48q7nttd3hg%40group.calendar.google.com/public/basic.ics

- Enable it,
- RMB / Update calendar Folder

Backtrace
#5  0x00007ffff499ecca in qt_assert (assertion=0x16e2 <Address 0x16e2 out of bounds>, file=0x6 <Address 0x6 out of bounds>, line=-1) at global/qglobal.cpp:2027
#6  0x00007fffddd94299 in Akonadi::EntityTreeModelPrivate::monitoredItemRemoved (this=0x12ab740, item=...) at /kde/src/KDE/kdepimlibs/akonadi/entitytreemodel_p.cpp:1001
#7  0x00007fffddd8bebd in Akonadi::EntityTreeModel::qt_metacall (this=0xf61db0, _c=QMetaObject::InvokeMetaMethod, _id=25, _a=0x7fffffffa2e0)
    at /kde/build/KDE/kdepimlibs/akonadi/entitytreemodel.moc:163
#8  0x00007ffff4aa5a5f in QMetaObject::activate (sender=0x133d330, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffffffa2e0) at kernel/qobject.cpp:3278
#9  0x00007fffddddf79f in Akonadi::Monitor::itemRemoved (this=0x133d330, _t1=...) at /kde/build/KDE/kdepimlibs/akonadi/monitor.moc:190
#10 0x00007fffddde3241 in Akonadi::MonitorPrivate::emitItemNotification (this=0xeff6f0, msg=..., item=..., collection=..., collectionDest=...) at /kde/src/KDE/kdepimlibs/akonadi/monitor_p.cpp:473
#11 0x00007fffddde1b1c in Akonadi::MonitorPrivate::emitNotification (this=0xeff6f0, msg=...) at /kde/src/KDE/kdepimlibs/akonadi/monitor_p.cpp:259
#12 0x00007fffddd42969 in Akonadi::ChangeRecorderPrivate::emitNotification (this=0xeff6f0, msg=...) at /kde/src/KDE/kdepimlibs/akonadi/changerecorder_p.h:60
#13 0x00007fffddde2749 in Akonadi::MonitorPrivate::dispatchNotifications (this=0xeff6f0) at /kde/src/KDE/kdepimlibs/akonadi/monitor_p.cpp:391
#14 0x00007fffddde25a6 in Akonadi::MonitorPrivate::slotNotify (this=0xeff6f0, msgs=QList<Akonadi::NotificationMessage> = {...}) at /kde/src/KDE/kdepimlibs/akonadi/monitor_p.cpp:367
#15 0x00007fffddd428e6 in Akonadi::ChangeRecorderPrivate::slotNotify (this=0xeff6f0, msgs=QList<Akonadi::NotificationMessage> = {...}) at /kde/src/KDE/kdepimlibs/akonadi/changerecorder_p.h:51
#16 0x00007fffddddf5cc in Akonadi::Monitor::qt_metacall (this=0x133d330, _c=QMetaObject::InvokeMetaMethod, _id=22, _a=0x7fffffffa970) at /kde/build/KDE/kdepimlibs/akonadi/monitor.moc:155
#17 0x00007fffddd42005 in Akonadi::ChangeRecorder::qt_metacall (this=0x133d330, _c=QMetaObject::InvokeMetaMethod, _id=26, _a=0x7fffffffa970) at /kde/build/KDE/kdepimlibs/akonadi/changerecorder.moc:72
#18 0x00007ffff4aa5a5f in QMetaObject::activate (sender=0x1342270, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffffffa970) at kernel/qobject.cpp:3278
#19 0x00007fffdde5579f in OrgFreedesktopAkonadiNotificationSourceInterface::notify (this=0x1342270, _t1=QList<Akonadi::NotificationMessage> = {...})
    at /kde/build/KDE/kdepimlibs/akonadi/notificationsourceinterface.moc:91
#20 0x00007fffdde556ec in OrgFreedesktopAkonadiNotificationSourceInterface::qt_metacall (this=0x1342270, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7fffffffab70)
    at /kde/build/KDE/kdepimlibs/akonadi/notificationsourceinterface.moc:77

[...]
Comment 1 Sergio Martins 2011-04-14 02:39:34 UTC
Can't reproduce, maybe stephen knows more about this.
Comment 2 Christophe Marin 2011-04-24 12:04:48 UTC
strange, 100% reproducible here. Running akonadictl restart is enough to make plasma crash with the same bt
Comment 3 Stephen Kelly 2011-04-25 22:15:25 UTC
I'm also unable to reproduce it. When I load it I don't get the events in korganizer. I get this output:



akonadi_ical_resource_9(6851)/libakonadi Akonadi::PluginRegistry::PluginRegistry: ItemSerializerPluginLoader:  found 44 plugins.
akonadi_ical_resource_9(6851)/libakonadi Akonadi::PluginRegistry::findBestMatchImpl: Looking for  "default for application/x-vnd.akonadi.calendar.event"
akonadi_ical_resource_9(6851)/libakonadi Akonadi::PluginRegistry::findBestMatchImpl:   Considering serializer plugin for type "text/calendar" as the closest match
akonadi_ical_resource_9(6851)/libakonadi Akonadi::PluginRegistry::findBestMatchImpl:     -> got  Akonadi::SerializerPluginKCalCore  and am happy with it.
akonadi_ical_resource_9(6851)/kdepimlibs (kcalcore) KCalCore::ICalFormat::fromRawString: parse error
akonadi_ical_resource_9(6851)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: Failed to parse incidence! Item id =  4875 Storage collection id  1038 parentCollectionId =  -47
akonadi_ical_resource_9(6851)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: ""
akonadi_ical_resource_9(6851)/libakonadi Akonadi::ItemSerializer::deserialize: Unable to deserialize payload part: "RFC822"
akonadi_ical_resource_9(6851)/libakonadi Akonadi::ItemSerializer::deserialize: Payload data was:  ""
akonadi_ical_resource_9(6851)/kdepimlibs (kcalcore) KCalCore::ICalFormat::fromRawString: parse error
akonadi_ical_resource_9(6851)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: Failed to parse incidence! Item id =  4874 Storage collection id  1038 parentCollectionId =  -48
akonadi_ical_resource_9(6851)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: ""
akonadi_ical_resource_9(6851)/libakonadi Akonadi::ItemSerializer::deserialize: Unable to deserialize payload part: "RFC822"
akonadi_ical_resource_9(6851)/libakonadi Akonadi::ItemSerializer::deserialize: Payload data was:  ""
korganizer(6213) EventViews::AgendaView::fillAgenda: changes =  QFlags(0x8|0x80) ; mUpdateAgenda =  true ; mUpdateAllDayAgenda =  true
korganizer(6213) EventViews::AgendaView::fillAgenda: changes =  QFlags(0x8) ; mUpdateAgenda =  true ; mUpdateAllDayAgenda =  true
korganizer(6213) EventViews::TimelineView::TimelineView: Disabled code, port to KDGantt2
korganizer(6213) EventViews::TimelineView::TimelineView: Disabled code, port to KDGantt2
korganizer(6213) EventViews::TimelineView::TimelineView: Disabled code, port to KDGantt2
korganizer(6213) EventViews::TimelineView::showDates: start= QDate("Sun Apr 24 2011") end= QDate("Sat Apr 30 2011")
korganizer(6213) EventViews::TimelineView::showDates: Disabled code, port to KDGantt2
korganizer(6213) EventViews::TimelineView::showDates: Created item  EventViews::TimelineItem(0x9645bc0)  (  "akonadi_ical_resource_9"  ) with index 0  from collection  1038
QObject::connect: Cannot connect (null)::dataChanged( const QModelIndex&, const QModelIndex& ) to KDGantt::GraphicsView::updateSceneRect()
korganizer(6213) EventViews::TimelineView::showDates: start= QDate("Tue Apr 19 2011") end= QDate("Tue Apr 19 2011")
korganizer(6213) EventViews::TimelineView::showDates: Disabled code, port to KDGantt2
korganizer(6213) EventViews::TimelineView::showDates: Created item  EventViews::TimelineItem(0x960fd78)  (  "akonadi_ical_resource_9"  ) with index 0  from collection  1038
QObject::connect: Cannot connect (null)::dataChanged( const QModelIndex&, const QModelIndex& ) to KDGantt::GraphicsView::updateSceneRect()
akonadi_ical_resource_9(6851)/libakonadi Akonadi::ItemSync::setFullSyncItems: Received:  2 In total:  2  Wanted:  -1
akonadi_ical_resource_9(6851)/kdepimlibs (kcalcore) KCalCore::ICalFormat::fromRawString: parse error
akonadi_ical_resource_9(6851)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: Failed to parse incidence! Item id =  4875 Storage collection id  1038 parentCollectionId =  -56
akonadi_ical_resource_9(6851)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: ""
akonadi_ical_resource_9(6851)/libakonadi Akonadi::ItemSerializer::deserialize: Unable to deserialize payload part: "RFC822"
akonadi_ical_resource_9(6851)/libakonadi Akonadi::ItemSerializer::deserialize: Payload data was:  ""
akonadi_ical_resource_9(6851)/kdepimlibs (kcalcore) KCalCore::ICalFormat::fromRawString: parse error
akonadi_ical_resource_9(6851)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: Failed to parse incidence! Item id =  4874 Storage collection id  1038 parentCollectionId =  -57
akonadi_ical_resource_9(6851)/akonadiserializer (calendar) Akonadi::SerializerPluginKCalCore::deserialize: ""
akonadi_ical_resource_9(6851)/libakonadi Akonadi::ItemSerializer::deserialize: Unable to deserialize payload part: "RFC822"
akonadi_ical_resource_9(6851)/libakonadi Akonadi::ItemSerializer::deserialize: Payload data was:  ""

What is being removed after you restart the akonadi server? I mean what is causing  Akonadi::Monitor::itemRemoved to be called? I can't think of any reason that would happen.
Comment 4 Christophe Marin 2011-05-13 18:43:46 UTC
Looks slightly better. No more crash with an updated kdelibs and kdepim master, just an irritating behaviour in korg (remote calendars flicker and get unchecked when you reload them)