[Akonadi] [Bug 378436] New: Instance create job emits result too early
Andre Heinecke
bugzilla_noreply at kde.org
Tue Apr 4 15:41:44 BST 2017
https://bugs.kde.org/show_bug.cgi?id=378436
Bug ID: 378436
Summary: Instance create job emits result too early
Product: Akonadi
Version: GIT (master)
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Account Wizard
Assignee: kdepim-bugs at kde.org
Reporter: aheinecke at intevation.de
Target Milestone: ---
Created attachment 104869
--> https://bugs.kde.org/attachment.cgi?id=104869&action=edit
Hack to fix racyness
The KMail AccountWizard can fail with: "Could not convert value of setting
'AccountIdentity' to required type."
This happens for me in a fairly slow VM (one core, slow disk). But there
happened very reliably.
The reason appears to be that Accountwizard's Resource::instanceCreateResult is
called too early before the resource is fully created.
Where:
QDBusInterface iface(QStringLiteral("org.freedesktop.Akonadi.Resource.") +
m_instance.identifier(), QStringLiteral("/Settings"));
isValid but the interface does not provide all Methods. The debug output
surrounding this is:
org.kde.pim.accountwizard: Setting up "AccountIdentity" for agent
"akonadi_imap_resource_12"
org.kde.pim.accountwizard: Did not find D-Bus method: "setAccountIdentity"
available methods are:
org.kde.pim.accountwizard: "destroyed(QObject*)"
org.kde.pim.accountwizard: "destroyed()"
org.kde.pim.accountwizard: "objectNameChanged(QString)"
org.kde.pim.accountwizard: "deleteLater()"
org.kde.pim.accountwizard: "_q_reregisterTimers(void*)"
org.kde.pim.accountwizard:
"_q_serviceOwnerChanged(QString,QString,QString)"
Version does not really match. It was with accountwizard 0.2 from the current
KDE Neon devedition gitstable ( 4:16.12.3+p16.04+git20170310.0110-0 ).
Attached Hack fixes the Problem for me but is of course not a real fix as it
just adds a sleep before accessing the resource interface.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list