Bug 439631

Summary: Akonadi crashes often and sometimes it doesn't start up at all
Product: [Frameworks and Libraries] Akonadi Reporter: Bart Ribbers <bribbers>
Component: serverAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: pandom79, sam
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: akonadictl start crash log
Akonadi.err
mysql.err

Description Bart Ribbers 2021-07-08 08:51:39 UTC
Created attachment 139942 [details]
akonadictl start crash log

SUMMARY
On my system, Akonadi crashes _constantly_. Not so much it's unusable, but enough to be _really_ annoying. Normally Kontact manages to restart it after instructed to do so, but sometimes akonadi just keeps crashing on startup and is completely unusable till I reboot.

The log talks about "D-Bus session bus is not available" when I try to start it via akonadictl, but seeing most of the time Akonadi _does_ start, I fail to see how that could be breaking it.

STEPS TO REPRODUCE
1. Have Kontact or Kmail running in the background
2. After a while of idling, click on an e-mail
3. Observe Akonadi most of the time, but not always, crashing

OBSERVED RESULT
Akonadi crashes and has to be restarted before the PIM suite can be used again.

EXPECTED RESULT
Akonadi to not crash obviously.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Alpine Linux
(available in About System)
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.3 (KDE patches applied)

ADDITIONAL INFORMATION
This system uses Musl libc instead of glibc which might be the cause of the issues here, uncertain.
Comment 1 Bart Ribbers 2022-02-13 17:22:05 UTC
I tracked this down to specifically akonadi_imap_resources crashing, makes sense as it often (but not always) happens when I receive a new email. Sadly imap crashing takes the whole of Akonadi with it...
Comment 2 Domenico Panella 2022-02-14 11:31:18 UTC
Same problem here on:

Operating System: Slackware 15.0
KDE Plasma Version: 5.24.0
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3
Kernel Version: 5.16.9 (64-bit)
Graphics Platform: X11
Graphics Processor: Mesa IntelĀ® UHD Graphics 620
Comment 3 Domenico Panella 2022-02-14 11:32:05 UTC
Created attachment 146703 [details]
Akonadi.err
Comment 4 Domenico Panella 2022-02-14 11:32:39 UTC
Created attachment 146705 [details]
mysql.err