Bug 319445

Summary: akonadi-imap-resource stays at CPU 100% and does nothing - KDE 4.10.3 ONLY.
Product: [Frameworks and Libraries] Akonadi Reporter: Alejandro Nova <alejandronova>
Component: IMAP resourceAssignee: Kevin Ottens <ervin>
Status: RESOLVED REMIND    
Severity: normal CC: kdepim-bugs, vkrause
Priority: NOR    
Version: 4.10   
Target Milestone: ---   
Platform: Chakra   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alejandro Nova 2013-05-07 02:28:28 UTC
When I'm trying to download mail, the normal behaviour in KDE 4.10.x was: the IMAP resource downloads as fast as it can. However, in KDE 4.10.3 a nasty bug was introduced, so the IMAP resource doesn't download, but instead polls constantly the Akonadi status, doing nothing and making my CPU explode. This is what I'm getting through strace:

poll([{fd=3, events=POLLIN}, {fd=7, events=POLLIN}, {fd=8, events=POLLIN}, {fd=6, events=POLLIN}, {fd=9, events=POLLIN}], 5, 51) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
recvfrom(6, 0x73f784, 4096, 0, 0, 0)    = -1 EAGAIN (Resource temporarily unavailable)
recvfrom(6, 0x73f784, 4096, 0, 0, 0)    = -1 EAGAIN (Resource temporarily unavailable)

Also, there are messages like these in the console.

akonadi_imap_resource_1(28661)/kdepimlibs (kimap) KIMAP::FetchJob::handleResponse: FETCH reply got truncated, skipping. 


Reproducible: Always

Steps to Reproduce:
1. Create an IMAP account with Google Mail.
2. Fetch mail.

Actual Results:  
Mail is fetched slowly, and the CPU is constantly at 100%, or even over 100% if I navigate to another folder in KMail.

Expected Results:  
Mail is fetched fast, and the CPU is used accordingly.

This is unrelated to the new Akonadi Nepomuk Feeder, but the bug was introduced with KDE 4.10.3
Comment 1 Alejandro Nova 2013-05-07 16:46:16 UTC
Closing my own report as REMIND. Please, indicate that KDE 4.10.3 REQUIRES Akonadi 1.9.2, or you are going to see this.