Bug 290016

Summary: plasma-desktop crashes on start because of akonadi-google
Product: [Frameworks and Libraries] Akonadi Reporter: Bernd Buschinski <b.buschinski>
Component: GoogleData ResourceAssignee: Sergio Martins <smartins>
Status: RESOLVED FIXED    
Severity: crash CC: kdepim-bugs, pazderak, smartins, vkrause
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 4.11
Sentry Crash Report:

Description Bernd Buschinski 2011-12-28 15:44:12 UTC
Version:           unspecified (using KDE 4.7.3) 
OS:                Linux

plasma-desktop crashes on start when akonadi-google trys to sync.
It doesn't happen if I have no internet connection or uninstalled akonadi-google.

akonadi-google-0.2_p20111130
kde-4.7.4
akonadi-server-1.6.2
Qt 4.7.4

Reproducible: Always

Steps to Reproduce:
- add your google calendar to kalendar via akonadi-google
- reboot

Actual Results:  
it crashes

Expected Results:  
it should not crash and just sync

Application: Plasma-Desktop-Umgebung (kdeinit4), signal: Aborted
[Current thread is 1 (Thread 0x7f0b897aa760 (LWP 3101))]

Thread 3 (Thread 0x7f0b66520700 (LWP 3102)):
#0  QTimerInfoList::updateCurrentTime (this=0x1f9cec0) at kernel/qeventdispatcher_unix.cpp:339
#1  0x00007f0b8840a703 in QTimerInfoList::timerWait (this=0x1f9cec0, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#2  0x00007f0b88408d9c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f0b6651fb8c) at kernel/qeventdispatcher_glib.cpp:136
#3  0x00007f0b88408e45 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#4  0x00007f0b83b17692 in g_main_context_prepare (context=0x1f9cd70, priority=0x7f0b6651fbf8) at gmain.c:2762
#5  0x00007f0b83b1849d in g_main_context_iterate (context=0x1f9cd70, block=1, dispatch=1, self=<optimized out>) at gmain.c:3069
#6  0x00007f0b83b18ac9 in g_main_context_iteration (context=0x1f9cd70, may_block=1) at gmain.c:3152
#7  0x00007f0b884098f6 in QEventDispatcherGlib::processEvents (this=0x1f9af00, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#8  0x00007f0b883d9c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#9  0x00007f0b883d9e7f in QEventLoop::exec (this=0x7f0b6651fd20, flags=...) at kernel/qeventloop.cpp:201
#10 0x00007f0b882e4ba9 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#11 0x00007f0b883ba8b3 in QInotifyFileSystemWatcherEngine::run (this=0x1f999e0) at io/qfilesystemwatcher_inotify.cpp:248
#12 0x00007f0b882e7a6a in QThreadPrivate::start (arg=0x1f999e0) at thread/qthread_unix.cpp:331
#13 0x00007f0b788192da in ?? () from /usr/lib64/libGL.so.1
#14 0x00007f0b88055e2c in start_thread (arg=0x7f0b66520700) at pthread_create.c:301
#15 0x00007f0b86d6462d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f0b5edef700 (LWP 3119)):
#0  0x00007f0b8805901f in __pthread_mutex_unlock_usercnt (mutex=0x2380be8, decr=0) at pthread_mutex_unlock.c:52
#1  0x00007f0b83b17a95 in g_main_context_query (context=0x2380be0, max_priority=<optimized out>, timeout=0x7f0b5edeec3c, fds=<optimized out>, n_fds=1) at gmain.c:2872
#2  0x00007f0b83b1850a in g_main_context_iterate (context=0x2380be0, block=1, dispatch=1, self=<optimized out>) at gmain.c:3071
#3  0x00007f0b83b18ac9 in g_main_context_iteration (context=0x2380be0, may_block=1) at gmain.c:3152
#4  0x00007f0b884098f6 in QEventDispatcherGlib::processEvents (this=0x231a730, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#5  0x00007f0b883d9c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f0b883d9e7f in QEventLoop::exec (this=0x7f0b5edeed60, flags=...) at kernel/qeventloop.cpp:201
#7  0x00007f0b882e4ba9 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#8  0x00007f0b882e7a6a in QThreadPrivate::start (arg=0x2313660) at thread/qthread_unix.cpp:331
#9  0x00007f0b788192da in ?? () from /usr/lib64/libGL.so.1
#10 0x00007f0b88055e2c in start_thread (arg=0x7f0b5edef700) at pthread_create.c:301
#11 0x00007f0b86d6462d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f0b897aa760 (LWP 3101)):
[KCrash Handler]
#6  0x00007f0b86cc1b05 in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f0b86cc2f7b in __GI_abort () at abort.c:93
#8  0x00007f0b882dcdb4 in qt_message_output (msgType=<optimized out>, buf=<optimized out>) at global/qglobal.cpp:2291
#9  0x00007f0b882dcf3f in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f0b88441dd8 "ASSERT failure in %s: \"%s\", file %s, line %d", ap=0x7ffff7e7d538) at global/qglobal.cpp:2337
#10 0x00007f0b882dd0e4 in qFatal (msg=<optimized out>) at global/qglobal.cpp:2520
#11 0x00007f0b87ad53b1 in at (i=7, this=0x26156e8) at ../../include/QtCore/../../src/corelib/tools/qvector.h:339
#12 QSortFilterProxyModelPrivate::_q_sourceDataChanged (this=0x2241840, source_top_left=..., source_bottom_right=...) at itemviews/qsortfilterproxymodel.cpp:1187
#13 0x00007f0b87ad65fb in QSortFilterProxyModel::qt_metacall (this=0x22faaf0, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7ffff7e7d880) at .moc/debug-shared/moc_qsortfilterproxymodel.cpp:130
#14 0x00007f0b883efab0 in QMetaObject::activate (sender=0x229f4b0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffff7e7d880) at kernel/qobject.cpp:3278
#15 0x00007f0b8843e1e7 in QAbstractItemModel::dataChanged (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at .moc/debug-shared/moc_qabstractitemmodel.cpp:148
#16 0x00007f0b87ad5352 in QSortFilterProxyModelPrivate::_q_sourceDataChanged (this=0x223fb70, source_top_left=..., source_bottom_right=...) at itemviews/qsortfilterproxymodel.cpp:1191
#17 0x00007f0b87ad65fb in QSortFilterProxyModel::qt_metacall (this=0x229f4b0, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7ffff7e7db20) at .moc/debug-shared/moc_qsortfilterproxymodel.cpp:130
#18 0x00007f0b883efab0 in QMetaObject::activate (sender=0x2309000, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffff7e7db20) at kernel/qobject.cpp:3278
#19 0x00007f0b8843e1e7 in QAbstractItemModel::dataChanged (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at .moc/debug-shared/moc_qabstractitemmodel.cpp:148
#20 0x00007f0b89162570 in KDescendantsProxyModelPrivate::sourceDataChanged (this=<optimized out>, topLeft=..., bottomRight=...) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/kdeui/itemviews/kdescendantsproxymodel.cpp:970
#21 0x00007f0b891665d6 in KDescendantsProxyModel::qt_metacall (this=0x2309000, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7ffff7e7dd40) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4_build/kdeui/moc_kdescendantsproxymodel.cpp:105
#22 0x00007f0b883efab0 in QMetaObject::activate (sender=0x22e5aa0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffff7e7dd40) at kernel/qobject.cpp:3278
#23 0x00007f0b8843e1e7 in QAbstractItemModel::dataChanged (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at .moc/debug-shared/moc_qabstractitemmodel.cpp:148
#24 0x00007f0b6756ff12 in Akonadi::EntityTreeModelPrivate::dataChanged (this=<optimized out>, top=..., bottom=...) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4/akonadi/entitytreemodel_p.cpp:1543
#25 0x00007f0b67579145 in Akonadi::EntityTreeModelPrivate::monitoredItemChanged (this=0x21753b0, item=...) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4/akonadi/entitytreemodel_p.cpp:1048
#26 0x00007f0b67567646 in Akonadi::EntityTreeModel::qt_metacall (this=0x22e5aa0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7ffff7e7e050) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4_build/akonadi/entitytreemodel.moc:169
#27 0x00007f0b883efab0 in QMetaObject::activate (sender=0x22f5570, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffff7e7e050) at kernel/qobject.cpp:3278
#28 0x00007f0b675b05b7 in Akonadi::Monitor::itemChanged (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4_build/akonadi/monitor.moc:169
#29 0x00007f0b675b507c in Akonadi::MonitorPrivate::emitItemNotification (this=0x22e7520, msg=..., item=<optimized out>, collection=<optimized out>, collectionDest=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4/akonadi/monitor_p.cpp:515
#30 0x00007f0b675b6002 in Akonadi::MonitorPrivate::emitNotification (this=0x22e7520, msg=...) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4/akonadi/monitor_p.cpp:284
#31 0x00007f0b6751ac71 in Akonadi::ChangeRecorderPrivate::emitNotification (this=0x22e7520, msg=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4/akonadi/changerecorder_p.h:60
#32 0x00007f0b675b5ce6 in Akonadi::MonitorPrivate::flushPipeline (this=0x22e7520) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4/akonadi/monitor_p.cpp:425
#33 0x00007f0b675b6199 in Akonadi::MonitorPrivate::dataAvailable (this=0x22e7520) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4/akonadi/monitor_p.cpp:434
#34 0x00007f0b675b0a25 in Akonadi::Monitor::qt_metacall (this=0x22f5570, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7ffff7e7e550) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4_build/akonadi/monitor.moc:156
#35 0x00007f0b675191c8 in Akonadi::ChangeRecorder::qt_metacall (this=0x22f5570, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4_build/akonadi/changerecorder.moc:72
#36 0x00007f0b883efab0 in QMetaObject::activate (sender=0x228f190, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3278
#37 0x00007f0b675b851d in Akonadi::EntityCache<Akonadi::Item, Akonadi::ItemFetchJob, Akonadi::ItemFetchScope>::fetchResult (this=0x228f190, job=<optimized out>) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4/akonadi/entitycache_p.h:190
#38 0x00007f0b67560a83 in Akonadi::EntityCacheBase::qt_metacall (this=0x228f190, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7ffff7e7e730) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4_build/akonadi/entitycache_p.moc:77
#39 0x00007f0b883efab0 in QMetaObject::activate (sender=0x1b18af0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffff7e7e730) at kernel/qobject.cpp:3278
#40 0x00007f0b88861182 in KJob::result (this=<optimized out>, _t1=0x1b18af0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4_build/kdecore/kjob.moc:194
#41 0x00007f0b888611c0 in KJob::emitResult (this=0x1b18af0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/kdecore/jobs/kjob.cpp:312
#42 0x00007f0b675ad9ed in Akonadi::Job::qt_metacall (this=0x1b18af0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x268d500) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4_build/akonadi/job.moc:91
#43 0x00007f0b6759b1e5 in Akonadi::ItemFetchJob::qt_metacall (this=0x1b18af0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x268d500) at /var/tmp/portage/kde-base/kdepimlibs-4.7.4-r1/work/kdepimlibs-4.7.4_build/akonadi/itemfetchjob.moc:73
#44 0x00007f0b883f490a in QObject::event (this=0x1b18af0, e=<optimized out>) at kernel/qobject.cpp:1217
#45 0x00007f0b874eddc2 in notify_helper (e=0x26a44e0, receiver=0x1b18af0, this=0x1857130) at kernel/qapplication.cpp:4481
#46 QApplicationPrivate::notify_helper (this=0x1857130, receiver=0x1b18af0, e=0x26a44e0) at kernel/qapplication.cpp:4453
#47 0x00007f0b874f3789 in QApplication::notify (this=0x183b710, receiver=0x1b18af0, e=0x26a44e0) at kernel/qapplication.cpp:4360
#48 0x00007f0b891a0df6 in KApplication::notify (this=0x183b710, receiver=0x1b18af0, event=0x26a44e0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/kdeui/kernel/kapplication.cpp:311
#49 0x00007f0b883db39c in QCoreApplication::notifyInternal (this=0x183b710, receiver=0x1b18af0, event=0x26a44e0) at kernel/qcoreapplication.cpp:787
#50 0x00007f0b883df00e in sendEvent (event=0x26a44e0, receiver=0x1b18af0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#51 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x17205e0) at kernel/qcoreapplication.cpp:1428
#52 0x00007f0b884093e3 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#53 postEventSourceDispatch (s=0x1859800) at kernel/qeventdispatcher_glib.cpp:277
#54 0x00007f0b83b180fd in g_main_dispatch (context=0x1859db0) at gmain.c:2441
#55 g_main_context_dispatch (context=0x1859db0) at gmain.c:3011
#56 0x00007f0b83b188f8 in g_main_context_iterate (context=0x1859db0, block=<optimized out>, dispatch=1, self=<optimized out>) at gmain.c:3089
#57 0x00007f0b83b18ac9 in g_main_context_iteration (context=0x1859db0, may_block=1) at gmain.c:3152
#58 0x00007f0b8840988f in QEventDispatcherGlib::processEvents (this=0x1854e70, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#59 0x00007f0b8759e94e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#60 0x00007f0b883d9c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#61 0x00007f0b883d9e7f in QEventLoop::exec (this=0x7ffff7e7f0f0, flags=...) at kernel/qeventloop.cpp:201
#62 0x00007f0b883df2c7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#63 0x00007f0b76024593 in kdemain (argc=1, argv=0x17b9fb0) at /var/tmp/portage/kde-base/plasma-workspace-4.7.4/work/plasma-workspace-4.7.4/plasma/desktop/shell/main.cpp:120
#64 0x00000000004089d7 in launch (argc=1, _name=0x17b9f28 "/usr/bin/plasma-desktop", args=<optimized out>, cwd=0x0, envc=<optimized out>, envs=<optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x40b32e "0") at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/kinit/kinit.cpp:734
#65 0x0000000000409a86 in handle_launcher_request (sock=7, who=<optimized out>) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/kinit/kinit.cpp:1226
#66 0x0000000000409faf in handle_requests (waitForPid=0) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/kinit/kinit.cpp:1419
#67 0x0000000000405a2e in main (argc=2, argv=0x7ffff7e800c0, envp=0x7ffff7e80390) at /var/tmp/portage/kde-base/kdelibs-4.7.4/work/kdelibs-4.7.4/kinit/kinit.cpp:1907
Comment 1 Bernd Buschinski 2011-12-28 15:45:08 UTC
and the assert message:

ASSERT failure in QVector<T>::at: "index out of range", file ../../include/QtCore/../../src/corelib/tools/qvector.h, line 33
Comment 2 Anne-Marie Mahfouf 2011-12-30 09:50:58 UTC
*** Bug 290116 has been marked as a duplicate of this bug. ***
Comment 3 Sergio Martins 2013-06-12 12:45:55 UTC
Fixed in 4.11