Bug 399881 - Kontact message list unresponsive
Summary: Kontact message list unresponsive
Status: RESOLVED WORKSFORME
Alias: None
Product: kontact
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-16 16:02 UTC by Steve
Modified: 2020-08-25 21:30 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve 2018-10-16 16:02:26 UTC
SUMMARY
When starting up kontact, the inbox icon under IMAP Account spins forever. The message list is empty. No message is displayed. 

STEPS TO REPRODUCE
1. Start kontact


OBSERVED RESULT
Message list is empty.

EXPECTED RESULT
My email message list full of email. I have more than 150k messages in my inbox.

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.13.5
KDE Frameworks Version: 18.04.3
Qt Version: 5.11.1
Kontact: Version 5.8.3

ADDITIONAL INFORMATION
How do you go about troubleshooting this? It's doing something. I see popup notifications that I have new emails. But message list is empty. I wished that it was more verbose so that I could diagnose what is happening.

I see this written to command line:
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
org.kde.pim.akonadicontrol: Executable "akonadi_knut_resource" for agent "akonadi_knut_resource" could not be found!
"No file selected."
org.kde.pim.maildispatcher: Item 2852642 does not have the required attribute Address.
org.kde.pim.maildispatcher: Item 2847052 does not have the required attribute Address.
org.kde.pim.maildispatcher: Item 2846814 does not have the required attribute Address.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)

ProtocolException thrown:Failed to write data to stream
org.kde.pim.akonadiserver: Protocol exception: Failed to write data to stream

Is that related? Something is failing to work and it's not saying something is wrong. What do I need to look at to see why kontact isn't working? Thanks.
Comment 1 Steve 2018-10-16 16:25:01 UTC
When I run "akonadictl restart", I can briefly see the message list. Then email pane in lower right corner goes black. And then both message list and email viewer turn white. This is printed on the command line:

Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
org.kde.pim.akonadicontrol: Executable "akonadi_knut_resource" for agent "akonadi_knut_resource" could not be found!
org.kde.pim.calendarview: Agenda::removeIncidence() Failed to remove  "a0225bad-cb82-4ed0-b177-6a4189b853b1"
org.kde.pim.akonadicontrol: "AgentManager::agentInstanceSynchronizeCollection"  Agent instance  "akonadi_imap_resource_0"  has no resource interface!
org.kde.pim.akonadiserver: "Cannot connect to agent instance with identifier 'akonadi_imap_resource_0', error message: ''"
"No file selected."
org.kde.pim.maildispatcher: Item 2852642 does not have the required attribute Address.
org.kde.pim.maildispatcher: Item 2847052 does not have the required attribute Address.
org.kde.pim.maildispatcher: Item 2846814 does not have the required attribute Address.

Does this indicate any kind of problem that I can look into for more information?
Comment 2 Steve 2018-10-20 15:03:05 UTC
The problem that I'm seeing seems to a communication problem between  akonadi and kontact. I found some other bug reports online about various errors that I'm seeing which suggested installing akonadiconsole. If I go into the IMAP Account Agent and do various combinations of Synchronize Collection Tree, Toggle Offline twice, and Synchronize All. And occassionally akonadictl restart, I can get it working. Barely. Hope this sheds some light on the problem.
Comment 3 David Faure 2019-03-11 12:20:58 UTC
The knut resource is only used by unittests, it's very strange that it would show up in your setup !?

The message "ProtocolException thrown:Failed to write data to stream" makes me think this is a duplicate of https://bugs.kde.org/show_bug.cgi?id=401692
Comment 4 Ahmad Samir 2020-08-25 20:51:07 UTC
Looks like a dbus issue:
org.kde.pim.akonadicontrol: "AgentManager::agentInstanceSynchronizeCollection"  Agent instance  "akonadi_imap_resource_0"  has no resource interface!
org.kde.pim.akonadiserver: "Cannot connect to agent instance with identifier 'akonadi_imap_resource_0', error message: ''"
"No file selected."

is this still valid?
Comment 5 Steve 2020-08-25 21:28:13 UTC
I have upgraded through 4 major versions of kontact since then. Right now my biggest problem is email I delete suddenly reappears 5 or 10 minutes later. I suppose its not getting deleted in the imap server and it rediscovers it next poll. This really isn't fun because I have to delete email 3 or 4 times to really get it deleted.

So, no. This problem went away with one of the upgrades. I suppose it can be closed.
Comment 6 Ahmad Samir 2020-08-25 21:30:00 UTC
OK, thanks for the feedback.