Summary: | Akonadi Resource crash "ASSERT in createItemSyncInstance" | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Raphael Kubo da Costa <rakuco> |
Component: | IMAP resource | Assignee: | Kevin Ottens <ervin> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | alex.merry, chrigi_1, faure, kdepim-bugs, simon, vkrause, winter |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | FreeBSD | ||
Latest Commit: | Version Fixed In: | 4.8.0 | |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi |
Description
Raphael Kubo da Costa
2010-12-14 05:45:22 UTC
FWIW, akonadi is enterprise5.0-20101203-13-g446e74a, kdepimlibs is r1206271 and kdepim is r1206271 (both trunk). *** Bug 256820 has been marked as a duplicate of this bug. *** *** Bug 250705 has been marked as a duplicate of this bug. *** *** Bug 252789 has been marked as a duplicate of this bug. *** Created attachment 59356 [details]
New crash information added by DrKonqi
akonadi_imap_resource (0.1) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2
- What I was doing when the application crashed:
closed kmail2 while imap was syncing
- Custom settings of the application:
set resource offline when kmail is closed is enabled
-- Backtrace (Reduced):
#11 0x00007f55494a7514 in Akonadi::ResourceBasePrivate::createItemSyncInstanceIfMissing (this=0x869080) at /home/chrigi/devel/kde/kdepimlibs/akonadi/resourcebase.cpp:150
#12 0x00007f55494a5a5a in Akonadi::ResourceBase::itemsRetrieved (this=0x870030, items=...) at /home/chrigi/devel/kde/kdepimlibs/akonadi/resourcebase.cpp:869
#13 0x000000000042c6b3 in ResourceState::itemsRetrieved (this=0x930e60, items=...) at /home/chrigi/devel/kde/kdepim-runtime/resources/imap/resourcestate.cpp:331
#14 0x00000000004568c9 in ResourceTask::itemsRetrieved (this=0xa67290, items=...) at /home/chrigi/devel/kde/kdepim-runtime/resources/imap/resourcetask.cpp:240
#15 0x00000000004637e3 in RetrieveItemsTask::onFlagsReceived (this=0xa67290, mailBox=..., uids=..., sizes=..., flags=..., messages=...) at /home/chrigi/devel/kde/kdepim-runtime/resources/imap/retrieveitemstask.cpp:406
reproduced in master after: - setting up a dimap account in akonadiconsole, - while the messages are synced, edit the resource settings and unsubscribe some folders output: akonadi_imap_resource_2(16970) ImapResource::doSetOnline: online= false akonadi_imap_resource_2(16970) ImapResource::doSetOnline: online= true ASSERT failure in createItemSyncInstance: "Calling items retrieval methods although no item retrieval is in progress", file /kde/src/kdepimlibs/akonadi/resourcebase.cpp, line 155 Lost connection to resource "org.freedesktop.Akonadi.Resource.akonadi_imap_resource_2" , discarding cached interface void Akonadi::NotificationSource::serviceUnregistered(const QString&) Notification source "akonadi_imap_resource_2" now serving: () void Akonadi::NotificationSource::unsubscribe() "akonadi_imap_resource_2" KCrash: Application 'akonadi_imap_resource' crashing... KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit sock_file=/home/krop/.kde/socket-yuuko/kdeinit4__0 QSocketNotifier: Invalid socket 22 and type 'Read', disabling... QSocketNotifier: Invalid socket 23 and type 'Write', disabling... QSocketNotifier: Invalid socket 16 and type 'Read', disabling... The stream parser raised an exception: Unable to read more data "Cannot connect to agent instance with identifier 'akonadi_imap_resource_2', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_imap_resource_2': no such name'" #11 0x00007f3a83aa8d6e in qt_assert_x (where=<optimized out>, what=<optimized out>, file=<optimized out>, line=<optimized out>) at global/qglobal.cpp:2044 #12 0x00007f3a842bbc1c in Akonadi::ResourceBasePrivate::createItemSyncInstanceIfMissing (this=0x791070) at /kde/src/kdepimlibs/akonadi/resourcebase.cpp:154 #13 0x00007f3a842ba138 in Akonadi::ResourceBase::itemsRetrieved (this=0x878b10, items=...) at /kde/src/kdepimlibs/akonadi/resourcebase.cpp:888 #14 0x0000000000420cdb in ResourceState::itemsRetrieved (this=0x9adc80, items=...) at /kde/src/kdepim-runtime/resources/imap/resourcestate.cpp:331 #15 0x000000000044bae1 in ResourceTask::itemsRetrieved (this=0xbf1ef0, items=...) at /kde/src/kdepim-runtime/resources/imap/resourcetask.cpp:240 #16 0x00000000004589df in RetrieveItemsTask::onHeadersReceived (this=0xbf1ef0, mailBox=..., uids=..., sizes=..., flags=..., messages=...) at /kde/src/kdepim-runtime/resources/imap/retrieveitemstask.cpp:361 #17 0x00000000004592cf in RetrieveItemsTask::qt_metacall (this=0xbf1ef0, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fff18450250) at /kde/build/kdepim-runtime/resources/imap/retrieveitemstask.moc:90 #18 0x00007f3a83bab3fa in QMetaObject::activate (sender=0x9d50d0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff18450250) at kernel/qobject.cpp:3287 #19 0x00007f3a8280df1a in KIMAP::FetchJob::headersReceived (this=0x9d50d0, _t1=..., _t2=..., _t3=..., _t4=..., _t5=...) at /kde/build/kdepimlibs/kimap/fetchjob.moc:101 #20 0x00007f3a8280ebaf in KIMAP::FetchJobPrivate::emitPendings (this=0x9f5a30) at /kde/src/kdepimlibs/kimap/fetchjob.cpp:57 #21 0x00007f3a8280de91 in KIMAP::FetchJob::qt_metacall (this=0x9d50d0, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fff18450320) at /kde/build/kdepimlibs/kimap/fetchjob.moc:89 #22 0x00007f3a83bab3fa in QMetaObject::activate (sender=0x9f5a80, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3287 Created attachment 64487 [details]
New crash information added by DrKonqi
akonadi_imap_resource (.) on KDE Platform 4.7.40 (4.7.40 (KDE 4.8 >= 200110623) using Qt 4.7.4
- What I was doing when the application crashed:
Changed the serverside subscription (added some folders)
-- Backtrace (Reduced):
#11 0x00007f6215308096 in Akonadi::ResourceBasePrivate::createItemSyncInstanceIfMissing (this=0x1353c00) at /home/chrigi/devel/kde/kdepimlibs/akonadi/resourcebase.cpp:154
#12 0x00007f62153066a0 in Akonadi::ResourceBase::itemsRetrieved (this=0x135dae0, items=...) at /home/chrigi/devel/kde/kdepimlibs/akonadi/resourcebase.cpp:892
#13 0x0000000000420cfb in ResourceState::itemsRetrieved (this=0x18f62d0, items=...) at /home/chrigi/devel/kde/kdepim-runtime/resources/imap/resourcestate.cpp:331
#14 0x000000000044bb15 in ResourceTask::itemsRetrieved (this=0x17df440, items=...) at /home/chrigi/devel/kde/kdepim-runtime/resources/imap/resourcetask.cpp:240
#15 0x000000000045900b in RetrieveItemsTask::onFlagsReceived (this=0x17df440, mailBox=..., uids=..., sizes=..., flags=..., messages=...) at /home/chrigi/devel/kde/kdepim-runtime/resources/imap/retrieveitemstask.cpp:416
I was able to trigger this one by simply doing "RMB / Toggle offline-online" on akonadiconsole, on an imap resource while it was syncing. If that helps... my fix for this would be to do a conditional check instead of an assert. in fact, i've been doing just that in my local sandbox for a few weeks. I committed a version of my fix mentioned in Comment #9 for 4.8. so closing this one. |