Summary: | Crash of Akonadi CardCalDav | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Daniel Wrana <wrana> |
Component: | DAV Resource | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | dbyentzen, greg, mattz, sven |
Priority: | NOR | Keywords: | drkonqi |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdepim-runtime/c94e23a452d410d2c2e4033fb76261d969f19b92 | Version Fixed In: | 15.12.2 |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
ATT08610.xsession-errors ATT93858.xsession-errors Check mEtagCaches[collection.remoteId()] result before using it |
Description
Daniel Wrana
2015-11-07 14:33:17 UTC
Created attachment 96012 [details]
New crash information added by DrKonqi
akonadi_davgroupware_resource (4.89.0) using Qt 5.4.2
- What I was doing when the application crashed:
- nothing... happens periodically, seemingly random...
- also happens at times when I am reading emails (hotmail on firefox)
- I cannot see any pattern in this, timing or activity, but it happens several times during a day and has become quite annoying.
Thank you,
Matt Z.
-- Backtrace (Reduced):
#6 QString::QString (other=..., this=this@entry=0x7ffd61a82370) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:811
#7 Akonadi::Entity::remoteId (this=this@entry=0x7ff580639518 <QArrayData::shared_null+24>) at ../../../../akonadi/src/core/entity.cpp:82
#8 0x0000000000468b7e in DavGroupwareResource::retrieveItems (this=this@entry=0x137ca80, collection=...) at ../../../../resources/dav/resource/davgroupwareresource.cpp:257
#9 0x00007ff583c9a32d in Akonadi::ResourceBasePrivate::slotItemRetrievalCollectionFetchDone (this=<optimized out>, job=0x13b33a0) at ../../../../akonadi/src/agentbase/resourcebase.cpp:954
#10 0x00007ff583c9c200 in Akonadi::ResourceBase::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./moc_resourcebase.cpp:294
*** Bug 358510 has been marked as a duplicate of this bug. *** Am new to linux, kubuntu, and still learning but perhaps the following will help... Just guessing, but it seems to me possibly some kind of mismatch between server resource database and what is actually out there? I did at one point delete both 'resources' adn started over... idk, hth _____________________________________ from "Current Akonadi server error log" -- repeated many times over... "Cannot connect to agent instance with identifier 'akonadi_davgroupware_resource_8', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_davgroupware_resource_8': no such name'" "Cannot connect to agent instance with identifier 'akonadi_davgroupware_resource_8', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_davgroupware_resource_8': no such name'" "Cannot connect to agent instance with identifier 'akonadi_davgroupware_resource_8', error message: 'Could not get owner of name 'org.freedesktop.Akonadi.Resource.akonadi_davgroupware_resource_8': no such name'" _____________________________________ Listing command: ~$ find -name "*groupware*" ./.kde/share/config/akonadi_davgroupware_resource_3rc ./.kde/share/config/akonadi_davgroupware_resource_6rc ./.kde/share/apps/akonadi-davgroupware ./.kde/share/apps/akonadi-davgroupware/akonadi_davgroupware_resource_6_c2u.dat ./.kde/share/apps/akonadi-davgroupware/akonadi_davgroupware_resource_2_c2u.dat ./Temp/davgroupware_002.jpg ./Temp/davgroupware_001.jpg ./.config/akonadi_davgroupware_resource_3rc ./.config/akonadi/agent_config_akonadi_davgroupware_resource_3_changes.dat ./.config/akonadi/agent_config_akonadi_davgroupware_resource_3 ./.config/akonadi/agent_config_akonadi_davgroupware_resource_8_changes.dat ./.config/akonadi/agent_config_akonadi_davgroupware_resource_8 ./.config/akonadi_davgroupware_resource_8rc _____________________________________ -end- OK, thanks. I'm going to take a closer look at this. Not new to Linux but am new to trying to learn and contribute more. Interesting thing about this bug appeared only after I configured my contacts using LDAP. I just now went back into Kontacts and had to manually "activate¨ contacts and restart the LDAP. So far, no crash. (In reply to Matt Z. from comment #3) > "Cannot connect to agent instance with identifier > 'akonadi_davgroupware_resource_8', error message: 'Could not get owner of > name 'org.freedesktop.Akonadi.Resource.akonadi_davgroupware_resource_8': no > such name'" This is because the resource crashed. > ./.config/akonadi/agent_config_akonadi_davgroupware_resource_8_changes.dat > ./.config/akonadi/agent_config_akonadi_davgroupware_resource_8 > ./.config/akonadi_davgroupware_resource_8rc So this resource has pending changes waiting, and one of them may trigger the crash. Don't delete these files just now :) Can you start "kdebugsettings", search for the dav resource (type "dav" in the search bar), restart it, and then paste here what's show in your ~/.xsession-errors (or ~/.xsessions-errors-:0 maybe)? Created attachment 97093 [details] ATT08610.xsession-errors OK, I hope I got the instructions right... I rebooted & had to set kdebugsettings again... here is the current .xsession-errors (no app crash). HTH. Matt ________________________________________ From: Grégory Oestreicher via KDE Bugzilla <bugzilla_noreply@kde.org> Sent: Monday, February 8, 2016 2:12 PM To: mattz@hotmail.com Subject: [Akonadi] [Bug 354994] Crash of Akonadi CardCalDav https://bugs.kde.org/show_bug.cgi?id=354994 Grégory Oestreicher <greg@kamago.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |greg@kamago.net --- Comment #5 from Grégory Oestreicher <greg@kamago.net> --- (In reply to Matt Z. from comment #3) > "Cannot connect to agent instance with identifier > 'akonadi_davgroupware_resource_8', error message: 'Could not get owner of > name 'org.freedesktop.Akonadi.Resource.akonadi_davgroupware_resource_8': no > such name'" This is because the resource crashed. > ./.config/akonadi/agent_config_akonadi_davgroupware_resource_8_changes.dat > ./.config/akonadi/agent_config_akonadi_davgroupware_resource_8 > ./.config/akonadi_davgroupware_resource_8rc So this resource has pending changes waiting, and one of them may trigger the crash. Don't delete these files just now :) Can you start "kdebugsettings", search for the dav resource (type "dav" in the search bar), restart it, and then paste here what's show in your ~/.xsession-errors (or ~/.xsessions-errors-:0 maybe)? -- You are receiving this mail because: You are on the CC list for the bug. (In reply to Matt Z. from comment #6) > OK, I hope I got the instructions right... Definitely :) There are logs only available when in debug mode, thanks! > here is the current .xsession-errors (no app crash). Once the resource has crashed could you send this file again? This one is not containing anything that may point me in the right direction unfortunately. Created attachment 97097 [details] ATT93858.xsession-errors OK... rebooted again and this time the change in kdebugsettings "stuck", all other items unchecked (my untrained eye does't see much difference in the log)... had one crash, file attached. a note: neither file was changed during this time... I just let the computer sit idle. I noticed that at line 1078, there is an error (under Matt_Addr.vcf)... whereas at line 1100 there is no error (under Matt_Cal.ics). Kind of similar error around line 2899... still no changes in either file's data. I only had one crash (that I'm aware of) and at 3288 there is a crash message. Then at 3451 is the "Cannot connect to agent..." message. HTH, Matt ________________________________________ From: Grégory Oestreicher via KDE Bugzilla <bugzilla_noreply@kde.org> Sent: Monday, February 8, 2016 4:26 PM To: mattz@hotmail.com Subject: [Akonadi] [Bug 354994] Crash of Akonadi CardCalDav https://bugs.kde.org/show_bug.cgi?id=354994 --- Comment #7 from Grégory Oestreicher <greg@kamago.net> --- (In reply to Matt Z. from comment #6) > OK, I hope I got the instructions right... Definitely :) There are logs only available when in debug mode, thanks! > here is the current .xsession-errors (no app crash). Once the resource has crashed could you send this file again? This one is not containing anything that may point me in the right direction unfortunately. -- You are receiving this mail because: You are on the CC list for the bug. I'm a bit stumped here :| There are a lot of "Unhandled response" message and this looks like there's a race condition somewhere. Do you have two resources querying the same server or one resource with one CalDAV URL and one CardDAV URL? I (think) one... on android phone I have one davdroid 'account' with 2 urls, 1 CalDAV & 1 CardDAV... does that the answer your question (properly)? ________________________________________ From: Grégory Oestreicher via KDE Bugzilla <bugzilla_noreply@kde.org> Sent: Tuesday, February 9, 2016 3:19 PM To: mattz@hotmail.com Subject: [Akonadi] [Bug 354994] Crash of Akonadi CardCalDav https://bugs.kde.org/show_bug.cgi?id=354994 --- Comment #9 from Grégory Oestreicher <greg@kamago.net> --- I'm a bit stumped here :| There are a lot of "Unhandled response" message and this looks like there's a race condition somewhere. Do you have two resources querying the same server or one resource with one CalDAV URL and one CardDAV URL? -- You are receiving this mail because: You are on the CC list for the bug. Git commit c94e23a452d410d2c2e4033fb76261d969f19b92 by Grégory Oestreicher. Committed on 10/02/2016 at 20:25. Pushed by goestreicher into branch 'Applications/15.12'. Check that we've been given a valid collection in retrieveItems() FIXED-IN: 15.12.2 M +5 -0 resources/dav/resource/davgroupwareresource.cpp http://commits.kde.org/kdepim-runtime/c94e23a452d410d2c2e4033fb76261d969f19b92 Hmm... I've updated to 15.12.2 but all mails regarding exchange calendar invitations still crash the resource. Maybe I hit a different bug? I got: "akonadi_davgroupware_resource" Signal: Segmentation fault (11) The most interesting lines from the backtrace are: -------- #5 <signal handler called> #6 QMap<QString, QString>::detach (this=0x10) at /usr/include/qt5/QtCore/qmap.h:364 #7 QMap<QString, QString>::operator[] (akey=..., this=0x10) at /usr/include/qt5/QtCore/qmap.h:629 #8 EtagCache::setEtag (this=0x0, remoteId=..., etag=...) at /home/portage/kde-apps/kdepim-runtime-15.12.2/work/kdepim-runtime-15.12.2/resources/dav/common/etagcache.cpp:38 #9 0x00000000004719ed in DavGroupwareResource::onItemFetched (this=0x1239990, job=<optimized out>, updateType=DavGroupwareResource::ItemUpdateAdd) at /home/portage/kde-apps/kdepim-runtime-15.12.2/work/kdepim-runtime-15.12.2/resources/dav/resource/davgroupwareresource.cpp:958 -------- See frame #8 where 'this' is 0x0? Frame #8 source is: -------- (gdb) frame 8 #8 EtagCache::setEtag (this=0x0, remoteId=..., etag=...) at /home/portage/kde-apps/kdepim-runtime-15.12.2/work/kdepim-runtime-15.12.2/resources/dav/common/etagcache.cpp:38 38 mCache[ remoteId ] = etag; -------- Frame #9 source is: -------- (gdb) frame 9 #9 0x00000000004719ed in DavGroupwareResource::onItemFetched (this=0x1239990, job=<optimized out>, updateType=DavGroupwareResource::ItemUpdateAdd) at /home/portage/kde-apps/kdepim-runtime-15.12.2/work/kdepim-runtime-15.12.2/resources/dav/resource/davgroupwareresource.cpp:958 958 mEtagCaches[collection.remoteId()]->setEtag(item.remoteId(), davItem.etag()); -------- So I *guess* collection.remoteId() should be checked first... Created attachment 97378 [details]
Check mEtagCaches[collection.remoteId()] result before using it
The patch fixed the crash for me. However, I *do* think that it is a different issue, but at least you now know about it. ;-)
Thank you Grégory, I'm still trying to figure out how to tell when I get this update so I could report back with results or confirmation of fix... but because I don't know (as yet) if I have the update, I figured I'd wait a bit... while the crashes continued. Meanwhile, as of Feb 28th, since I was still having crashes, I did a bit more digging... I found a file -- .kde/share/config/akonadi_ical_resource_2rc -- which referenced an old/original calendar which was set up when claendar app was first loaded and subsequently deleted when I went with a single calendar using davgroupware (so the item/file referenced in this file did not exist)... as an experiment, I deleted the file and have had no crashes since then (no system updates have been installed since file was deleted). Normally I would have had 10-20 crashes by now, so it seems like deleting the file resolved the issue. System has been rebooted, both calendar & addressbook updates to phone work, and I do not seem to be experiencing any problems with either app or related data. HTH, Matt ________________________________________ From: Grégory Oestreicher via KDE Bugzilla <bugzilla_noreply@kde.org> Sent: Wednesday, February 10, 2016 3:26 PM To: mattz@hotmail.com Subject: [Akonadi] [Bug 354994] Crash of Akonadi CardCalDav https://bugs.kde.org/show_bug.cgi?id=354994 Grégory Oestreicher <greg@kamago.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Version Fixed In| |15.12.2 Status|UNCONFIRMED |RESOLVED Latest Commit| |http://commits.kde.org/kdep | |im-runtime/c94e23a452d410d2 | |c2e4033fb76261d969f19b92 Resolution|--- |FIXED --- Comment #11 from Grégory Oestreicher <greg@kamago.net> --- Git commit c94e23a452d410d2c2e4033fb76261d969f19b92 by Grégory Oestreicher. Committed on 10/02/2016 at 20:25. Pushed by goestreicher into branch 'Applications/15.12'. Check that we've been given a valid collection in retrieveItems() FIXED-IN: 15.12.2 M +5 -0 resources/dav/resource/davgroupwareresource.cpp http://commits.kde.org/kdepim-runtime/c94e23a452d410d2c2e4033fb76261d969f19b92 -- You are receiving this mail because: You are on the CC list for the bug. |