You are not logged in.

#1 2016-10-17 18:08:45

kero
Member
Registered: 2012-08-26
Posts: 29

[solved] akonadi generates desktop glitches in KDE

Hi,

I did a general update on last saturday, and since then I have screen problems (in KDE5/Qt environment): window borders are blinking; when I open menus, they suddenly close after a short time, and so on; the terminal cursor (Konsole) also is randomly blinking. After some research (I tried to delete configuration files and so on...) it finally seems that the problem comes from akonadi. If I start akonadi (akonadictl start) AND I give the password for the GPG key, the screen problems start. When I stop akonadi (akonadictl stop), the problems stop. It's that simple.

With this problem, the system is quite unusable in conjunction with akonadi. I can't open any menu for more than a half second, which is the main problem. Note that the problems not only happen on KDE/Qt applications, but also GTK (I can't decently open the Firefox bookmarks menu).

Note that:
- I already tried to downgrade (to akonadi 16.08.1), but that doesn't solve the problem
- If I delete all akonadi related files in ~/.config the problem disappears, but I have (logically) inconsistencies in my configuration/datas. I'd like to solve the problem in a more clean way.

Additional info:
- OS: Archlinux x86_64, plasma5 + KF5, completely up-to-date
- MB: Asus P8Z77-VLE, with Intel i5-3570, 8GB Corsair RAM

Any idea to solve this problem ?

Regards,

kero

Last edited by kero (2016-10-21 08:30:18)

Offline

#2 2016-10-17 18:53:07

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 1,633

Re: [solved] akonadi generates desktop glitches in KDE

Try disabling the resources one by one in .config/akonadi/agentsrc (under [Instances]) until you figure out which one is giving problems. Also, please post the journal output after enabling akonadi.

What exactly is asking you for the GPG key? do you have a PGP-encrypted wallet?

Offline

#3 2016-10-20 08:47:49

kero
Member
Registered: 2012-08-26
Posts: 29

Re: [solved] akonadi generates desktop glitches in KDE

Hi,

Thank you arojas for your help. Sorry for answering so late, but I had been quite busy, professionnally speaking.

Following your suggestions, I maybee found the origin of the problem.

1) For your question about GPG: when I started using akonadi/Kontact, akonadi asked for an access to the kdewallet to store the passwords. Hence, I created a wallet in kdewallet, encrypted with a GPG key. When I launch akonadi, he asks for the GPG password.
2) I tried, as you suggest, to disable the agentsrc resources, and I found out that the responsible was "akonadi_imap_resource_0", which is one of my email address. This email address has a problem: since the last week, the email account was disabled by the provider, because of a spam problem.
3) I have tried to check the logs (journalctl | grep akonadi) and it looks that when the failing email is enabled, akonadi polls continually kdewallet. I have tons of line like that:

oct. 20 10:23:30 kdesktop akonadi_imap_resource[2084]: Pass a valid window to KWallet::Wallet::openWallet().
oct. 20 10:23:30 kdesktop akonadi_imap_resource[2084]: Pass a valid window to KWallet::Wallet::openWallet().
oct. 20 10:23:31 kdesktop akonadi_imap_resource[2084]: Pass a valid window to KWallet::Wallet::openWallet().
oct. 20 10:23:31 kdesktop akonadi_imap_resource[2084]: Pass a valid window to KWallet::Wallet::openWallet().
oct. 20 10:23:31 kdesktop akonadi_imap_resource[2084]: Pass a valid window to KWallet::Wallet::openWallet().
oct. 20 10:23:32 kdesktop akonadi_imap_resource[2084]: Pass a valid window to KWallet::Wallet::openWallet().
oct. 20 10:23:32 kdesktop akonadi_imap_resource[2084]: Pass a valid window to KWallet::Wallet::openWallet().
oct. 20 10:23:33 kdesktop akonadi_imap_resource[2084]: Pass a valid window to KWallet::Wallet::openWallet().
oct. 20 10:23:33 kdesktop akonadi_imap_resource[2084]: Pass a valid window to KWallet::Wallet::openWallet().
oct. 20 10:23:33 kdesktop akonadi_imap_resource[2084]: Pass a valid window to KWallet::Wallet::openWallet().
oct. 20 10:23:34 kdesktop akonadi_imap_resource[2084]: Pass a valid window to KWallet::Wallet::openWallet().
oct. 20 10:23:34 kdesktop akonadi_imap_resource[2084]: Pass a valid window to KWallet::Wallet::openWallet().
oct. 20 10:23:34 kdesktop akonadi_imap_resource[2084]: Pass a valid window to KWallet::Wallet::openWallet().
oct. 20 10:23:35 kdesktop akonadi_imap_resource[2084]: Pass a valid window to KWallet::Wallet::openWallet().
oct. 20 10:23:35 kdesktop akonadi_imap_resource[2084]: Pass a valid window to KWallet::Wallet::openWallet().

