Bug 335162 - KMail hangs while trying to delete a message with calendar information
Summary: KMail hangs while trying to delete a message with calendar information
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.14.2
Platform: Ubuntu Linux
: NOR major with 20 votes (vote)
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-21 22:23 UTC by Joshua J. Kugler
Modified: 2015-09-11 16:49 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A message showing the behavior (4.82 KB, text/plain)
2014-05-21 22:27 UTC, Joshua J. Kugler
Details
E-mail message w/ICS Calendar event that causes akonadi to hang (32.18 KB, message/rfc822)
2014-08-05 19:46 UTC, graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua J. Kugler 2014-05-21 22:23:27 UTC
I am pulling messages down from an Exchange server via POP. Every time I try to delete a message that is a calendar event (update, invite, cancellation) KMail hangs, the Moving Messages "progress bar" (or rather, slider, since it doesn't update on progress) keeps going back and forth, and now any message I try to access says "Retrieving Folder Contents   Please wait..."

I have to restart Akonadi to get Kmail to function again, and when I do the message is still there.  Digging into the file system, I see the message is still in the FolderName/new directory.

Reproducible: Always

Steps to Reproduce:
1. get a message that is a caldendar update
2. try to delete it
3.
Actual Results:  
KMail hangs

Expected Results:  
Deletes message
Comment 1 Joshua J. Kugler 2014-05-21 22:24:17 UTC
Discovered this also happens when I just view the message, then try to view another message.
Comment 2 Joshua J. Kugler 2014-05-21 22:27:23 UTC
Created attachment 86757 [details]
A message showing the behavior
Comment 3 graham 2014-08-05 19:43:58 UTC
I can confirm same behaviour, when using 4.13.

I have also tried using "akonadiconsole" to browse the mail and attempt to delete the message via that means (as I've had that work in the past to help me get around some areas where KMail would stall/hang when trying to delete a message).  Doesn't work this time, though... akonadiconsole also hangs after reading a message with an ICS calendar event; after viewing that message it doesn't matter where I click in akonadiconsole, it no longer fetches data on the messages I'm clicking on.

Restarting Akonadi (via "akonadictl restart") and then restarting KMail allows me to get on to other things, but the instant I view a message with an ICS calendar event attached to it, it hangs and I have to kill KMail (as "Quit" leaves the process running, even though the GUI shuts down) and then restart Akonadi.
Comment 4 graham 2014-08-05 19:46:29 UTC
Created attachment 88127 [details]
E-mail message w/ICS Calendar event that causes akonadi to hang

Here's one of the messages I have right now which causes Akonadi/KMail to exhibit this buggy behaviour.  After viewing this message (in either kmail or akonadiconsole), akonadi hangs and needs to be restarted before I can do anything else with/against it.
Comment 5 Rudolf Lohner 2014-09-19 13:51:28 UTC
Same beaviour is shown on my installation: opening a mail which contains a ics calender event causes KMail to hang forever. Restarting Akonadi fixes the freeze of KMail (no additional action required on KMail's side).

I'm running Debian sid amd64 (aptosid to be more precise) with KMail version 4.14 under KDE 4.14.0 and Akonadi with the following components and versions (according to dpkg -l '*akonadi*'):

ii  akonadi-backend-sqlite      1.13.0-1           amd64              SQLite storage backend for Akonadi
ii  akonadi-server              1.13.0-1           amd64              Akonadi PIM storage service
ii  akonadiconsole              4:4.14.0-1         amd64              management and debugging console for akonadi
ii  libakonadi-calendar4        4:4.14.0-1         amd64              library providing calendar helpers for Akonadi items
ii  libakonadi-contact4         4:4.14.0-1         amd64              Akonadi contacts access library
ii  libakonadi-kabc4            4:4.14.0-1         amd64              Akonadi address book access library
ii  libakonadi-kcal4            4:4.14.0-1         amd64              Akonadi calendar access library
ii  libakonadi-kde4             4:4.14.0-1         amd64              library for using the Akonadi PIM data server
ii  libakonadi-kmime4           4:4.14.0-1         amd64              Akonadi MIME handling library
ii  libakonadi-notes4           4:4.14.0-1         amd64              Akonadi notes access library
ii  libakonadiprotocolinternals 1.13.0-1           amd64              libraries for the Akonadi PIM storage service
Comment 6 Rudolf Lohner 2014-09-19 14:45:29 UTC
(In reply to Rudolf Lohner from comment #5)
> Same beaviour is shown on my installation: opening a mail which contains a
> ics calender event causes KMail to hang forever. Restarting Akonadi fixes
> the freeze of KMail (no additional action required on KMail's side).

To be somewhat more precise: KMail does not hang/freeze completely, you still can fully use the GUI, change to different mail folders, use all menus, etc. However, no Mail will be displayed any more in the message viewing subwindow.

Also, this behaviour occurs regardless from where the message containing the calender event is fetched: Messages from the IMAP server as well as messages from any local mail folder cause the same hang-up as soon as they contain a calender event.
Comment 7 Joshua J. Kugler 2015-04-10 14:56:24 UTC
Bug still exists in 4.14.2
Comment 8 Rudolf Lohner 2015-09-11 16:23:23 UTC
This week I upgraded to KDE 4.14.10 which now has KMail 4.14.10 and for me this misbehaviour of KMail has completely disappeard!

All mails containing ics calender events are now treated just as normal as any other mail and KMail does not hang any more.

Thanks a lot to whoever or whatever made this annoyance disappear.
Comment 9 Martin Steigerwald 2015-09-11 16:49:56 UTC
Thanks, Rudolf. Closing. Greetings from KDE Randa Meetings, Martin