Bug 238050 - Marking old to-dos as completed crashes KOrg
Summary: Marking old to-dos as completed crashes KOrg
Status: VERIFIED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-18 16:27 UTC by Sabine Faure
Modified: 2010-05-27 00:03 UTC (History)
0 users

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 Sabine Faure 2010-05-18 16:27:12 UTC
Application: korganizer (4.5 pre-svn-1128151 (2010-05-18))
KDE Platform Version: 4.4.3 (KDE 4.4.3) (Compiled from sources)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-19-generic x86_64
Distribution: Ubuntu lucid (development branch)

-- Information about the crash:
- Launch KOrg
- Click on 'to-do list' button
- Click on an old to-do that has been overdue for a while (displayed in red)

KOrg crashes

Note: it is also impossible to delete those this kind of to-dos:
* when erased they reappear in the list after a while in KOrg
* when removed from akonadi console they reappear after a while both in the console and in KOrg
Any idea on how to get rid of them?

Trunk, Svn Rev 1128166

The crash can be reproduced every time.

 -- Backtrace:
Application: KOrganizer (korganizer), signal: Aborted
[KCrash Handler]
#5  0x00007fef3591da75 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007fef359215c0 in *__GI_abort () at abort.c:92
#7  0x00007fef36951c3d in qt_message_output (msgType=QtFatalMsg, buf=0x79d7938 "ASSERT: \"m_uidToItemId.value( ui ) == item.id()\" in file /d/kde/src/t/kdepim/akonadi/kcal/calendar.cpp, line 240")
    at global/qglobal.cpp:2250
#8  0x00007fef36951e3f in qt_message (msgType=QtFatalMsg, msg=0x7fef36b13988 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fffbb8c4340) at global/qglobal.cpp:2296
#9  0x00007fef369526ac in qFatal (msg=0x7fef36b13988 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2479
#10 0x00007fef369517cf in qt_assert (assertion=0x7fef3b22f1e8 "m_uidToItemId.value( ui ) == item.id()", file=0x7fef3b22f0c8 "/d/kde/src/t/kdepim/akonadi/kcal/calendar.cpp", line=240)
    at global/qglobal.cpp:2013
#11 0x00007fef3b1db76c in Akonadi::Calendar::Private::updateItem (this=0x24e5900, item=..., mode=Akonadi::Calendar::Private::AssertExists) at /d/kde/src/t/kdepim/akonadi/kcal/calendar.cpp:240
#12 0x00007fef3b1d9cb6 in Akonadi::Calendar::Private::dataChanged (this=0x24e5900, topLeft=..., bottomRight=...) at /d/kde/src/t/kdepim/akonadi/kcal/calendar.cpp:145
#13 0x00007fef3b1d636d in Akonadi::Calendar::Private::qt_metacall (this=0x24e5900, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0x7fffbb8c49b0)
    at /d/kde/build/t/kdepim/akonadi/kcal/moc_calendar_p.cpp:152
#14 0x00007fef36a92557 in QMetaObject::metacall (object=0x24e5900, cl=QMetaObject::InvokeMetaMethod, idx=14, argv=0x7fffbb8c49b0) at kernel/qmetaobject.cpp:237
#15 0x00007fef36aa89d5 in QMetaObject::activate (sender=0x24dbbe0, m=0x7fef36e043c0, local_signal_index=0, argv=0x7fffbb8c49b0) at kernel/qobject.cpp:3293
#16 0x00007fef36b0eed9 in QAbstractItemModel::dataChanged (this=0x24dbbe0, _t1=..., _t2=...) at .moc/debug-shared/moc_qabstractitemmodel.cpp:148
#17 0x00007fef3c5fef7d in Akonadi::EntityTreeModelPrivate::dataChanged (this=0x24d86b0, top=..., bottom=...) at /d/kde/src/t/kdepimlibs/akonadi/entitytreemodel_p.cpp:1203
#18 0x00007fef3c5fc22b in Akonadi::EntityTreeModelPrivate::monitoredItemChanged (this=0x24d86b0, item=...) at /d/kde/src/t/kdepimlibs/akonadi/entitytreemodel_p.cpp:772
#19 0x00007fef3c5f4df2 in Akonadi::EntityTreeModel::qt_metacall (this=0x24dbbe0, _c=QMetaObject::InvokeMetaMethod, _id=20, _a=0x7fffbb8c4d10)
    at /d/kde/build/t/kdepimlibs/akonadi/entitytreemodel.moc:141
