Summary: | Exponential growth of CollectionFetchJobs (infinite loop) | ||
---|---|---|---|
Product: | [Applications] kmail2 | Reporter: | Thiago Macieira <thiago> |
Component: | folders | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | grave | CC: | anmeldungen, bugs, cfeck, dvratil, fabian, greve, kerub, laurent.rineau, martin.ruessler, Martin, mollekopf, rdieter, vito.detullio |
Priority: | NOR | ||
Version: | Git (master) | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.14.6 | |
Sentry Crash Report: | |||
Attachments: |
Kmail, freshly started up at 10:44
Kmail, after idling for 6 hours |
Description
Thiago Macieira
2013-08-01 04:52:44 UTC
Hmm... note how there's a listing for *both* a localised and a non-localised name of the outbox: * 6 4 (NAME "caixa de saída" MIMETYPE (message/rfc822 inode/directory) REMOTEID "caixa de saída" REMOTEREVISION "0" RESOURCE "akonadi_maildir_resource_0" VIRTUAL 0 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) SpecialCollectionAttribute "outbox" ENTITYDISPLAY "(\"caixa de saída\" \"mail-folder-outbox\" \"\" ())") * 5 4 (NAME "outbox" MIMETYPE (message/rfc822 inode/directory) REMOTEID "outbox" REMOTEREVISION "0" RESOURCE "akonadi_maildir_resource_0" VIRTUAL 0 CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) SpecialCollectionAttribute "outbox" ENTITYDISPLAY "(\"caixa de saída\" \"mail-folder-outbox\" \"\" ())") Both folders exist on disk. There is nothing in that "outbox" folder, though. It shouldn't exist, but does. After removing the unwanted folder from disk (rm -rf) and restarting the maildir agent, the problem seems to go away. +1 After upgrading to KDE 4.11 (in Arch Linux) Kmail (or Kontact) stops displaying email content very soon after starting. With akonadiconsole I discovered that Kmail/Kontact drops at least two (or up to 7) Akonadi::CollectionFetchJob per timestamp and they keep on waiting for minutes. As far as I can tell local folders are set up correctly. Same problem here: after 4.11 (on slackware-current + alienBob kde 4.11) reading email content needs 5+ minutes... Confirm with: Kubuntu 13.04 KDE 4.11.00 Akonadi Console Version 0.99 I can confirm this (Kubuntu 13.10, KDE 4.11.2). In the akonadi console I could see up to 20 new jobs every second. Right before I shut down akonadi, kmail was consuming more than 1GB of RAM. Seeing this on two folders on Fedora, installed KDE Red Hat repos: kdepim-4.11.3-1.fc19.x86_64 kdepim-debuginfo-4.11.3-1.fc19.x86_64 kdepim-libs-4.11.3-1.fc19.x86_64 kdepim-runtime-4.11.3-1.fc19.x86_64 kdepim-runtime-debuginfo-4.11.3-1.fc19.x86_64 kdepim-runtime-libs-4.11.3-1.fc19.x86_64 kdepimlibs-4.11.3-2.fc19.x86_64 kdepimlibs-akonadi-4.11.3-2.fc19.x86_64 kdepimlibs-debuginfo-4.11.3-2.fc19.x86_64 kdepimlibs-kxmlrpcclient-4.11.3-2.fc19.x86_64 Let me know if there is anything I can do to provide debug info. Georg, can you check in Akonadi Console in Browser tab for duplicated folders in "Local Folders"? If there are any duplicates, remove them. The duplicates can be like "Inbox" and "whatever inbox is in your language" I've looked into akonadi console, but there are no duplicate folders, also the folder affected is not inbox, it's a subfolder of inbox, and subfolder of that subfolder, so something folder "c" in "j" in the following structure: inbox/ ├── a ├── b ├── c │ ├── h │ ├── i │ ├── j │ ├── k │ ├── l │ ├── m │ ├── n │ ├── o │ └── p ├── d ├── e ├── f └── g FWIW, some IMAP folders are marked red in akonadiconsole, including (but not only) the folders affected. Christian Mollekopf has some debug output, although he cannot share it (contains data from my system) but he might be able to look for something suspicious. If there is anything I can do to help track this down, please shout. Created attachment 83599 [details]
Kmail, freshly started up at 10:44
Created attachment 83600 [details]
Kmail, after idling for 6 hours
Just to get an idea of the memory consumption/leakage when doing absolutely nothing.
Note this keeps one core of the CPU at 100% (four core system, hence 25%) and since it is a laptop it keeps it from scaling down, ever, which means it burns through battery like nothing and the laptop is becoming quite warm, including all the side effects that brings.
FWIW, another data point: Switching Kmail to offline and visiting the affected folder can stop the CPU churn. When i then keep it open in one tab and go back online, the CPU churn seems gone for the moment. (In reply to comment #7) > Georg, can you check in Akonadi Console in Browser tab for duplicated > folders in "Local Folders"? If there are any duplicates, remove them. The > duplicates can be like "Inbox" and "whatever inbox is in your language" For me this seems to have solved the problem. I had two local trash folders. So far akonadi has stopped spamming processes. (In reply to comment #11) > FWIW, another data point: > > Switching Kmail to offline and visiting the affected folder can stop the CPU > churn. > > When i then keep it open in one tab and go back online, the CPU churn seems > gone for the moment. This problem is unrelated and handled separately in https://bugs.kde.org/show_bug.cgi?id=327865. (In reply to comment #13) > > This problem is unrelated and handled separately in > https://bugs.kde.org/show_bug.cgi?id=327865. I meant to say; Georg's problem is unrelated, so you can ignore his debug information for this issue =) I had a trash and a wastebin folder. I then let Akonadi replace the local folders with a fresh set and now kmail works again. I am using KDE 4.11.3. Thiago, thank you for reporting the bugs and for all your comments and research. Does this still happen with KDEPIM 4.14.6/7? (In reply to Martin Steigerwald from comment #16) > Thiago, thank you for reporting the bugs and for all your comments and > research. > > Does this still happen with KDEPIM 4.14.6/7? I cannot reproduce this anymore. |