Bug 245481

Summary: Regression: fatal error on Kmail launch
Product: [Frameworks and Libraries] Akonadi Reporter: Sabine Faure <sabine>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: VERIFIED FIXED    
Severity: normal CC: bjoern.ricks, faure, kdepim-bugs, sven.burmeister
Priority: VHI    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 1154807

Description Sabine Faure 2010-07-22 22:53:56 UTC
Version:           unspecified (using Devel) 
OS:                Linux

A fatal error is encountered when launching Kmail.

Reproducible: Always

Steps to Reproduce:
- Launch Kontact and go to Kmail
- Kmail main window appears

Actual Results:  
But a pop up error dialogue appears saying: 'Kmail encountered a fatal error and will terminate now. The error was: Timeout trying to get lock.'

Expected Results:  
Kmail should launch properly as it was the case last week. This is a regression.

Trunk, Svn Rev 1153123
Comment 1 David Faure 2010-07-22 22:58:06 UTC
The lock seems to be held by the maildispatcher agent:

:1.57
 org.freedesktop.Akonadi.Agent.akonadi_maildispatcher_agent
 org.freedesktop.Akonadi.MailDispatcherAgent
 org.kde.akonadi_maildispatcher_agent-5114
 org.kde.pim.SpecialCollections

MorpHeUz said it happens to him too.
krake said he suspects Volker's changes to the collection request job.
(I found r1152207, r1152210 and r1152237)
Comment 2 David Faure 2010-07-23 13:59:43 UTC
I can confirm that the problem is gone after reverting 4 commits in kdepimlibs/akonadi:

svn merge -c-1152237 .
svn merge -c-1152207 .
svn merge -c-1152240 .
svn merge -c-1152210 .

Reverting just the first two wasn't enough, and 1152240 is just a cleanup, so it's very probably 1152210.
Comment 3 Laurent Montel 2010-07-26 22:29:14 UTC
SVN commit 1154803 by mlaurent:

Release lock even if we don't have error (more logical)
BUG: 245481


 M  +3 -1      specialcollectionsrequestjob.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1154803
Comment 4 Laurent Montel 2010-07-26 22:39:14 UTC
SVN commit 1154807 by mlaurent:

Real fix for 245481
BUG: 245481


 M  +4 -4      specialcollectionsrequestjob.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1154807
Comment 5 Volker Krause 2010-07-28 10:44:59 UTC
*** Bug 245879 has been marked as a duplicate of this bug. ***
Comment 6 Bjoern Ricks 2010-07-28 13:36:18 UTC
fixed with commits 1154803 and 1154807
Comment 7 Sabine Faure 2010-07-30 01:17:26 UTC
It is corrected now.

The fatal error pop up dialogue does not appear anymore and Kmail works properly now.

Trunk, Svn Rev 1156856