#20 0x00007fef36a92557 in QMetaObject::metacall (object=0x24dbbe0, cl=QMetaObject::InvokeMetaMethod, idx=44, argv=0x7fffbb8c4d10) at kernel/qmetaobject.cpp:237
#21 0x00007fef36aa89d5 in QMetaObject::activate (sender=0x24d8360, m=0x7fef3c9456e0, local_signal_index=0, argv=0x7fffbb8c4d10) at kernel/qobject.cpp:3293
#22 0x00007fef3c64c44b in Akonadi::Monitor::itemChanged (this=0x24d8360, _t1=..., _t2=...) at /d/kde/build/t/kdepimlibs/akonadi/monitor.moc:160
#23 0x00007fef3c64fb19 in Akonadi::MonitorPrivate::emitItemNotification (this=0x24db5f0, msg=..., item=..., collection=..., collectionDest=...) at /d/kde/src/t/kdepimlibs/akonadi/monitor_p.cpp:341
#24 0x00007fef3c64e9f8 in Akonadi::MonitorPrivate::emitNotification (this=0x24db5f0, msg=...) at /d/kde/src/t/kdepimlibs/akonadi/monitor_p.cpp:196
#25 0x00007fef3c64eadc in Akonadi::MonitorPrivate::dataAvailable (this=0x24db5f0) at /d/kde/src/t/kdepimlibs/akonadi/monitor_p.cpp:205
#26 0x00007fef3c64c3dd in Akonadi::Monitor::qt_metacall (this=0x24d8360, _c=QMetaObject::InvokeMetaMethod, _id=21, _a=0x7fffbb8c50c0) at /d/kde/build/t/kdepimlibs/akonadi/monitor.moc:148
#27 0x00007fef3c5ad14f in Akonadi::ChangeRecorder::qt_metacall (this=0x24d8360, _c=QMetaObject::InvokeMetaMethod, _id=25, _a=0x7fffbb8c50c0) at /d/kde/build/t/kdepimlibs/akonadi/changerecorder.moc:72
#28 0x00007fef36a92557 in QMetaObject::metacall (object=0x24d8360, cl=QMetaObject::InvokeMetaMethod, idx=25, argv=0x7fffbb8c50c0) at kernel/qmetaobject.cpp:237
#29 0x00007fef36aa89d5 in QMetaObject::activate (sender=0x24db678, m=0x7fef3c941e40, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3293
#30 0x00007fef3c5e9551 in Akonadi::EntityCacheBase::dataAvailable (this=0x24db678) at /d/kde/build/t/kdepimlibs/akonadi/entitycache_p.moc:88
#31 0x00007fef3c5b1d45 in Akonadi::EntityCache<Akonadi::Item, Akonadi::ItemFetchJob, Akonadi::ItemFetchScope>::fetchResult (this=0x24db678, job=0x79d8310)
    at /d/kde/src/t/kdepimlibs/akonadi/entitycache_p.h:189
