When I edit a response to a mail, kmail becomes unresponsive for tens of seconds.
When this happens, htop shows /usr/bin/kontact is eating 100% of 1 cpu.
Then I eventually start to be able to type my text, _until I hit enter_ to get a new line.
Kmail then becomes unresponsive once again for several tens of seconds.
I ran strace, and it appears that it tries to read quite a lot of online resources, contained in the thread (signatures, etc...).
The mail contains a few external resources, all available, like:
<img src="https://nuage.liiib.re/s/RmQCimAJb2Jny6L/download" width="-2" height="-2">
or
<img src="https://s3.amazonaws.com/rkjha/signature-maker/icons/facebook_circle_color-20.png" width="-2" height="-2">
but loading these resources (which would by far not be mandatory on a reply) fails, I don't know why.
When it fails for some reason, it will then try to append every well known extension, as in here:
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.ani", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.avif", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.avifs", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.bmp", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.bw", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.cur", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.eps", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.epsf", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.epsi", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.exr", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.gif", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.hdr", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.icns", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.ico", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.jpeg", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.jpg", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.kra", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.mng", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.ora", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.pbm", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.pcx", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.pgm", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.pic", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.png", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.ppm", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.psd", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.ras", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.rgb", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.rgba", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.sgi", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.svg", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.svgz", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.tga", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.tif", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.tiff", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.wbmp", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.webp", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.xbm", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.xcf", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
openat(AT_FDCWD, "https://s3.amazonaws.com/rkjha/signature-maker/icons/twitter_circle_color-20.png.xpm", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
This makes kmail stall for ten of seconds...
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: kmail 4:21.12.3-0ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-39.42-generic 5.15.35
Uname: Linux 5.15.0-39-generic x86_64
NonfreeKernelModules: zfs zunicode zcommon znvpair zavl icp
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: KDE
Date: Mon Jun 20 11:19:02 2022
InstallationDate: Installed on 2022-02-05 (134 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220119)
SourcePackage: kmail
UpgradeStatus: No upgrade log present (probably fresh install)
When replying to a long email with lots of messages back and forth between me and the recepient, the emails is long and the composer window freezes for a long time before I can actually edit anything, the CPU is 100% on one core. You need to painfully remove some of the replied to text to make it shorter and then it becomes usable again.
This makes kmail unusable for me at work.
Reproducible: Always
Steps to Reproduce:
1. Pick a long email to reply to
2. Hit reply
3. Wait a few minutes before you can actually edit
Actual Results:
You need to aait a few minutes before you can actually edit. The only trick that make it usable again is to chop off the end of the email to make it shorter. Then it becomes responsive again.
Expected Results:
The wait before editing a reply to a long email should be a few seconds.
That happens on the latest ubuntu and the one before that as well. I'm pretty sure it was happening on kmail 4.12 and 4.11.
I use kmail inside kontact. But I have the same issue with kmail alone.