Bug 253105 - KMail freezes deleting large number of messages
Summary: KMail freezes deleting large number of messages
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 2.0.89
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2010-10-03 10:57 UTC by Andrey Borzenkov
Modified: 2018-10-27 02:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Borzenkov 2010-10-03 10:57:17 UTC
Version:           2.0.89 (using Devel) 
OS:                Linux

KDE 4.5.68/Qt 4.7.0/Akonadi 1.4.52 in Mandriva cooker.

I had trash with 7829 message in it as local folders in maildir format. It was the only resource configured in KMail. I selected "Empty trash" after which KMail froze consuming 100% of one full core of two. After about half an hour on status bar of KMail (lower window border) appeared "Processed 30 Messages of 7829). At this point trash folder was empty and checking with akonadiconsole confirmed that Trash was purged. The deletion it self took very small amount of time (there was short burst of CPU/disk activity).

While I write this status changed to "Processed 40 Messages of 7829". I wonder how long will it take it to finish ...

This is the second time I try to empty trash, the first one ended with completely broken sync between mixedmaildir and akonadi database.

Reproducible: Always
Comment 1 Andrey Borzenkov 2010-10-03 11:05:42 UTC
I now deleted about 1200 messages from another folder and noticed interesting thing - status line showed sequence of

Processed 1020 messages of 1200
Processed 1020 messages of 1199
Processed 1020 messages of 1198
...

While message list flickered as mad.

I use threaded view sorted by date by default. So it appears at least in this case KMail spent most of the time to sort message list.
Comment 2 Andrey Borzenkov 2010-10-03 11:32:00 UTC
Yes, it looks like the actual problem is redrawing of message list. I know emptied Trash with over 1500 messages in it while *not* displaying it and it worked instantly. When it froze trash was currently selected folder.

The problem is to empty *specific* folder I have to at least right click on it which automatically makes it current and displays at least message list ... the same problem also moving large number of messages between folders.
Comment 3 Theofilos Intzoglou 2010-12-13 15:29:10 UTC
KMail Version:           2.0.89 (using Devel) 
KDE 4.5.85/Qt 4.7.1-r1/Akonadi-server 1.4.80 in Gentoo Linux

I experienced the same thing when I tried to move and delete messages from various folders (not just trash). I don't know if it is relevant to this issue but I noticed that some times, when I deleted a message, the folder was refreshed automatically moving the selection to the first message of the folder instead of keeping the previous position.
Comment 4 Tobias Koenig 2011-06-04 12:50:39 UTC
Hej,

is this behavior still reproducible with current version?
We did many performance improvements in this area, so please retest.

Ciao,
Tobias
Comment 5 Andrew Crouthamel 2018-09-22 01:56:33 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Andrew Crouthamel 2018-10-27 02:56:47 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!