Bug 282509 - Akonadi GoogleData crashes on startup
Summary: Akonadi GoogleData crashes on startup
Status: RESOLVED FIXED
Alias: None
Product: libkgapi
Classification: Frameworks and Libraries
Component: calendar (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-21 21:06 UTC by René Serral
Modified: 2011-09-29 21:55 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 René Serral 2011-09-21 21:06:31 UTC
Application: akonadi_googlecalendar_resource (4.7)
KDE Platform Version: 4.7.1 (4.7.1) (Compiled from sources)
Qt Version: 4.7.3
Operating System: Linux 3.0.0 i686
Distribution: Debian GNU/Linux unstable (sid)

-- Information about the crash:
During a recent update of kdepimlibs/kdepim/kdepim-runtime/akonadi-google to Git 4.7 branch the Akonadi resource related to the calendar is crashing everytime it starts.

I don't exactly know the reason of the crash but now the calendar resource is unusable. I even removed the calendar and created it again with the same results.

Thanks in advance

The crash can be reproduced every time.

-- Backtrace:
Application: Akonadi Resource (akonadi_googlecalendar_resource), signal: Aborted
[Current thread is 1 (Thread 0xb294d950 (LWP 6831))]

Thread 2 (Thread 0xb1428b70 (LWP 6877)):
#0  0xb785b424 in __kernel_vsyscall ()
#1  0xb708b703 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:236
#2  0xb710c99e in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb70ff884 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb710c503 in ?? () from /usr/lib/libQtCore.so.4
#5  0xb7086c39 in start_thread (arg=0xb1428b70) at pthread_create.c:304
#6  0xb3e8596e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130
Backtrace stopped: Not enough registers or memory available to unwind further

Thread 1 (Thread 0xb294d950 (LWP 6831)):
[KCrash Handler]
#7  0xb785b424 in __kernel_vsyscall ()
#8  0xb3de3911 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#9  0xb3de6d42 in *__GI_abort () at abort.c:92
#10 0xb7101626 in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4
#11 0xb7101a2b in ?? () from /usr/lib/libQtCore.so.4
#12 0xb7101b48 in qFatal(char const*, ...) () from /usr/lib/libQtCore.so.4
#13 0xb7101b8d in qt_assert_x(char const*, char const*, char const*, int) () from /usr/lib/libQtCore.so.4
#14 0xb77405a6 in Akonadi::ResourceBasePrivate::createItemSyncInstanceIfMissing (this=0x9fa6508) at /media/kdesvn/kde4svn/src/kdepimlibs/akonadi/resourcebase.cpp:151
#15 0xb773ed7d in Akonadi::ResourceBase::itemsRetrieved (this=0x9fa6408, items=...) at /media/kdesvn/kde4svn/src/kdepimlibs/akonadi/resourcebase.cpp:870
#16 0x08052e61 in CalendarResource::eventListReceived (this=0x9fa6408, reply=0xa1d3aa0) at /media/kdesvn/kde4svn/src/akonadi-google/calendar/calendarresource.cpp:323
#17 0x08052bb1 in CalendarResource::replyReceived (this=0x9fa6408, reply=0xa1d3aa0) at /media/kdesvn/kde4svn/src/akonadi-google/calendar/calendarresource.cpp:274
#18 0x08050874 in CalendarResource::qt_metacall (this=0x9fa6408, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0xbf80be08) at /media/kdesvn/kde4svn/build/akonadi-google/calendar/moc_calendarresource.cpp:113
#19 0xb720d5dd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#20 0xb721c320 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#21 0xb6096854 in KGoogle::KGoogleAccessManager::replyReceived (this=0x9fb4e58, _t1=0xa1d3aa0) at /media/kdesvn/kde4svn/build/akonadi-google/libkgoogle/moc_kgoogleaccessmanager.cpp:104
#22 0xb609a64f in KGoogle::KGoogleAccessManager::nam_replyReceived (this=0x9fb4e58, reply=0xa167fd0) at /media/kdesvn/kde4svn/src/akonadi-google/libkgoogle/kgoogleaccessmanager.cpp:172
#23 0xb60967af in KGoogle::KGoogleAccessManager::qt_metacall (this=0x9fb4e58, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbf80c0d8) at /media/kdesvn/kde4svn/build/akonadi-google/libkgoogle/moc_kgoogleaccessmanager.cpp:89
#24 0xb720d5dd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#25 0xb721c320 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#26 0xb6450e85 in QNetworkAccessManager::finished(QNetworkReply*) () from /usr/lib/libQtNetwork.so.4
#27 0xb6451527 in ?? () from /usr/lib/libQtNetwork.so.4
#28 0xb6451807 in QNetworkAccessManager::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtNetwork.so.4
#29 0xb720d5dd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#30 0xb721c320 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#31 0xb64e4075 in QNetworkReply::finished() () from /usr/lib/libQtNetwork.so.4
#32 0xb6477443 in ?? () from /usr/lib/libQtNetwork.so.4
#33 0xb645857e in ?? () from /usr/lib/libQtNetwork.so.4
#34 0xb645e911 in ?? () from /usr/lib/libQtNetwork.so.4
#35 0xb645eca9 in ?? () from /usr/lib/libQtNetwork.so.4
#36 0xb64757ce in ?? () from /usr/lib/libQtNetwork.so.4
#37 0xb647583b in ?? () from /usr/lib/libQtNetwork.so.4
#38 0xb671b7a4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#39 0xb6720b32 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#40 0xb4397eea in KApplication::notify (this=0xbf80cb48, receiver=0xa167fd0, event=0xa186550) at /media/kdesvn/kde4svn/src/kdelibs/kdeui/kernel/kapplication.cpp:311
#41 0xb720722e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#42 0xb720a9f4 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#43 0xb720ab3c in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#44 0xb7235044 in ?? () from /usr/lib/libQtCore.so.4
#45 0xb3b30252 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#46 0xb3b30a30 in ?? () from /lib/libglib-2.0.so.0
#47 0xb3b30ce4 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#48 0xb7235477 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#49 0xb67d072a in ?? () from /usr/lib/libQtGui.so.4
#50 0xb720624d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#51 0xb7206491 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#52 0xb720abea in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#53 0xb6719624 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#54 0xb773ba01 in Akonadi::ResourceBase::init (r=0x9fa6408) at /media/kdesvn/kde4svn/src/kdepimlibs/akonadi/resourcebase.cpp:393
#55 0x08054e9c in Akonadi::ResourceBase::init<CalendarResource> (argc=3, argv=0xbf80cc34) at /home/kde4/kde/include/KDE/Akonadi/../../akonadi/resourcebase.h:188
#56 0x08053c2e in main (argc=3, argv=0xbf80cc34) at /media/kdesvn/kde4svn/src/akonadi-google/calendar/calendarresource.cpp:425

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

Possible duplicates by query: bug 277368, bug 259803.

Reported using DrKonqi
Comment 1 Daniel Vrátil 2011-09-26 14:05:31 UTC
*** Bug 282799 has been marked as a duplicate of this bug. ***
Comment 2 René Serral 2011-09-26 14:08:41 UTC
I don't have much time but, if I can help you out with the debugging don't hesitate to ask.

Best
Comment 3 Daniel Vrátil 2011-09-28 16:12:24 UTC
Could you please create a new Google calendar with just one or two events and try to sync it to KOrganizer? Does this calendar cause a crash too? Thanks
Comment 4 René Serral 2011-09-28 20:53:07 UTC
I did as you suggested and I had the most unexpected outcome:

- I created a Test calendar from my web browser
- From the browser I also created a test event
- I created the akonadi resource pointing to the new calendar
- I got the "Cannot refresh the calendar list", however the new calendar appears
- Then all the appointments I had from the original calendar appeared duplicated (with the correct color code referring to the original)
- The new appointment on Test calendar appeared also
- In order to remove the duplicated entries I removed the original calendar and recreated it. At that moment the resource crashed once again, however I still have the Test appointment as before.

If you need more info don't hesitate to ask.

Best
Comment 5 Daniel Vrátil 2011-09-28 21:13:22 UTC
So can you confirm that the resource works OK when there are just a few events in a single calendar, but crashes when there are many (more then 25) ?
Comment 6 René Serral 2011-09-28 21:21:17 UTC
Well, I don't know if there is an specific number of events or a particular event which triggers the crash. Nevertheless I just inserted more events (recurrent, normal...) from kontact and from the browser and it seems to work OK.
Comment 7 Daniel Vrátil 2011-09-29 21:15:17 UTC
Please try to reproduce this issue with the latest git revision. If the fix works, I'll fix it the same way in bug 282799.
Comment 8 René Serral 2011-09-29 21:41:22 UTC
Magnificent!, it now works. I had to recreate the resources because the entres got duplicated, but now I can import flawlessly my calendar.

As you said the problem with the contacts still persists.

Thanks for the great work again!

René
Comment 9 Daniel Vrátil 2011-09-29 21:55:44 UTC
Fixed in git commit bff64604c25b634b7c25d8bab1f098a330c86d4c.

Contacts resource is fixed as well now (git commit ad91dc808fdd11c88a0260f57ae8c9b2c4fb247b).