Bug 226757

Summary: kmail frequently fails to auto-start on session startup
Product: [Applications] kmail Reporter: Andrey Borzenkov <arvidjaar>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: tnemeth
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Saved protocol of failed kmail startup tests

Description Andrey Borzenkov 2010-02-14 06:37:23 UTC
Version:            (using KDE 4.4.0)
OS:                Linux
Installed from:    Mandriva RPMs

This happens to me ever since KMail was changed to require Aconadi. KMail is started as part of default session. Sometimes (not every time but pretty often) it fails to start aconadi and terminates. Starting it again manually always works which leads me to believe this is - at least, partially - race condition during session startup.

I attach aconadit test report when it fails. Points of note.

1) mySQL errors. I always use standard menu item to close session. If this results in dirty database shutdown, it should be fixed.

2) It seems it can't contact nepomuk. Meaning that may be nepomuk is started too late or takes too much time to start.
Comment 1 Andrey Borzenkov 2010-02-14 06:38:12 UTC
Created attachment 40757 [details]
Saved protocol of failed kmail startup tests
Comment 2 tnemeth 2011-07-04 18:26:25 UTC
I have the same behavior here with KDE 4.6.4, kmail 1.13.6 using kubuntu packages.

I even tried to make it boot through system settings' automatic startup. I even made a script to launch akonadi before kmail is started, but still sometimes kmail is launched sometimes not...
Comment 3 Laurent Montel 2015-04-12 10:07:25 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.