Bug 223729 - Creating a new event in an Ical calendar file crashes KOrganizer
Summary: Creating a new event in an Ical calendar file crashes KOrganizer
Status: VERIFIED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 4.5 pre
Platform: Ubuntu Linux
: HI crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-22 01:06 UTC by Sabine Faure
Modified: 2010-01-29 19:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (9.06 KB, text/plain)
2010-01-22 22:53 UTC, Sabine Faure
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sabine Faure 2010-01-22 01:06:49 UTC
Application: korganizer (4.5 pre)
KDE Platform Version: 4.3.95 (KDE 4.3.95 (KDE 4.4 RC2))
Qt Version: 4.6.0
Operating System: Linux 2.6.27-16-generic i686
Distribution: Ubuntu 8.10

-- Information about the crash:
- Launch KOrganizer
- Right click in the resources/folders section and select 'New Calendar'
- Select 'ICal Calendar File' and click on 'Ok'
- Click on the floppy disk and select a location and name for the calendar (ex Ical test file)
- Ical test file should appear in the resources/folders section
- Now, click on the 'New event' button
- Select 'Ical test file' as a calendar and enter details about the event
- Click on 'Ok' to create the event

KOrganizer crashes

Trunk, Svn Rev 1078179 

The crash can be reproduced every time.

 -- Backtrace:
Application: KOrganizer (korganizer), signal: Aborted
[KCrash Handler]
#6  0xb7fd3430 in __kernel_vsyscall ()
#7  0xb57238a0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb5725268 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb5a8294e in qt_message_output (msgType=QtFatalMsg, 
    buf=0x9c5f220 "ASSERT: \"mode == DontCare || alreadyExisted == ( mode == AssertExists )\" in file /d/kde/src/t/kdepim/akonadi/kcal/calendar.cpp, line 150") at global/qglobal.cpp:2226
#10 0xb5a829ee in qt_message (msgType=QtFatalMsg, msg=0xb5bff608 "ASSERT: \"%s\" in file %s, line %d", ap=0xbfa2ff34 "�S*�\204Q*�\226") at global/qglobal.cpp:2272
#11 0xb5a82a24 in qFatal (msg=0xb5bff608 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2455
#12 0xb5a82c78 in qt_assert (assertion=0xb72a53c8 "mode == DontCare || alreadyExisted == ( mode == AssertExists )", file=0xb72a5184 "/d/kde/src/t/kdepim/akonadi/kcal/calendar.cpp", line=150)
    at global/qglobal.cpp:1989
#13 0xb725ea73 in Akonadi::Calendar::Private::updateItem (this=0x9357158, item=@0xbfa301a8, mode=Akonadi::Calendar::Private::AssertExists) at /d/kde/src/t/kdepim/akonadi/kcal/calendar.cpp:150
#14 0xb72617f1 in Akonadi::Calendar::Private::dataChanged (this=0x9357158, topLeft=@0x9c60010, bottomRight=@0xbfa3037c) at /d/kde/src/t/kdepim/akonadi/kcal/calendar.cpp:125
#15 0xb7252b48 in Akonadi::Calendar::Private::qt_metacall (this=0x9357158, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbfa302e8) at /d/kde/build/t/kdepim/akonadi/kcal/moc_calendar_p.cpp:140
#16 0xb5b94d35 in QMetaObject::metacall (object=0x9357158, cl=QMetaObject::InvokeMetaMethod, idx=10, argv=0xbfa302e8) at kernel/qmetaobject.cpp:237
#17 0xb5ba5dfc in QMetaObject::activate (sender=0x93563a8, m=0xb5c66198, local_signal_index=0, argv=0xbfa302e8) at kernel/qobject.cpp:3291
#18 0xb5bfafa5 in QAbstractItemModel::dataChanged (this=0x93563a8, _t1=@0x9c60010, _t2=@0xbfa3037c) at .moc/debug-shared/moc_qabstractitemmodel.cpp:148
#19 0xb787b782 in Akonadi::EntityTreeModelPrivate::dataChanged (this=0x9356750, top=@0x9c60010, bottom=@0x9c60010) at /d/kde/src/t/kdepimlibs/akonadi/entitytreemodel_p.cpp:1134
#20 0xb787d9f2 in Akonadi::EntityTreeModelPrivate::monitoredItemChanged (this=0x9356750, item=@0xbfa30600) at /d/kde/src/t/kdepimlibs/akonadi/entitytreemodel_p.cpp:709
#21 0xb7873c5b in Akonadi::EntityTreeModel::qt_metacall (this=0x93563a8, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0xbfa30598) at /d/kde/build/t/kdepimlibs/akonadi/entitytreemodel.moc:132
#22 0xb5b94d35 in QMetaObject::metacall (object=0x93563a8, cl=QMetaObject::InvokeMetaMethod, idx=41, argv=0xbfa30598) at kernel/qmetaobject.cpp:237
#23 0xb5ba5dfc in QMetaObject::activate (sender=0x9355570, m=0xb79763e8, local_signal_index=0, argv=0xbfa30598) at kernel/qobject.cpp:3291
#24 0xb78c4d89 in Akonadi::Monitor::itemChanged (this=0x9355570, _t1=@0xbfa30600, _t2=@0xbfa305f0) at /d/kde/build/t/kdepimlibs/akonadi/monitor.moc:160
#25 0xb78c763b in Akonadi::MonitorPrivate::emitItemNotification (this=0x9355650, msg=@0xbfa306dc, item=@0xbfa30678, collection=@0xbfa30688, collectionDest=@0xbfa30684)
    at /d/kde/src/t/kdepimlibs/akonadi/monitor_p.cpp:327
