Bug 495233 - Kmail crashed after removing Local Folder
Summary: Kmail crashed after removing Local Folder
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: general (other bugs)
Version First Reported In: 5.24.5
Platform: Kubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-23 09:40 UTC by changyaowen19980629
Modified: 2024-10-23 09:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Kmail crash (110.42 KB, image/png)
2024-10-23 09:40 UTC, changyaowen19980629
Details

Note You need to log in before you can comment on or make changes to this bug.
Description changyaowen19980629 2024-10-23 09:40:43 UTC
Created attachment 175135 [details]
Kmail crash

SUMMARY
The Kmail is crashed when the user delete the Local folder in the side bar.
The cannot recover from the error even reinstalling Kmail.
When running the crashed Kmail, the error message is as this: 
```
Comparators already registered for type MetaEnumVariable
org.kde.pim.akonadicore: Failed SpecialCollectionsRequestJob::slotResult "Failed to fetch the resource collection."
org.kde.pim.mailcommon: "The Email program encountered a fatal error and will terminate now.\nThe error was:\nFailed to fetch the resource collection."
org.kde.pim.akonadicore: Failed SpecialCollectionsRequestJob::slotResult "Failed to fetch the resource collection."
org.kde.pim.mailcommon: "The Email program encountered a fatal error and will terminate now.\nThe error was:\nFailed to fetch the resource collection."
org.kde.pim.akonadicore: Failed to request resource "akonadi_maildir_resource_0" : "Failed to fetch the resource collection."
org.kde.pim.akonadicore: Failed SpecialCollectionsRequestJob::slotResult "Failed to fetch the resource collection."
org.kde.pim.mailcommon: "The Email program encountered a fatal error and will terminate now.\nThe error was:\nFailed to fetch the resource collection."
org.kde.pim.akonadicore: Failed to request resource "akonadi_maildir_resource_0" : "Failed to fetch the resource collection."
org.kde.pim.akonadicore: Failed SpecialCollectionsRequestJob::slotResult "Failed to fetch the resource collection."
org.kde.pim.mailcommon: "The Email program encountered a fatal error and will terminate now.\nThe error was:\nFailed to fetch the resource collection."
org.kde.pim.akonadicore: Failed to request resource "akonadi_maildir_resource_0" : "Failed to fetch the resource collection."
org.kde.pim.akonadicore: Failed SpecialCollectionsRequestJob::slotResult "Failed to fetch the resource collection."
org.kde.pim.mailcommon: "The Email program encountered a fatal error and will terminate now.\nThe error was:\nFailed to fetch the resource collection."
org.kde.pim.akonadicore: Failed to request resource "akonadi_maildir_resource_0" : "Failed to fetch the resource collection."
org.kde.pim.akonadicore: Failed SpecialCollectionsRequestJob::slotResult "Failed to fetch the resource collection."
org.kde.pim.mailcommon: "The Email program encountered a fatal error and will terminate now.\nThe error was:\nFailed to fetch the resource collection."
org.kde.pim.akonadicore: Failed to request resource "akonadi_maildir_resource_0" : "Failed to fetch the resource collection.
```

STEPS TO REPRODUCE
1. Open Kmail
2. Delete the Local folder in the side bar

OBSERVED RESULT
The kmail crashed and shut down. 
Restart Kmail is not able to recover from the error. 

EXPECTED RESULT
Should work even after delete the Local folder.
Also, Kmail should handle the error, or even not allow the user to delete that folder.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.8.0-47-generic / 5.27.1
KDE Plasma Version:  5.27.1
KDE Frameworks Version:  Not sure
Qt Version: Not sure

ADDITIONAL INFORMATION