Bug 173323 - Duplicate Events in a Folder as Calendar-Resource cause korganizer crash
Summary: Duplicate Events in a Folder as Calendar-Resource cause korganizer crash
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 174006 175047 176158 178886 179494 181589 211182 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-22 21:02 UTC by Mathias Kaufmann
Modified: 2013-06-04 15:01 UTC (History)
10 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 Mathias Kaufmann 2008-10-22 21:02:15 UTC
Version:           4.1.0 (using KDE 4.1.2)
Compiler:          gcc 4.3.2 
OS:                Linux
Installed from:    Debian testing/unstable Packages

If there are a Calender-Resource in KOrganizer of Type "Folder" and there duplicate Events ( two or more copies of the same ICS-file ) with the same UID-Field, korganizer crashes with the following Message:

kontact(24867) KDBusServiceStarter::findServiceFor: DBus service is available now, as "org.kde.kmail"                                                
kontact(24867) KDBusServiceStarter::findServiceFor: DBus service is available now, as "org.kde.kmail"                                                
ASSERT: "mEvents.value( uid ) == event" in file /tmp/buildd/kdepimlibs-4.1.2/kcal/calendarlocal.cpp, line 377                                        
*** KMail got signal 6 (Crashing)                                                                                                                    
KCrash: Application 'kontact' crashing...                                                                                                            
sock_file=/home/mathias/.kde4/socket-valiant/kdeinit4__0                                                                                             
<unknown program name>(24866)/: Communication problem with  "kontact" , it probably crashed.                                                         
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Message did not receive a reply (timeout by message bus)" "                            

dang!

I assume the ASSERT is there for exactly that case.

Could you fix that problem, or change the behavior, that korganizer starts with a warning ("Duplicate Event in folder 'blah', which ICS-File should be deleted?") or remove one of the files if they match exactly (maybe md5sum equals).

I've downloaded these files, and stored them twice, and this case can happen very easily to every user. The crash isn't very informative.

Thank you in advance

Mathias Kaufmann
Comment 1 Christophe Marin 2008-11-13 15:26:58 UTC
*** Bug 175047 has been marked as a duplicate of this bug. ***
Comment 2 Christophe Marin 2008-12-27 13:27:03 UTC
*** Bug 178886 has been marked as a duplicate of this bug. ***
Comment 3 Christophe Marin 2008-12-27 13:32:43 UTC
bt from bug 178886 :

Thread 1 (Thread 0xb4fe96c0 (LWP 6213)):
[KCrash Handler]
#6  0xb8012430 in __kernel_vsyscall ()
#7  0xb5c79880 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb5c7b248 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb5f1f795 in qt_message_output () from /usr/lib/libQtCore.so.4
#10 0xb5f1f872 in qFatal () from /usr/lib/libQtCore.so.4
#11 0xb5f1f915 in qt_assert () from /usr/lib/libQtCore.so.4
#12 0xb7954c3b in KCal::CalendarLocal::Private::insertEvent (this=0x93a2878,
event=0x95f8448) at /build/buildd/kdepimlibs-4.1.85/kcal/calendarlocal.cpp:377
#13 0xb7954e0f in KCal::CalendarLocal::addEvent (this=0x93a3554,
event=0x95f8448) at /build/buildd/kdepimlibs-4.1.85/kcal/calendarlocal.cpp:179
#14 0xb79532fb in KCal::Incidence::AddVisitor<KCal::Calendar>::visit
(this=0xbfb0fc0c, e=0x95f8448) at
/build/buildd/kdepimlibs-4.1.85/kcal/incidence.h:80
#15 0xb792c278 in KCal::Event::accept (this=0x95f8448, v=@0xbfb0fc0c) at
/build/buildd/kdepimlibs-4.1.85/kcal/event.h:200
#16 0xb794b5a6 in KCal::Calendar::addIncidence (this=0x93a3554,
incidence=0x95f8448) at /build/buildd/kdepimlibs-4.1.85/kcal/calendar.cpp:431
#17 0xb32ba854 in KCal::ResourceAkonadi::Private::subResourceLoadResult
(this=0x93a3540, job=0x93755f0) at
/build/buildd/kdepim-4.1.85/kresources/akonadi/kcal/resourceakonadi.cpp:923
#18 0xb32c4f17 in KCal::ResourceAkonadi::qt_metacall (this=0x93a2e00,
_c=QMetaObject::InvokeMetaMethod, _id=1, _a=0xbfb0fe4c)
    at