#26 0xb78c8911 in Akonadi::MonitorPrivate::emitNotification (this=0x9355650, msg=@0xbfa306dc) at /d/kde/src/t/kdepimlibs/akonadi/monitor_p.cpp:196
#27 0xb78c8b7f in Akonadi::MonitorPrivate::dataAvailable (this=0x9355650) at /d/kde/src/t/kdepimlibs/akonadi/monitor_p.cpp:205
#28 0xb78c4e09 in Akonadi::Monitor::qt_metacall (this=0x9355570, _c=QMetaObject::InvokeMetaMethod, _id=21, _a=0xbfa30814) at /d/kde/build/t/kdepimlibs/akonadi/monitor.moc:148
#29 0xb783477a in Akonadi::ChangeRecorder::qt_metacall (this=0x9355570, _c=QMetaObject::InvokeMetaMethod, _id=25, _a=0xbfa30814) at /d/kde/build/t/kdepimlibs/akonadi/changerecorder.moc:72
#30 0xb5b94d35 in QMetaObject::metacall (object=0x9355570, cl=QMetaObject::InvokeMetaMethod, idx=25, argv=0xbfa30814) at kernel/qmetaobject.cpp:237
#31 0xb5ba5dfc in QMetaObject::activate (sender=0x9355694, m=0xb79749c8, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3291
#32 0xb786deb7 in Akonadi::EntityCacheBase::dataAvailable (this=0x9355694) at /d/kde/build/t/kdepimlibs/akonadi/entitycache_p.moc:88
#33 0xb7837fdb in Akonadi::EntityCache<Akonadi::Item, Akonadi::ItemFetchJob, Akonadi::ItemFetchScope>::fetchResult (this=0x9355694, job=0x98f8bc0)
    at /d/kde/src/t/kdepimlibs/akonadi/entitycache_p.h:191