#32 0x00007fef3c5e9519 in Akonadi::EntityCacheBase::qt_metacall (this=0x24db678, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffbb8c52c0) at /d/kde/build/t/kdepimlibs/akonadi/entitycache_p.moc:77
#33 0x00007fef36a92557 in QMetaObject::metacall (object=0x24db678, cl=QMetaObject::InvokeMetaMethod, idx=5, argv=0x7fffbb8c52c0) at kernel/qmetaobject.cpp:237
#34 0x00007fef36aa89d5 in QMetaObject::activate (sender=0x79d8310, m=0x7fef372f1760, local_signal_index=3, argv=0x7fffbb8c52c0) at kernel/qobject.cpp:3293
#35 0x00007fef36f284a3 in KJob::result (this=0x79d8310, _t1=0x79d8310) at /d/kde/build/t/kdelibs/kdecore/kjob.moc:194
#36 0x00007fef36f27911 in KJob::emitResult (this=0x79d8310) at /d/kde/src/t/kdelibs/kdecore/jobs/kjob.cpp:312
#37 0x00007fef3c63f841 in Akonadi::JobPrivate::delayedEmitResult (this=0x79d8340) at /d/kde/src/t/kdepimlibs/akonadi/job.cpp:145
#38 0x00007fef3c640fe4 in Akonadi::Job::qt_metacall (this=0x79d8310, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fffbb8c54e0) at /d/kde/build/t/kdepimlibs/akonadi/job.moc:91
#39 0x00007fef3c62048b in Akonadi::ItemFetchJob::qt_metacall (this=0x79d8310, _c=QMetaObject::InvokeMetaMethod, _id=34, _a=0x7fffbb8c54e0) at /d/kde/build/t/kdepimlibs/akonadi/itemfetchjob.moc:73
#40 0x00007fef36a92557 in QMetaObject::metacall (object=0x79d8310, cl=QMetaObject::InvokeMetaMethod, idx=34, argv=0x7fffbb8c54e0) at kernel/qmetaobject.cpp:237
#41 0x00007fef36aa89d5 in QMetaObject::activate (sender=0x7a1a1c0, m=0x7fef36e023e0, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3293
#42 0x00007fef36ab257b in QSingleShotTimer::timeout (this=0x7a1a1c0) at .moc/debug-shared/qtimer.moc:82
#43 0x00007fef36ab244b in QSingleShotTimer::timerEvent (this=0x7a1a1c0) at kernel/qtimer.cpp:308
#44 0x00007fef36aa41a7 in QObject::event (this=0x7a1a1c0, e=0x7fffbb8c5da0) at kernel/qobject.cpp:1212
#45 0x00007fef37d797aa in QApplicationPrivate::notify_helper (this=0x20ca810, receiver=0x7a1a1c0, e=0x7fffbb8c5da0) at kernel/qapplication.cpp:4304
#46 0x00007fef37d76e65 in QApplication::notify (this=0x7fffbb8c61a0, receiver=0x7a1a1c0, e=0x7fffbb8c5da0) at kernel/qapplication.cpp:3708
#47 0x00007fef3dad2607 in KApplication::notify (this=0x7fffbb8c61a0, receiver=0x7a1a1c0, event=0x7fffbb8c5da0) at /d/kde/src/t/kdelibs/kdeui/kernel/kapplication.cpp:302
#48 0x00007fef36a8a3f8 in QCoreApplication::notifyInternal (this=0x7fffbb8c61a0, receiver=0x7a1a1c0, event=0x7fffbb8c5da0) at kernel/qcoreapplication.cpp:704
#49 0x00007fef3a87d0af in QCoreApplication::sendEvent(QObject*, QEvent*) () from /d/qt/4/kde-qt/lib/libQt3Support.so.4
#50 0x00007fef36acac73 in QTimerInfoList::activateTimers (this=0x20dcb50) at kernel/qeventdispatcher_unix.cpp:603
#51 0x00007fef36ac5f3b in timerSourceDispatch (source=0x20dcaf0) at kernel/qeventdispatcher_glib.cpp:184
#52 0x00007fef317978c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#53 0x00007fef3179b748 in ?? () from /lib/libglib-2.0.so.0
#54 0x00007fef3179b8fc in g_main_context_iteration () from /lib/libglib-2.0.so.0
#55 0x00007fef36ac73d3 in QEventDispatcherGlib::processEvents (this=0x209c7a0, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#56 0x00007fef37e4a4c0 in QGuiEventDispatcherGlib::processEvents (this=0x209c7a0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#57 0x00007fef36a873f0 in QEventLoop::processEvents (this=0x7fffbb8c6130, flags=...) at kernel/qeventloop.cpp:149
#58 0x00007fef36a87546 in QEventLoop::exec (this=0x7fffbb8c6130, flags=...) at kernel/qeventloop.cpp:201
#59 0x00007fef36a8aafa in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#60 0x00007fef37d769ec in QApplication::exec () at kernel/qapplication.cpp:3583
#61 0x0000000000408c64 in main (argc=1, argv=0x7fffbb8c63a8) at /d/kde/src/t/kdepim/korganizer/main.cpp:65

This bug may be a duplicate of or related to bug 223729.

Possible duplicates by query: bug 223729.

Reported using DrKonqi
Comment 1 Sergio Martins 2010-05-25 23:31:15 UTC
SVN commit 1130647 by smartins:

Fix bug were korg was creating incidences with duplicated uids.

When dragging a todo from todoview to agendaview we should change the original todo's date/time instead of creating a new todo (4.4 behaviour) and
only create a new one if it came from an external app.

Fixes some crashes.

BUG: 238050



 M  +17 -2     calendarviews/agenda/agendaview.cpp  
 M  +17 -1     korganizer/views/agendaview/koagendaview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1130647
Comment 2 Sabine Faure 2010-05-27 00:03:23 UTC
It is corrected now.

Marking old to-dos as completed works fine now whether an iCal or Kolab resource is used.

Trunk, Svn Rev 1130931