/build/buildd/kdepim-4.1.85/obj-i486-linux-gnu/kresources/akonadi/kcal/resourceakonadi.moc:82
#19 0xb602ca60 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#20 0xb602d7e2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#21 0xb7e77413 in KJob::result (this=0x93755f0, _t1=0x93755f0) at
/build/buildd/kde4libs-4.1.85/obj-i486-linux-gnu/kdecore/kjob.moc:186
#22 0xb7e77929 in KJob::emitResult (this=0x93755f0) at
/build/buildd/kde4libs-4.1.85/kdecore/jobs/kjob.cpp:294
#23 0xb34b23bd in Akonadi::JobPrivate::handleResponse (this=0x8ed2950,
tag=@0xbfb0ff30, data=@0xbfb0ff2c) at
/build/buildd/kdepimlibs-4.1.85/akonadi/job.cpp:63
#24 0xb34c961b in Akonadi::SessionPrivate::dataReceived (this=0x8fc7950) at
/build/buildd/kdepimlibs-4.1.85/akonadi/session.cpp:113
#25 0xb34cb896 in Akonadi::Session::qt_metacall (this=0x8fc7838,
_c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbfb10018) at
/build/buildd/kdepimlibs-4.1.85/obj-i486-linux-gnu/akonadi/session.moc:74
#26 0xb602ca60 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#27 0xb602d7e2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#28 0xb6065847 in QIODevice::readyRead () from /usr/lib/libQtCore.so.4
#29 0xb606591d in QIODevice::qt_metacall () from /usr/lib/libQtCore.so.4
#30 0xb6b4190a in QLocalSocket::qt_metacall () from /usr/lib/libQtNetwork.so.4
#31 0xb602ca60 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#32 0xb602d7e2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#33 0xb6065847 in QIODevice::readyRead () from /usr/lib/libQtCore.so.4
#34 0xb6b3ca72 in ?? () from /usr/lib/libQtNetwork.so.4
#35 0xb6b2bceb in ?? () from /usr/lib/libQtNetwork.so.4
#36 0xb6b2d056 in ?? () from /usr/lib/libQtNetwork.so.4
#37 0xb62a78ec in QApplicationPrivate::notify_helper () from
/usr/lib/libQtGui.so.4
#38 0xb62af72e in QApplication::notify () from /usr/lib/libQtGui.so.4
#39 0xb7be9d3d in KApplication::notify (this=0xbfb116c0, receiver=0x8fd0420,
event=0xbfb10540) at
/build/buildd/kde4libs-4.1.85/kdeui/kernel/kapplication.cpp:307
#40 0xb6017e61 in QCoreApplication::notifyInternal () from
/usr/lib/libQtCore.so.4
#41 0xb604270a in ?? () from /usr/lib/libQtCore.so.4
#42 0xb539f6f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#43 0xb53a2da3 in ?? () from /usr/lib/libglib-2.0.so.0
#44 0xb53a2f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#45 0xb6042478 in QEventDispatcherGlib::processEvents () from
/usr/lib/libQtCore.so.4
#46 0xb6341ea5 in ?? () from /usr/lib/libQtGui.so.4
#47 0xb601652a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#48 0xb60166ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#49 0xb7e77aa1 in KJob::exec (this=0x956fda8) at
/build/buildd/kde4libs-4.1.85/kdecore/jobs/kjob.cpp:195
#50 0xb32bb162 in KCal::ResourceAkonadi::Private::reloadSubResource
(this=0x93a3540, subResource=0x92debd8, changed=@0xbfb109bb)
    at
