Bug 317045 - Google Contacts resource crashes while syncing
Summary: Google Contacts resource crashes while syncing
Status: RESOLVED NOT A BUG
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Google Resource (show other bugs)
Version: GIT (master)
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-19 20:29 UTC by Blackpaw
Modified: 2013-03-21 05:16 UTC (History)
2 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 Blackpaw 2013-03-19 20:29:31 UTC
After adding the resource via akonadiconsole and switching to kontact/kaddressbook to view it the resource constantly crashes

Note:It is still syncing at the time

Reproducible: Always

Steps to Reproduce:
1. Add a google contacts resource via akonadiconsole
2. Switch to kontact and view the address book

Actual Results:  
The resource crashes and keeps on crashing on restart

Expected Results:  
A view of the currently syncing contacts

Stack Trace

Application: akonadi_googlecontacts_resource (4.10)
KDE Platform Version: 4.10.1
Qt Version: 4.8.4
Operating System: Linux 3.8.0-13-generic x86_64
Distribution: Ubuntu Raring Ringtail (development branch)

-- Information about the crash:
<In detail, tell us what you were doing  when the application crashed.>

The crash can be reproduced every time.

-- Backtrace:
Application: Google Contacts (akonadi_googlecontacts_resource), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#5  0x00007fcd9afa7a17 in QString::operator=(QString const&) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x000000000040e692 in ContactsResource::contactListReceived (this=0x124a950, job=<optimized out>) at /home/lindsay/Projects/akonadi/kdepim-runtime/resources/google/contacts/contactsresource.cpp:520
#7  0x00007fcd9b06f0df in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fcd9a58ceff in KJob::finished(KJob*) () from /usr/lib/libkdecore.so.5
#9  0x00007fcd9a58d145 in KJob::emitResult() () from /usr/lib/libkdecore.so.5
#10 0x00007fcd9b06f0df in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007fcd99d709c2 in KGAPI::AccessManager::requestFinished(KGAPI::Request*) () from /usr/lib/x86_64-linux-gnu/libkgapi.so.0
#12 0x00007fcd99d754a0 in ?? () from /usr/lib/x86_64-linux-gnu/libkgapi.so.0
#13 0x00007fcd9b06f0df in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#14 0x00007fcd9a986332 in QNetworkAccessManager::finished(QNetworkReply*) () from /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4
#15 0x00007fcd9a986381 in ?? () from /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4
#16 0x00007fcd9b06f0df in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#17 0x00007fcd9b062ac7 in QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x00007fcd9b064e9c in QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#19 0x00007fcd9a08038c in ?? () from /usr/lib/libkio.so.5
#20 0x00007fcd9a0823c5 in ?? () from /usr/lib/libkio.so.5
#21 0x00007fcd9b06f0df in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#22 0x00007fcd9a58d112 in KJob::result(KJob*) () from /usr/lib/libkdecore.so.5
#23 0x00007fcd9a58d150 in KJob::emitResult() () from /usr/lib/libkdecore.so.5
#24 0x00007fcd9a0bdaf5 in KIO::SimpleJob::slotFinished() () from /usr/lib/libkio.so.5
#25 0x00007fcd9a0bdf92 in KIO::TransferJob::slotFinished() () from /usr/lib/libkio.so.5
#26 0x00007fcd9b06f0df in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#27 0x00007fcd9a158931 in KIO::SlaveInterface::dispatch(int, QByteArray const&) () from /usr/lib/libkio.so.5
#28 0x00007fcd9a155a6a in KIO::SlaveInterface::dispatch() () from /usr/lib/libkio.so.5
#29 0x00007fcd9a14a00e in KIO::Slave::gotInput() () from /usr/lib/libkio.so.5
#30 0x00007fcd9b06f0df in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#31 0x00007fcd9a089d42 in ?? () from /usr/lib/libkio.so.5
#32 0x00007fcd9b0745ae in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#33 0x00007fcd98c2a8ec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#34 0x00007fcd98c2d25b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#35 0x00007fcd99937af6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#36 0x00007fcd9b05a62e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#37 0x00007fcd9b05e161 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#38 0x00007fcd9b088e73 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#39 0x00007fcd96f10e85 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007fcd96f111c8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007fcd96f11284 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007fcd9b089006 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#43 0x00007fcd98cd01ae in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#44 0x00007fcd9b05937f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#45 0x00007fcd9b059608 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#46 0x00007fcd9b05ece6 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#47 0x00007fcd9b799ad5 in Akonadi::ResourceBase::init (r=0x124a950) at /home/lindsay/Projects/akonadi/kdepimlibs/akonadi/resourcebase.cpp:452
#48 0x0000000000413758 in Akonadi::ResourceBase::init<ContactsResource> (argc=<optimized out>, argv=<optimized out>) at /usr/include/KDE/Akonadi/../../akonadi/resourcebase.h:191
#49 0x00007fcd9819fea5 in __libc_start_main (main=0x40aac0 <main(int, char**)>, argc=3, ubp_av=0x7fffac15aaa8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffac15aa98) at libc-start.c:260
#50 0x000000000040aaf1 in _start ()

Report to https://bugs.kde.org/
Comment 1 Daniel Vrátil 2013-03-19 22:22:51 UTC
This is the old Google Contacts resource running against stable LibKGAPI. The crash is caused by a bug in LibKGAPI that has been fixed in master. Could you try to reproduce the crash with LibKGAPI master?
Comment 2 Blackpaw 2013-03-19 23:55:54 UTC
It is libKGAPI master, or should be.

Where is the new google contacts resource?
Comment 3 Daniel Vrátil 2013-03-20 00:27:55 UTC
Unless you have LibKGAPI master installed in /usr, you are not using it:

#11 0x00007fcd99d709c2 in KGAPI::AccessManager::requestFinished(KGAPI::Request*) () from /usr/lib/x86_64-linux-gnu/libkgapi.so.0

The new Contacts resource is available (together with the Calendar one) in current git master. This crash is not reported against it, because there is no ContactsResource::contactListReceived in current master :-)
Comment 4 Blackpaw 2013-03-20 00:42:11 UTC
Thats the oddball thing, I am installing https://projects.kde.org/projects/extragear/libs/libkgapi/repository to /usr.

Do I need to enable anything special in the cmake call? just doing:

  cmake .. -DCMAKE_INSTALL_PREFIX=/usr

>The new Contacts resource is available (together with the Calendar one) in current git master. 

Current git master of what? :)
Comment 5 Daniel Vrátil 2013-03-20 09:10:47 UTC
No, the LibKGAPI is fine in that case.

All Akonadi resources are in kdepim-runtime. The build path says 

#6 0x000000000040e692 in ContactsResource::contactListReceived (this=0x124a950, job=<optimized out>) at /home/lindsay/Projects/akonadi/kdepim-runtime/resources/google/contacts/contactsresource.cpp:520

So maybe you just built KDE/4.10 branch? :-)
Comment 6 Blackpaw 2013-03-20 10:37:14 UTC
>So maybe you just built KDE/4.10 branch? :-)

D'oh! thats it, I'm building vhanda's feeder branch. I'll swicth back to master and test
Comment 7 Blackpaw 2013-03-20 11:46:19 UTC
Switched to master, no longer crashes but getting original problem I mentioned on your blog - never appears in kaddressbook, not even the address book entry and its status never changes from "Ready" in akonadiconsole - no syncing msgs.