I gave a look also to kdewallet journal:

oct. 20 10:24:02 kdesktop kwalletd5[764]: openAsync for  ":1.2952"
oct. 20 10:24:03 kdesktop kwalletd5[764]: openAsync for  ":1.2952"
oct. 20 10:24:03 kdesktop kwalletd5[764]: openAsync for  ":1.2952"
oct. 20 10:24:03 kdesktop kwalletd5[764]: openAsync for  ":1.2952"
oct. 20 10:24:04 kdesktop kwalletd5[764]: openAsync for  ":1.2952"
oct. 20 10:24:04 kdesktop kwalletd5[764]: openAsync for  ":1.2952"
oct. 20 10:24:04 kdesktop kwalletd5[764]: openAsync for  ":1.2952"
oct. 20 10:24:05 kdesktop kwalletd5[764]: openAsync for  ":1.2952"
oct. 20 10:24:05 kdesktop kwalletd5[764]: openAsync for  ":1.2952"
oct. 20 10:24:05 kdesktop kwalletd5[764]: openAsync for  ":1.2952"
oct. 20 10:24:06 kdesktop kwalletd5[764]: openAsync for  ":1.2952"
oct. 20 10:24:06 kdesktop kwalletd5[764]: openAsync for  ":1.2952"
oct. 20 10:24:06 kdesktop kwalletd5[764]: openAsync for  ":1.2952"

My interpretation: akonadi fails to open the email accounts when the server refuses the access; hence, akonadi polls kwallet to have a password and try again to connect. In this operation, some popup opens regularly, but closes immediately (only sometime I see it for a very very short time). This process empeaches any graphical operation and makes menu close.

For now, I disabled the email account (isn't there a way to disable an email account within Kontact without disabling in in agentsrc ?), waiting that my email provider reopens the access.

Still, I see this problem as a functional bug of akonadi/kontact/kdewallet. I don't think that an invalid email address should be able to block the usage of the system.

Offline

#4 2016-10-20 12:30:21

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 1,633

Re: [solved] akonadi generates desktop glitches in KDE

kero wrote:

For now, I disabled the email account (isn't there a way to disable an email account within Kontact without disabling in in agentsrc ?), waiting that my email provider reopens the access.

Still, I see this problem as a functional bug of akonadi/kontact/kdewallet. I don't think that an invalid email address should be able to block the usage of the system.

Glad to hear that you figured it out. And I completely agree it should not happen, please report it to the KDE bug tracker when you have the chance.

Offline

#5 2016-10-21 08:29:52

kero
Member
Registered: 2012-08-26
Posts: 29

Re: [solved] akonadi generates desktop glitches in KDE

arojas wrote:
kero wrote:

For now, I disabled the email account (isn't there a way to disable an email account within Kontact without disabling in in agentsrc ?), waiting that my email provider reopens the access.

Still, I see this problem as a functional bug of akonadi/kontact/kdewallet. I don't think that an invalid email address should be able to block the usage of the system.

Glad to hear that you figured it out. And I completely agree it should not happen, please report it to the KDE bug tracker when you have the chance.

I will.

Thank you for your help, which leaded me to find the origin of the problem.

Offline

Board footer

Powered by FluxBB