Bug 198714

Summary: kontact crashes when trying to manually save/reload google caledar akonadi resource
Product: [Frameworks and Libraries] Akonadi Reporter: Ismail Khoffi <Ismail_k>
Component: generalAssignee: Volker Krause <vkrause>
Status: RESOLVED FIXED    
Severity: crash CC: andresbajotierra, toma
Priority: NOR    
Version: 1.1.90   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ismail Khoffi 2009-07-03 01:32:47 UTC
Application that crashed: kontact
Version of the application: 4.3.0 rc1
KDE Version: 4.2.95 (KDE 4.2.95 (KDE 4.3 RC1))
Qt Version: 4.5.2
Operating System: Linux 2.6.31-1-generic x86_64
Distribution: Ubuntu karmic (development branch)

What I was doing when the application crashed:
when trying to change an entry that comes from google calendar akonadi does not update the entry.
when trying to do so manually, by chosing the resource and pressing save and reload kalendar/kdepim-manager  crashes

 -- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
[KCrash Handler]
#5  0x0000000002a07c30 in ?? ()
#6  0x00007f6584f12847 in KCal::CalendarLocal::close (this=0x2833aa0) at /usr/include/qt4/QtCore/qalgorithms.h:350
#7  0x00007f65666ea8f4 in KCal::ResourceAkonadi::Private::clearResource (this=0x28339e0) at ../../../kresources/kcal/resourceakonadi_p.cpp:118
#8  0x00007f6566703a3c in ResourcePrivateBase::clear (this=0x28339e0) at ../../../kresources/shared/resourceprivatebase.cpp:264
#9  0x00007f65666e7c1c in KCal::ResourceAkonadi::doLoad (this=0x2828a20, syncCache=false) at ../../../kresources/kcal/resourceakonadi.cpp:399
#10 0x00007f6584f587e6 in KCal::ResourceCalendar::load (this=0x2828a20) at ../../kcal/resourcecalendar.cpp:168
#11 0x00007f65689a1413 in ResourceView::reloadResource (this=<value optimized out>) at ../../korganizer/resourceview.cpp:769
#12 0x00007f65689a66c6 in ResourceView::qt_metacall (this=0x2875480, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff9eb33b20) at ./resourceview.moc:117
#13 0x00007f6587ec1e1c in QMetaObject::activate (sender=0x2951c40, from_signal_index=<value optimized out>, to_signal_index=<value optimized out>, argv=0x7f658819d720) at kernel/qobject.cpp:3113
#14 0x00007f65887bf7d7 in QAction::triggered (this=0x2a09ee0, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#15 0x00007f65887c0c1f in QAction::activate (this=0x2951c40, event=<value optimized out>) at kernel/qaction.cpp:1160
#16 0x00007f6588bad2cd in QMenuPrivate::activateCausedStack (this=<value optimized out>, causedStack=@0x7fff9eb33c40, action=0x2951c40, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:967
#17 0x00007f6588bb31ea in QMenuPrivate::activateAction (this=0x2ad3c40, action=0x2951c40, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1060
#18 0x00007f6588814070 in QWidget::event (this=0x16b4690, event=0x7fff9eb343a0) at kernel/qwidget.cpp:7549
#19 0x00007f6588bb59ab in QMenu::event (this=0x16b4690, e=0x7fff9eb343a0) at widgets/qmenu.cpp:2353
#20 0x00007f65887c562c in QApplicationPrivate::notify_helper (this=0x16ed900, receiver=0x16b4690, e=0x7fff9eb343a0) at kernel/qapplication.cpp:4056
#21 0x00007f65887cc741 in QApplication::notify (this=<value optimized out>, receiver=0x16b4690, e=0x7fff9eb343a0) at kernel/qapplication.cpp:3758
#22 0x00007f65893fb3a6 in KApplication::notify (this=0x7fff9eb362c0, receiver=0x16b4690, event=0x7fff9eb343a0) at ../../kdeui/kernel/kapplication.cpp:302
#23 0x00007f6587eacc6c in QCoreApplication::notifyInternal (this=0x7fff9eb362c0, receiver=0x16b4690, event=0x7fff9eb343a0) at kernel/qcoreapplication.cpp:610
#24 0x00007f65887cc010 in QApplicationPrivate::sendMouseEvent (receiver=0x16b4690, event=0x7fff9eb343a0, alienWidget=0x0, nativeWidget=0x16b4690, buttonDown=<value optimized out>, 
    lastMouseReceiver=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#25 0x00007f658883249e in QETWidget::translateMouseEvent (this=0x16b4690, event=<value optimized out>) at kernel/qapplication_x11.cpp:4343
#26 0x00007f6588831119 in QApplication::x11ProcessEvent (this=<value optimized out>, event=0x7fff9eb35ed0) at kernel/qapplication_x11.cpp:3550
#27 0x00007f658885a31c in x11EventSourceDispatch (s=<value optimized out>, callback=<value optimized out>, user_data=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:146
#28 0x00007f6581cb68fe in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#29 0x00007f6581cb9fd8 in ?? () from /usr/lib/libglib-2.0.so.0
#30 0x00007f6581cba100 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#31 0x00007f6587ed51f6 in QEventDispatcherGlib::processEvents (this=0x16b2850, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#32 0x00007f6588859ace in QGuiEventDispatcherGlib::processEvents (this=0x2a09ee0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#33 0x00007f6587eab572 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#34 0x00007f6587eab944 in QEventLoop::exec (this=0x7fff9eb36200, flags=) at kernel/qeventloop.cpp:201
#35 0x00007f6587eadaf9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#36 0x0000000000403f27 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../../kontact/src/main.cpp:218

Reported using DrKonqi
Comment 1 Dario Andres 2009-07-07 12:44:38 UTC
Merging with bug 198634. Thanks

*** This bug has been marked as a duplicate of bug 198634 ***
Comment 2 Kevin Krammer 2009-07-18 18:13:14 UTC
SVN commit 998811 by krake:

Do not delete the incidence pointer, it is stored in an internal list of CalendarLocal which is set to AutoDelete and will delete the pointers on Calendar::close()

BUG: 198714
BUG: 198634



 M  +0 -4      resourceakonadi_p.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=998811
Comment 3 Kevin Krammer 2009-07-18 18:14:54 UTC
SVN commit 998815 by krake:

Backport of revision 998811

Do not delete the incidence pointer, it is stored in an internal list of CalendarLocal which is set to AutoDelete and will delete the pointers on Calendar::close()

CCBUG: 198714
CCBUG: 198634



 M  +0 -4      resourceakonadi_p.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=998815