KMail crashes when trying to sign an outgoing message with following error (repeated many times):
org.kde.pim.kmail: Danger, using an event loop, this should no longer be happening!
fish: Job 1, 'kmail' terminated by signal SIGALRM (Timer expired)
The wording itself suggest that it might be something that “should not be happening” (other than the crash itself). Sending non-signed mails works just fine.
I recently moved from pinentry-kwallet to pinentry-qt (ditching kwalletcli).
KWallet secret service API is enabled and $PINENTRY_KDE_USE_WALLET is set to “1”.
Checking the source code, it looks the error message has little to do with the origin of a crash as it is part of the code responsible for cleaning after forced shutdown.
However, interestingly the Kmail crashes only when I try to sign/encrypt new message. If replying, the reply message gets signed just fine.
Which versions of KDE Plasma components are you using (“kinfo” at a Konsole prompt)?
Which version of KMail are you using (“Help” → “About KMail”)?
Is the key being used to sign the e-Mails stored in Kleopatra?
Has the signature key been correctly setup in the user’s KMail “Accounts” → “Identity” →“Cryptography” settings?
kinfo:
Operating System: Arch Linux
KDE Plasma Version: 6.7.0
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
Kernel Version: 7.0.12-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-4260U CPU @ 1.40GHz
Memory: 4 GiB of RAM (3.8 GiB usable)
Graphics Processor: Mesa Intel® HD Graphics 5000
BTW, I updated my setup today (hoping it will help, which it did not), so this is summary after the update, however from relevant packages only plasma was updated.
About KMail:
Version 6.7.2 (26.04.2)
Kleopatra:
I am not really familiar with Kleopatra. I manage my keys directly with GnuPG. However the key shows in Kleopatra and everything looks OK to me. Also signing/encrypting files from Kleopatra’s menu works just fine.
KMail settings:
I tried reinsert the key. Also the setup worked just fine in the past. I did not touch anything on KMail’s side.