#34 0xb786df2c in Akonadi::EntityCacheBase::qt_metacall (this=0x9355694, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfa30a3c) at /d/kde/build/t/kdepimlibs/akonadi/entitycache_p.moc:77
#35 0xb5b94d35 in QMetaObject::metacall (object=0x9355694, cl=QMetaObject::InvokeMetaMethod, idx=5, argv=0xbfa30a3c) at kernel/qmetaobject.cpp:237
#36 0xb5ba5dfc in QMetaObject::activate (sender=0x98f8bc0, m=0xb5eacc88, local_signal_index=3, argv=0xbfa30a3c) at kernel/qobject.cpp:3291
#37 0xb5d57eac in KJob::result (this=0x98f8bc0, _t1=0x98f8bc0) at /d/kde/build/t/kdelibs/kdecore/kjob.moc:194
#38 0xb5d58315 in KJob::emitResult (this=0x98f8bc0) at /d/kde/src/t/kdelibs/kdecore/jobs/kjob.cpp:312
#39 0xb78ba9a7 in Akonadi::JobPrivate::handleResponse (this=0x93a1140, tag=@0xbfa30b48, data=@0xbfa30b44) at /d/kde/src/t/kdepimlibs/akonadi/job.cpp:67
#40 0xb78ec972 in Akonadi::SessionPrivate::dataReceived (this=0x93553e0) at /d/kde/src/t/kdepimlibs/akonadi/session.cpp:121
#41 0xb78ed21e in Akonadi::Session::qt_metacall (this=0x93552f0, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbfa30c84) at /d/kde/build/t/kdepimlibs/akonadi/session.moc:87
#42 0xb5b94d35 in QMetaObject::metacall (object=0x93552f0, cl=QMetaObject::InvokeMetaMethod, idx=7, argv=0xbfa30c84) at kernel/qmetaobject.cpp:237
#43 0xb5ba5dfc in QMetaObject::activate (sender=0x9354b10, m=0xb5c65c48, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3291
#44 0xb5bf94fb in QIODevice::readyRead (this=0x9354b10) at .moc/debug-shared/moc_qiodevice.cpp:91
#45 0xb5bf957e in QIODevice::qt_metacall (this=0x9354b10, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfa30de4) at .moc/debug-shared/moc_qiodevice.cpp:77
#46 0xb5f9871b in QLocalSocket::qt_metacall (this=0x9354b10, _c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfa30de4) at .moc/debug-shared/moc_qlocalsocket.cpp:81
#47 0xb5b94d35 in QMetaObject::metacall (object=0x9354b10, cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0xbfa30de4) at kernel/qmetaobject.cpp:237
#48 0xb5ba5dfc in QMetaObject::activate (sender=0x9354e68, m=0xb5c65c48, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3291
#49 0xb5bf94fb in QIODevice::readyRead (this=0x9354e68) at .moc/debug-shared/moc_qiodevice.cpp:91
#50 0xb5f92c70 in QAbstractSocketPrivate::canReadNotification (this=0x9355d08) at socket/qabstractsocket.cpp:626
#51 0xb5f9573d in QAbstractSocketPrivate::readNotification (this=0x9355d08) at socket/qabstractsocket_p.h:77
#52 0xb5f800f3 in QAbstractSocketEngine::readNotification (this=0x9354bd8) at socket/qabstractsocketengine.cpp:154
#53 0xb5f81537 in QReadNotifier::event (this=0x9354bb8, e=0xbfa312f8) at socket/qnativesocketengine.cpp:1053
#54 0xb6185640 in QApplicationPrivate::notify_helper (this=0x90073f8, receiver=0x9354bb8, e=0xbfa312f8) at kernel/qapplication.cpp:4242
#55 0xb6185a43 in QApplication::notify (this=0xbfa3158c, receiver=0x9354bb8, e=0xbfa312f8) at kernel/qapplication.cpp:3661
#56 0xb7dc469f in KApplication::notify (this=0xbfa3158c, receiver=0x9354bb8, event=0xbfa312f8) at /d/kde/src/t/kdelibs/kdeui/kernel/kapplication.cpp:302
#57 0xb5b8e65d in QCoreApplication::notifyInternal (this=0xbfa3158c, receiver=0x9354bb8, event=0xbfa312f8) at kernel/qcoreapplication.cpp:704
#58 0xb7055cbf in QCoreApplication::sendEvent () from /d/qt/4/kde-qt/lib/libQt3Support.so.4
#59 0xb5bc0ca1 in socketNotifierSourceDispatch (source=0x900ade8) at kernel/qeventdispatcher_glib.cpp:110
#60 0xb45fb718 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#61 0xb45fedc3 in ?? () from /usr/lib/libglib-2.0.so.0
#62 0xb45fef81 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#63 0xb5bbfa5a in QEventDispatcherGlib::processEvents (this=0x9008390, flags={i = -1079831452}) at kernel/qeventdispatcher_glib.cpp:407
#64 0xb625304e in QGuiEventDispatcherGlib::processEvents (this=0x9008390, flags={i = -1079831404}) at kernel/qguieventdispatcher_glib.cpp:202
#65 0xb5b8b34a in QEventLoop::processEvents (this=0xbfa31520, flags={i = -1079831332}) at kernel/qeventloop.cpp:149
#66 0xb5b8b5bb in QEventLoop::exec (this=0xbfa31520, flags={i = -1079831256}) at kernel/qeventloop.cpp:197
#67 0xb5b8ee35 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#68 0xb6187fd6 in QApplication::exec () at kernel/qapplication.cpp:3570
#69 0x0804f4ab in main (argc=1, argv=0xbfa31694) at /d/kde/src/t/kdepim/korganizer/main.cpp:70

Reported using DrKonqi
Comment 1 Sabine Faure 2010-01-22 02:17:02 UTC
KOrganizer crashes also when creating a new event from a calendar using an IMAP and Kolab resource (ex:Agenda).

However in both cases (ICal calendar file or IMAP and Kolab resource calendar) the events are in fact created but can only be seen if KOrganizer is relaunched after the crash.

Trunk, Svn Rev 1078179
Comment 2 Sabine Faure 2010-01-22 22:53:53 UTC
Created attachment 40137 [details]
New crash information added by DrKonqi

- Launch KOrg
- try to resize an already existing event (augment or reduce its duration)

KOrganizer crashes

Trunk, Svn Rev 1078580
Comment 3 Sergio Martins 2010-01-28 03:37:49 UTC
Please try this patch:

http://reviewboard.kde.org/r/2747/
Comment 4 Sergio Martins 2010-01-28 20:36:30 UTC
SVN commit 1081570 by smartins:

Fix crash when editing incidences.

http://reviewboard.kde.org/r/2747/

Do not backport.

BUG: 223729


 M  +4 -4      akonadi/kcal/calendar.cpp  
 M  +5 -2      akonadi/kcal/utils.cpp  
 M  +5 -1      akonadi/kcal/utils.h  
 M  +6 -5      korganizer/interfaces/korganizer/baseview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1081570
Comment 5 Sabine Faure 2010-01-29 19:22:51 UTC
It is corrected now.

Creating both a new event from an Ical calendar file or a Kolab resource (ex: Agenda) works fine now.

Resizing an existing event works fine too.

Trunk, Svn Rev 1082000