[Kde-pim] Problem with bulk fetching of items with 4.8

Shaheed Haque srhaque at theiet.org
Thu Jan 26 22:12:27 GMT 2012


Hi,

I just upgraded to kde 4.8 etc., and now I'm running into a problem with
the Exchange Contacts resource (the one in the playground). Basically, the
problem is that I am trying to retrieve ~467,000 contacts, and so rather
than the normal scheme of crreating "skeleton" item in retrieveItems(), and
then fetching the full item in retrieveItem(), I've been creating the full
item (i.e. with a payload) by kicking off a scheduleCustomTask from
retrieveItems().

I do this because the API to Exchange allows me to fetch multiple items at
a time, and I take advantage of this to get several hundred with each
scheduleCustomTask in streaming mode, with calls
to itemsRetrievedIncremental()/itemsRetrieved() as needed, rather than the
467,000 calls I'd need (plus the logon/logoff for each!) if I used
retrieveItem(). This was working fine until I upgraded to 4.8 last night,
and now I get this error logged:

akonadi_exgal_resource_218(4560)/libakonadi
Akonadi::ResourceBasePrivate::createItemSyncInstanceIfMissing: Calling
items retrieval

followed by a SIGSEGV. Is there something I can do to allow items to be
created from the custom task? Any other suggestions on how to handle this
in an efficient manner?

Thanks, Shaheed

P.S. FWIW, the stack trace looks like this:

Application: Exchange Contacts for Cisco of type Exchange Address Lists
(akonadi_exgal_resource), signal: Segmentation fault

[KCrash Handler]

#6 Akonadi::ItemSync::setIncrementalSyncItems (this=0x0, changedItems=...,
removedItems=...) at ../../akonadi/itemsync.cpp:172

#7 0x00007fc6f5fcc951 in Akonadi::ResourceBase::itemsRetrievedIncremental
(this=<optimized out>, changedItems=..., removedItems=...) at
../../akonadi/resourcebase.cpp:908

#8 0x0000000000413475 in ExGalResource::retrieveGALItems (this=0xbb0c30,
count=300, fetchStatus=0xc2a83b0) at
/home/srhaque/akonadi/exchange/contacts/exgalresource.cpp:765

#9 0x0000000000414511 in ExGalResource::retrieveGALItems (this=0xbb0c30,
countVariant=...) at
/home/srhaque/akonadi/exchange/contacts/exgalresource.cpp:677

#10 0x00000000004146cd in ExGalResource::qt_metacall (this=0xbb0c30,
_c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fff95717ae0) at
/home/srhaque/build/exchange/contacts/exgalresource.moc:91

#11 0x00007fc6f533a4ae in QMetaMethod::invoke (this=0x7fff95717cc0,
object=0xbb0c30, connectionType=Qt::DirectConnection, returnValue=...,
val0=..., val1=..., val2=..., val3=..., val4=..., val5=..., val6=...,
val7=..., val8=..., val9=...) at kernel/qmetaobject.cpp:1597

.

.

.
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list