Bug 503353

Summary: kmail crashes at startup
Product: [Applications] kmail2 Reporter: tnemeth
Component: generalAssignee: kdepim bugs <pim-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kishore96
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description tnemeth 2025-04-25 17:16:32 UTC
SUMMARY

    Hello.

    Since yesterday, kmail crashes when I try to launch it. It displays an error dialog and once I click on "Ok", kmail terminates immediately. I tried to start it from the command line to have more output without chance.

    Here is what I got :

$ LC_ALL=C kmail
org.kde.pim.akonadicore: Failed SpecialCollectionsRequestJob::slotResult "Could not create collection trash, resourceId 9"
org.kde.pim.mailcommon: "The Email program encountered a fatal error and will terminate now.\nThe error was:\nCould not create collection trash, resourceId 9"

    Using akonadiConsole I could find out that resourceId 9 was my local folders... So I don't know what it could not do with my trash folder...


STEPS TO REPRODUCE
1. Start kmail
2. see it display a message and crash


OBSERVED RESULT
Kmail crashes


EXPECTED RESULT
kmail should at least display a meaningful message and allow users to fix the issue.


SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2
Kernel Version: 6.12.22-amd64 (64-bit)
Graphics Platform: X11
Comment 1 Kishore Gopalakrishnan 2025-04-27 10:16:59 UTC
The linked bug report has a few workarounds.

*** This bug has been marked as a duplicate of bug 339214 ***