[Kde-pim] a timing problem akonadiserver <--> client

Guy Maurel guy.maurel at kde.org
Mon Aug 5 13:55:34 BST 2013


Hello!

I began a mail-thread on 2013-06-14 19:53 with the subject: "Once a month"

I can now show: it is not a filter problem.
It is a timing problem akonadiserver <--> client:

I reduce my configuration to start manually akonadi_mailfilter_agent.
I modify the sources a little bit to get more informations (using kDebug and 
akError). I show here some extract from the files kdebug.dbg and 
akonadiserver.error.

Starting akonadi_mailfilter_agent:
Mon Aug  5 14:17:01 CEST 2013
14:17:07.500 akonadi_mailfilter_agent(3434)/libakonadi 
Akonadi::SessionPrivate::init: "akonadi_mailfilter_agent"

As there is no akonadiserver running, it will be startet:
14:17:07.502 akonadi_mailfilter_agent(3434)/libakonadi 
Akonadi::SessionPrivate::init: before ServerManager::start()
14:17:07.503 akonadi_mailfilter_agent(3434)/libakonadi 
Akonadi::ServerManager::start: executing akonadi_control
14:17:07.509 akonadi_mailfilter_agent(3434)/libakonadi 
Akonadi::SessionPrivate::init: after ServerManager::start()

The system needs some time to reached the code where a new watcher is present:
14:17:09.445 before new QDBusServiceWatcher( 
AkDBus::serviceName(AkDBus::Control)
14:17:09.445 after new QDBusServiceWatcher( 
AkDBus::serviceName(AkDBus::Control)


BUT before this time, there where already some request:
14:17:07.517 akonadi_mailfilter_agent(3434)/libakonadi 
Akonadi::AgentManagerPrivate::createDBusInterface: gM+++++ mManager= 
OrgFreedesktopAkonadiAgentManagerInterface(0x25da280)
14:17:07.517 akonadi_mailfilter_agent(3434)/libakonadi 
Akonadi::AgentManagerPrivate::createDBusInterface: gM+++++ AgentManager failed 
to get a valid AgentManager DBus interface.
14:17:07.518 akonadi_mailfilter_agent(3434)/libakonadi 
Akonadi::AgentManagerPrivate::createDBusInterface: AgentManager failed to get 
a valid AgentManager DBus interface. Error is: 1 
"org.freedesktop.DBus.Error.NameHasNoOwner" "Could not get owner of name 
'org.freedesktop.Akonadi.Control': no such name"

Using a standard configuration, I can see that more clients (about the first 
4) get the error message. After the time is OK, the last clients are OK.

Should it be a fix to wait at
  Akonadi::AgentManagerPrivate::createDBusInterface
until the akonadiserver is really ready?, with a loop?

Any hints are welcome.
-- 
guy
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list