Bug 334469 - Long emails with lots of quoted text makes the UI unresponsive
Summary: Long emails with lots of quoted text makes the UI unresponsive
Status: RESOLVED DUPLICATE of bug 278046
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 5.19.3
Platform: Ubuntu Linux
: NOR grave
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-07 14:28 UTC by Francois Prunier
Modified: 2024-07-24 13:18 UTC (History)
7 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Prunier 2014-05-07 14:28:09 UTC
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.
Comment 1 Laurent Montel 2014-05-17 12:38:18 UTC
Indeed I confirm it's QTextEdit which has this problem.
=> a bug in qt not in kdepim.
Comment 2 Francois Prunier 2014-05-17 22:42:52 UTC
Thanks for the feedback Laurent.

Do you happen to know which qt version fixes it ?

Also I'm afraid users might not know that, think it's kmail fault and ditch it for a wrong reason. Is there no workaround available while this gets resolved in qt ?
Comment 3 Laurent Montel 2014-05-18 10:10:47 UTC
I don't think that it's fixed in qt
I didn't tested with qt5
For qt4 I think that it will never fix.
Comment 4 Morten Søltoft 2021-07-05 18:20:21 UTC
Still a huge problem!

5.17.2 (OpenSUSE Tumbleweed)
Comment 5 Franck Routier (alci) 2022-06-21 07:17:15 UTC
I encounter the same problem... I ran strace, and the problem occurs when kmail tries to access external resources (images in signatures in my case). I fails for some reason, then tries to append every extension it knows to the url (!!), which obviously fails. This makes kmail consume 100% cpu and stall for tens of seconds.

Opened an Ubuntu bug here : https://bugs.launchpad.net/ubuntu/+source/kmail/+bug/1979194
Comment 6 Franck Routier (alci) 2022-06-21 07:19:45 UTC
Example of strace when unresponsive:

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)
etc...
Comment 7 thomas 2022-06-23 19:55:13 UTC
Same issue here, this is annoying as hell.

Operating System: Arch Linux
KDE Plasma Version: 5.25.1
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5
Comment 8 domhans 2023-07-14 06:59:05 UTC
True, this annoys me for ages. To my opinion it's a quoting setting issue. Each time I reply to a mail quoted lines double. So writing back and force, email length increases exponentially... and kmail becomes unresponsive one mail is too long
There must be an easy way to fix this.

I'd be super thankful

I posted a brief text example below:

>> > > > models. One without Food intake and one including it. Here you alway
>> > > > 
>> > > > 
>> > > > 
>> > > > have
>> > > > 
>> > > > 
>> > > > 
>> > > > 
>> > > > 
>> > > > 
>> > > > 
>> > > > 
>> > > > 
>> > > >
Comment 9 Louis Moureaux 2024-07-24 13:18:50 UTC

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