/build/buildd/kdepim-4.1.85/kresources/akonadi/kcal/resourceakonadi.cpp:1443
#51 0xb32c1339 in KCal::ResourceAkonadi::doLoad (this=0x93a2e00,
syncCache=false) at
/build/buildd/kdepim-4.1.85/kresources/akonadi/kcal/resourceakonadi.cpp:699
#52 0xb799d9cf in KCal::ResourceCalendar::load (this=0x93a2e00) at
/build/buildd/kdepimlibs-4.1.85/kcal/resourcecalendar.cpp:168
#53 0xb79b0561 in KCal::CalendarResources::load (this=0x939d3c0) at
/build/buildd/kdepimlibs-4.1.85/kcal/calendarresources.cpp:272
#54 0x08053315 in KOrganizerApp::processCalendar (this=0xbfb116c0,
url=@0xbfb10b50) at /build/buildd/kdepim-4.1.85/korganizer/koapp.cpp:146
#55 0x08053762 in KOrganizerApp::newInstance (this=0xbfb116c0) at
/build/buildd/kdepim-4.1.85/korganizer/koapp.cpp:93
#56 0xb7bf3b76 in KUniqueApplicationAdaptor::newInstance (this=0x8e79260,
asn_id=@0x8ef0480, args=@0x8dfff58) at
/build/buildd/kde4libs-4.1.85/kdeui/kernel/kuniqueapplication_p.h:77
#57 0xb7bf1d3e in KUniqueApplicationAdaptor::qt_metacall (this=0x8e79260,
_c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbfb10dd8)
    at
/build/buildd/kde4libs-4.1.85/obj-i486-linux-gnu/kdeui/kuniqueapplication_p.moc:74
#58 0xb612026e in ?? () from /usr/lib/libQtDBus.so.4
#59 0xb61214a7 in ?? () from /usr/lib/libQtDBus.so.4
#60 0xb61219b1 in ?? () from /usr/lib/libQtDBus.so.4
#61 0xb6121eaa in ?? () from /usr/lib/libQtDBus.so.4
#62 0xb6027771 in QObject::event () from /usr/lib/libQtCore.so.4
#63 0xb60177cb in QCoreApplication::event () from /usr/lib/libQtCore.so.4
#64 0xb62ad206 in QApplication::event () from /usr/lib/libQtGui.so.4
#65 0xb62a78ec in QApplicationPrivate::notify_helper () from
/usr/lib/libQtGui.so.4
#66 0xb62af72e in QApplication::notify () from /usr/lib/libQtGui.so.4
#67 0xb7be9d3d in KApplication::notify (this=0xbfb116c0, receiver=0xbfb116c0,
event=0x8ef0430) at
/build/buildd/kde4libs-4.1.85/kdeui/kernel/kapplication.cpp:307
#68 0xb6017e61 in QCoreApplication::notifyInternal () from
/usr/lib/libQtCore.so.4
#69 0xb6018ae5 in QCoreApplicationPrivate::sendPostedEvents () from
/usr/lib/libQtCore.so.4
#70 0xb6018cdd in QCoreApplication::sendPostedEvents () from
/usr/lib/libQtCore.so.4
#71 0xb604282f in ?? () from /usr/lib/libQtCore.so.4
#72 0xb539f6f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#73 0xb53a2da3 in ?? () from /usr/lib/libglib-2.0.so.0
#74 0xb53a2f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#75 0xb6042478 in QEventDispatcherGlib::processEvents () from
/usr/lib/libQtCore.so.4
#76 0xb6341ea5 in ?? () from /usr/lib/libQtGui.so.4
#77 0xb601652a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#78 0xb60166ea in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#79 0xb6018da5 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#80 0xb62a7767 in QApplication::exec () from /usr/lib/libQtGui.so.4
#81 0x080511f0 in main (argc=) at
/build/buildd/kdepim-4.1.85/korganizer/main.cpp:58
Comment 4 Christophe Marin 2009-01-19 15:46:26 UTC
*** Bug 176158 has been marked as a duplicate of this bug. ***
Comment 5 Christophe Marin 2009-01-19 16:24:18 UTC
*** Bug 174006 has been marked as a duplicate of this bug. ***
Comment 6 Christophe Marin 2009-01-19 16:28:51 UTC
*** Bug 179494 has been marked as a duplicate of this bug. ***
Comment 7 Dario Andres 2009-01-23 10:48:34 UTC
*** Bug 181589 has been marked as a duplicate of this bug. ***
Comment 8 Dario Andres 2009-01-23 10:49:12 UTC
Reporter of bug 181589 is using 4.1.96
Comment 9 Dario Andres 2009-04-22 16:23:40 UTC
Could bug 190229 be related to this ?
Thanks
Comment 10 Christophe Marin 2009-10-21 00:16:01 UTC
*** Bug 211182 has been marked as a duplicate of this bug. ***
Comment 11 Sergio Martins 2013-06-04 15:01:54 UTC
Duplicate uids are filtered out now