Bug 293626 - Google contacts crashed after restarting akonadi
Summary: Google contacts crashed after restarting akonadi
Status: RESOLVED FIXED
Alias: None
Product: libkgapi
Classification: Frameworks and Libraries
Component: contacts (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
: 294146 294419 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-08 12:07 UTC by Hrvoje Senjan
Modified: 2012-02-19 18:12 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (6.48 KB, text/plain)
2012-02-14 11:17 UTC, Blackpaw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hrvoje Senjan 2012-02-08 12:07:44 UTC
Application: akonadi_googlecontacts_resource (4.8)
KDE Platform Version: 4.8.00 (4.8.0 "release 469"
Qt Version: 4.8.0
Operating System: Linux 3.2.4-1-desktop x86_64
Distribution: "openSUSE 12.1 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

I've set-up a google contacts resource , stoped akonadi, started it , and then the resource crashed. I'm using KDE4.8 + akonadi 1.7 + latest git akonadi-google

-- Backtrace:
Application: Google Contacts of type Google Contacts (akonadi_googlecontacts_resource), signal: Segmentation fault
[KCrash Handler]
#6  Akonadi::ItemSync::setStreamingEnabled (this=0x0, enable=false) at /usr/src/debug/kdepimlibs-4.8.0/akonadi/itemsync.cpp:436
#7  0x00007fbf7cd42882 in Akonadi::ResourceBase::setItemStreamingEnabled (this=<optimized out>, enable=false) at /usr/src/debug/kdepimlibs-4.8.0/akonadi/resourcebase.cpp:894
#8  0x000000000040c539 in ContactsResource::commitItemsList (this=0x888c50) at /usr/src/debug/akonadi-google-0.2git.1327964549/contacts/contactsresource.cpp:554
#9  0x00007fbf7c658771 in QMetaObject::activate (sender=0x700d90, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff0e67a4c0) at kernel/qobject.cpp:3556
#10 0x00007fbf7b31b1f2 in KGoogle::KGoogleAccessManager::requestFinished(KGoogle::KGoogleRequest*) () from /usr/lib64/libkgoogle.so.0
#11 0x00007fbf7b320ad0 in KGoogle::KGoogleAccessManager::nam_replyReceived(QNetworkReply*) () from /usr/lib64/libkgoogle.so.0
#12 0x00007fbf7c658771 in QMetaObject::activate (sender=0x6ff530, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff0e67aba0) at kernel/qobject.cpp:3556
#13 0x00007fbf7bf5b652 in QNetworkAccessManager::finished (this=<optimized out>, _t1=0x7e00d0) at .moc/release-shared/moc_qnetworkaccessmanager.cpp:177
#14 0x00007fbf7bf5bca9 in QNetworkAccessManagerPrivate::_q_replyFinished (this=<optimized out>) at access/qnetworkaccessmanager.cpp:1014
#15 0x00007fbf7c658771 in QMetaObject::activate (sender=0x7e00d0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3556
#16 0x00007fbf7b61b14c in KDEPrivate::AccessManagerReply::slotResult (this=0x7e00d0, kJob=0x7df710) at /usr/src/debug/kdelibs-4.8.0/kio/kio/accessmanagerreply_p.cpp:386
#17 0x00007fbf7c658771 in QMetaObject::activate (sender=0x7df710, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff0e67aec0) at kernel/qobject.cpp:3556
#18 0x00007fbf7bb58212 in KJob::result(KJob*) () from /usr/lib64/libkdecore.so.5
#19 0x00007fbf7bb58250 in KJob::emitResult() () from /usr/lib64/libkdecore.so.5
#20 0x00007fbf7b6530a4 in KIO::SimpleJob::slotFinished (this=0x7df710) at /usr/src/debug/kdelibs-4.8.0/kio/kio/job.cpp:494
#21 0x00007fbf7b65abed in KIO::TransferJob::slotFinished (this=0x7df710) at /usr/src/debug/kdelibs-4.8.0/kio/kio/job.cpp:1081
#22 0x00007fbf7c658771 in QMetaObject::activate (sender=0x7d8130, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3556
#23 0x00007fbf7b700a31 in KIO::SlaveInterface::dispatch (this=<optimized out>, _cmd=104, rawdata=...) at /usr/src/debug/kdelibs-4.8.0/kio/kio/slaveinterface.cpp:172
#24 0x00007fbf7b6fd7e5 in KIO::SlaveInterface::dispatch (this=<optimized out>) at /usr/src/debug/kdelibs-4.8.0/kio/kio/slaveinterface.cpp:88
#25 0x00007fbf7b6f0a5e in KIO::Slave::gotInput (this=0x7d8130) at /usr/src/debug/kdelibs-4.8.0/kio/kio/slave.cpp:344
#26 0x00007fbf7c658771 in QMetaObject::activate (sender=0x812a50, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3556
#27 0x00007fbf7b623d87 in dequeue (this=<optimized out>) at /usr/src/debug/kdelibs-4.8.0/kio/kio/connection.cpp:82
#28 KIO::ConnectionPrivate::dequeue (this=0x81c010) at /usr/src/debug/kdelibs-4.8.0/kio/kio/connection.cpp:71
#29 0x00007fbf7c65d936 in QObject::event (this=0x812a50, e=<optimized out>) at kernel/qobject.cpp:1204
#30 0x00007fbf7a18fed4 in notify_helper (e=0x81c100, receiver=0x812a50, this=0x642460) at kernel/qapplication.cpp:4550
#31 QApplicationPrivate::notify_helper (this=0x642460, receiver=0x812a50, e=0x81c100) at kernel/qapplication.cpp:4522
#32 0x00007fbf7a194d53 in QApplication::notify (this=0x7fff0e67c150, receiver=0x812a50, e=0x81c100) at kernel/qapplication.cpp:4411
#33 0x00007fbf7aed3786 in KApplication::notify (this=0x7fff0e67c150, receiver=0x812a50, event=0x81c100) at /usr/src/debug/kdelibs-4.8.0/kdeui/kernel/kapplication.cpp:311
#34 0x00007fbf7c6448ac in QCoreApplication::notifyInternal (this=0x7fff0e67c150, receiver=0x812a50, event=0x81c100) at kernel/qcoreapplication.cpp:876
#35 0x00007fbf7c64814a in sendEvent (event=0x81c100, receiver=0x812a50) at kernel/qcoreapplication.h:231
#36 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x620720) at kernel/qcoreapplication.cpp:1500
#37 0x00007fbf7c6734d3 in sendPostedEvents () at kernel/qcoreapplication.h:236
#38 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:279
#39 0x00007fbf7809758d in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#40 0x00007fbf78097d88 in ?? () from /usr/lib64/libglib-2.0.so.0
#41 0x00007fbf78097f59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#42 0x00007fbf7c6738ff in QEventDispatcherGlib::processEvents (this=0x620000, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#43 0x00007fbf7a23339e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#44 0x00007fbf7c643692 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#45 0x00007fbf7c6438e7 in QEventLoop::exec (this=0x7fff0e67c0d0, flags=...) at kernel/qeventloop.cpp:204
#46 0x00007fbf7c648445 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#47 0x00007fbf7ccbccb7 in Akonadi::ResourceBase::init (r=0x888c50) at /usr/src/debug/kdepimlibs-4.8.0/akonadi/resourcebase.cpp:408
#48 0x0000000000410c16 in Akonadi::ResourceBase::init<ContactsResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/akonadi/resourcebase.h:188
#49 0x00007fbf7972423d in __libc_start_main () from /lib64/libc.so.6
#50 0x0000000000409fb1 in _start () at ../sysdeps/x86_64/elf/start.S:113

Reported using DrKonqi
Comment 1 Blackpaw 2012-02-14 02:23:25 UTC
I can replicate this 100% of the time. Built from trunk, Kubuntu 12.04 64 bit.
Comment 2 Blackpaw 2012-02-14 11:17:06 UTC
Created attachment 68784 [details]
New crash information added by DrKonqi

akonadi_googlecalendar_resource (4.8) on KDE Platform 4.8.00 (4.8.0 using Qt 4.8.0

- What I was doing when the application crashed:

akonadi was just starting up after a reboot when the google calendar resource crashed when finishing its sync. 

Having looked at the statck dump and the source code the crash looked *very* similar to what happens with contacts.

-- Backtrace (Reduced):
#6  Akonadi::ItemSync::setStreamingEnabled (this=0x0, enable=false) at ../../akonadi/itemsync.cpp:436
#7  0x00007f68de319f59 in Akonadi::ResourceBase::setItemStreamingEnabled (this=<optimized out>, enable=false) at ../../akonadi/resourcebase.cpp:894
#8  0x000000000040b6d9 in CalendarResource::commitItemsList (this=0x15530b0) at /home/lindsay/Projects/akonadi-google/calendar/calendarresource.cpp:475
[...]
#10 0x00007f68dc3d1ca2 in KGoogle::KGoogleAccessManager::requestFinished (this=<optimized out>, _t1=0x15a1130) at /home/lindsay/Projects/akonadi-google/build/libkgoogle/moc_kgoogleaccessmanager.cpp:130
#11 0x00007f68dc3d7580 in KGoogle::KGoogleAccessManager::nam_replyReceived (this=0x158bf60, reply=<optimized out>) at /home/lindsay/Projects/akonadi-google/libkgoogle/kgoogleaccessmanager.cpp:200
Comment 3 Daniel Vrátil 2012-02-14 18:23:08 UTC
Thanks both for taking time to report the crash. The issue should be now fixed in the git.

Fixed by commit master/90af8ab2d66d42c7b59ee70cc25964cf9e1654e4.
Comment 4 Blackpaw 2012-02-14 21:50:16 UTC
Can confirm definitely fixes the issues for me. Contacts, Calendar and Tasks now sync'ing two ways with no issues.

Thanks very much!
Comment 5 Hrvoje Senjan 2012-02-15 07:21:42 UTC
Also confirming this is fixed, thanks Dan!
Comment 6 Daniel Vrátil 2012-02-17 07:13:45 UTC
*** Bug 294146 has been marked as a duplicate of this bug. ***
Comment 7 Daniel Vrátil 2012-02-19 18:12:17 UTC
*** Bug 294419 has been marked as a duplicate of this bug. ***