Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 604278 - kde-apps/akonadi crashes on retrieving mail from IMAP server (Wrong payload type)
Summary: kde-apps/akonadi crashes on retrieving mail from IMAP server (Wrong payload t...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-31 19:52 UTC by Marek
Modified: 2017-01-02 09:56 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek 2016-12-31 19:52:02 UTC
I have recently recompiled some of the packages on my machine (as several of them were outdated, like protobuf) and ended up with a non-functional kmail due to akonadi. I might have done something wrong, but honestly cannot find a legitimate reason. 

As of now I have tried to remove all akonadi-related files and folders:
~/.config/akonadi*
~/.local/share/akonadi*
and restarted akonadi
(tried the above steps a few times)

but when I create a new kmail account (IMAP), it starts to retrieve data from it and then crashes with the following log:

...
org.kde.akonadi.ETM: was collection fetch job: collections: 7
org.kde.akonadi.ETM: first fetched collection: "Search"
org.kde.akonadi.ETM: Fetch job took  0 msec
org.kde.akonadi.ETM: was collection fetch job: collections: 0
org.kde.akonadi.ETM: Fetch job took  1 msec
org.kde.akonadi.ETM: was collection fetch job: collections: 0
terminate called after throwing an instance of 'Akonadi::PayloadException'
  what():  Akonadi::PayloadException: Wrong payload type (requested: sp(0)<QByteArray>; present: sp(2)<KMime::Message*>
org.kde.pim.akonadicontrol: ProcessControl: Application "/usr/bin/akonadi_imap_resource" stopped unexpectedly ( "Process crashed" )
org.kde.pim.akonadicontrol: Application '/usr/bin/akonadi_imap_resource' crashed too often. Giving up!
org.kde.pim.akonadiserver: Unknown exception caught in Connection for session "akonadi_imap_resource_0"
terminate called after throwing an instance of 'Akonadi::ProtocolException'
  what():  Failed to write data to stream
QSocketNotifier: Invalid socket 6 and type 'Read', disabling...
QSocketNotifier: Invalid socket 18 and type 'Read', disabling...
KCrash: Application 'akonadiserver' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
sock_file=/var/run/user/1000/kdeinit5__0
QSocketNotifier: Invalid socket 8 and type 'Read', disabling...
...

the key issue seems to be mentioned in this line:

  what():  Akonadi::PayloadException: Wrong payload type (requested: sp(0)<QByteArray>; present: sp(2)<KMime::Message*>

but here I have exhausted my knowledge to fix it...
my packages versions are as follows:
akonadi, akonadi-search, kmail: 16.12
kde-framework: 5.29
plasma5: 5.8.3
xapian: 1.4.1 (but tried 1.4.2 as well)

All related packages compiled from gentoo repository

If any more data or tests are required, I'm happy to comply.


Reproducible: Always

Steps to Reproduce:
1. Start kmail
2. Add imap acount (if already present skip step 2 :) )
3. Akonadi crashes after starting to retrieve e-mails
Comment 1 Jonas Stein gentoo-dev 2017-01-01 15:23:41 UTC
I suggest to collect more details on our support channels. 
https://www.gentoo.org/support/

Could you attach the complete set of log files and emerge --info, please?
Comment 2 Marek 2017-01-02 09:56:48 UTC
Well I managed to fix it, but unfortunately can't point out the exact reason.
I did a full recompile of all the installed packages (over 1300, took over a day). Now everything seems to work again.

So I guess some order of package install/compilation didn't work for me, but its impossible to find out which. Of course I also did the revdep check/rebuild before reporting this issue.