[kmail2] [Bug 334406] New: possible timing problem at startup - setting resources online and mail check failing

Jonathan Marten jjm at keelhaul.me.uk
Tue May 6 11:17:21 BST 2014


https://bugs.kde.org/show_bug.cgi?id=334406

            Bug ID: 334406
           Summary: possible timing problem at startup - setting resources
                    online and mail check failing
    Classification: Unclassified
           Product: kmail2
           Version: Git (master)
          Platform: Compiled Sources
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: misc
          Assignee: kdepim-bugs at kde.org
          Reporter: jjm at keelhaul.me.uk

If KMail needs to start the Akonadi server because it is not currently running,
there appears to be a timing problem between the server starting up and KMail
doing things which assume that the server is fully available.  In my case, this
results in resources not being set online when they should be (notably Local
Folders, this may be the root cause of bug 334175) and a mail check not being
done on startup (assuming that this is configured).

I have added debug messages to KMKernel::setAccountStatus() and
KMKernel::checkMailOnStartup() to report when they are called and how many
agent instances are reported from MailCommon::Util::agentInstances().  The
server state is initially 4 (Broken) and no agents are reported;  only when the
state changes to 2 (Running) is the list available.  By then it is too late.

Attached is an extract from a voluminous log file, with all lines are still in
the original time order.

Reproducible: Always

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list