Bug 482526

Summary: kmail not starting due to ASSERT: “job == mSieveJob”
Product: [Applications] kmail2 Reporter: Lieven Tytgat <tytgatlieven>
Component: sieveAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: crash Keywords: qt6
Priority: NOR    
Version: 6.0.1   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Lieven Tytgat 2024-03-06 09:10:52 UTC
SUMMARY
***
On upgrading to plastma 6 kmail crashes immediately on startup with an enabled sieve account.

This error has also been reported by another user: https://discuss.kde.org/t/plasma6-kmail-not-starting-sieve/11073
***


STEPS TO REPRODUCE
1. have a kmail account with sieve enabled
2. start kmail

OBSERVED RESULT
DrKonki did not have a crash log for me to submit, even after installing dbgsym packages
kmail crash log:

qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "stateChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMState
qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "connectivityChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMConnectivityState
qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "deviceTypeChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMDeviceType
qt.dbus.integration: Could not connect "org.freedesktop.NetworkManager" to "meteredChanged" : Type not registered with QtDBus in parameter list: QNetworkManagerInterface::NMMetered
We have an error during reading password  "Entry not found"
We have an error during reading password  "Entry not found"
ASSERT: "job == mSieveJob" in file ./src/ksievecore/vacation/vacationcheckjob.cpp, line 68
*** KMail got signal 6 (Exiting)
*** Dead letters dumped.
/tmp/messageviewer_ccVMuo.index.2 was not removed .
/tmp/messageviewer_eGFGXV.index.2 was not removed .
/tmp/messageviewer_WqCvgi.index.vcard-7cfd991f-1fa4-44ba-868c-340823ea69f1 was not removed .
/tmp/messageviewer_ypQApJ.index.vcard-7cfd991f-1fa4-44ba-868c-340823ea69f1 was not removed .
/tmp/messageviewer_ccVMuo.index.2 was removed .
/tmp/messageviewer_eGFGXV.index.2 was removed .
/tmp/messageviewer_WqCvgi.index.vcard-7cfd991f-1fa4-44ba-868c-340823ea69f1 was removed .
/tmp/messageviewer_ypQApJ.index.vcard-7cfd991f-1fa4-44ba-868c-340823ea69f1 was removed .
KCrash: Application 'kmail' crashing... crashRecursionCounter = 2
QSocketNotifier: Invalid socket 5 and type 'Read', disabling...
QSocketNotifier: Invalid socket 9 and type 'Read', disabling...
QSocketNotifier: Invalid socket 15 and type 'Read', disabling...
QSocketNotifier: Invalid socket 23 and type 'Read', disabling...
[warn] epoll_wait: Bad file descriptor
[warn] epoll_wait: Bad file descriptor

The last line is repeated over and over

EXPECTED RESULT
kmail starts normally

SOFTWARE/OS VERSIONS
KDE neon 6.0 (regular ubuntu 22.04 with added neon repository)
KDE Plasma Version: 6.0.0 
KDE Frameworks Version: 6.0.1
Qt Version: 6.6.2

ADDITIONAL INFORMATION
If akonadi is first stopped with “akonadictl stop” it starts ok.
If the “Server Supports Sieve” option is disabled it also starts ok.
If enabling sieve support after starting up it will allow me to edit my sieve scripts.
Stopping akonadi does not result in successfull start in case kmail is started through kontact.