Bug 278046 - KMail freezes when replying to long messages in HTML
Summary: KMail freezes when replying to long messages in HTML
Status: CONFIRMED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.16.3
Platform: Ubuntu Linux
: HI normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: efficiency, triaged
: 334469 420075 424989 428583 443949 445393 479158 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-07-18 19:55 UTC by Ivan Tonchev
Modified: 2024-11-04 07:05 UTC (History)
14 users (show)

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


Attachments
attachment-3800166-0.html (3.59 KB, text/html)
2024-07-25 09:57 UTC, B. Scheichl
Details
attachment-1825407-0.html (3.78 KB, text/html)
2024-11-04 07:05 UTC, B. Scheichl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Tonchev 2011-07-18 19:55:25 UTC
Version:           4.4.10 (using KDE 4.6.2) 
OS:                Linux

Hello everyone,

After i enabled HTML formating in Kmail composer replying to long messages has become a headache. Kmail hangs, interface is completely frozen, during which time CPU usage is high. After a period of time (depending on how long the message to which i reply is) the program recovers for a few seconds and i can type a few words then in hangs again and the cycle goes on. 

Reproducible: Always

Steps to Reproduce:
1. Enable HTML formating in Kmail's composer.
2. Exchange several emails by replying (keep quoting the original messages). Do it until the email becomes several hundred lines long.
3. As the email grows longer the responsiveness of Kmail will decrease until it becomes unusable. 


Actual Results:  
Kmail becomes unusable - frozen interface for both composer and main KMail window.

Expected Results:  
To let me type the message.

Never happened when i was writing plain text messages
Comment 1 Christophe Marin 2011-07-19 09:37:25 UTC
Please retry with Kontact 4.6.1
Comment 2 Ivan Tonchev 2011-07-20 04:15:55 UTC
(In reply to comment #1)
> Please retry with Kontact 4.6.1

I upgraded KDE to 4.6.5 but Kontact is still 4.4.10. Which version of KDE comes with Kontact 4.6.1?
Comment 3 Marcel Wiesweg 2011-10-07 17:27:14 UTC
*** Bug 283165 has been marked as a duplicate of this bug. ***
Comment 4 theodore 2016-01-14 09:56:53 UTC
I can confirm that this bug is still existent in kmail 15.12.1-1. It is really frustrating. If anyone needs some more info, please let me know.
Comment 5 theodore 2016-01-14 10:01:28 UTC
(In reply to theodore from comment #4)
> I can confirm that this bug is still existent in kmail 15.12.1-1. It is
> really frustrating. If anyone needs some more info, please let me know.

I forgot to mention that my system is archlinux with kde plasma 5.
Comment 6 Andrew Crouthamel 2018-09-25 21:40:03 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Andrew Crouthamel 2018-10-27 03:32:04 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 8 Hadatko 2021-05-12 07:56:24 UTC
Hi, it is unbelievable that this bug is still present and not solved for such a time. 
current version kmail2 5.16.3 (20.12.3), cpu usage 100%, reproducible on kubuntu ..., 20.04, 20.10, 21.04

Messages when opening kmail:
kf.xmlgui: Index  23  is not within range (0 -  21 )
kf.xmlgui: Index  25  is not within range (0 -  21 )
kf.xmlgui: Index  27  is not within range (0 -  21 )
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1473, resource id: 50331784, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1476, resource id: 50331784, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1479, resource id: 50331784, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1484, resource id: 50331784, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1506, resource id: 50331784, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1731, resource id: 50331784, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1767, resource id: 50331784, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1770, resource id: 50331784, major code: 130 (Unknown), minor code: 3

When replying to big message:
Opening in existing browser session.
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 8852, resource id: 50332161, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 8888, resource id: 50332161, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 8891, resource id: 50332161, major code: 130 (Unknown), minor code: 3
 load big message 
 settings  true
org.kde.pim.messagecore: Adding image 0x561df2f61240
org.kde.pim.messagecore: Adding image 0x561df2ec2ad0
org.kde.pim.messagecore: Adding image 0x561df2d5df00
org.kde.pim.templateparser: Adding 0x561df2f61240 as an embedded image
org.kde.pim.templateparser: Adding 0x561df2ec2ad0 as an embedded image
org.kde.pim.templateparser: Adding 0x561df2d5df00 as an embedded image
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed
Comment 9 Hadatko 2021-05-12 08:04:15 UTC
After installing(In reply to Hadatko from comment #8)
> Hi, it is unbelievable that this bug is still present and not solved for
> such a time. 
> current version kmail2 5.16.3 (20.12.3), cpu usage 100%, reproducible on
> kubuntu ..., 20.04, 20.10, 21.04
> 
> Messages when opening kmail:
> kf.xmlgui: Index  23  is not within range (0 -  21 )
> kf.xmlgui: Index  25  is not within range (0 -  21 )
> kf.xmlgui: Index  27  is not within range (0 -  21 )
> qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1473,
> resource id: 50331784, major code: 130 (Unknown), minor code: 3
> qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1476,
> resource id: 50331784, major code: 130 (Unknown), minor code: 3
> qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1479,
> resource id: 50331784, major code: 130 (Unknown), minor code: 3
> qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1484,
> resource id: 50331784, major code: 130 (Unknown), minor code: 3
> qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1506,
> resource id: 50331784, major code: 130 (Unknown), minor code: 3
> qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1731,
> resource id: 50331784, major code: 130 (Unknown), minor code: 3
> qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1767,
> resource id: 50331784, major code: 130 (Unknown), minor code: 3
> qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1770,
> resource id: 50331784, major code: 130 (Unknown), minor code: 3
> 
> When replying to big message:
> Opening in existing browser session.
> qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 8852,
> resource id: 50332161, major code: 130 (Unknown), minor code: 3
> qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 8888,
> resource id: 50332161, major code: 130 (Unknown), minor code: 3
> qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 8891,
> resource id: 50332161, major code: 130 (Unknown), minor code: 3
>  load big message 
>  settings  true
> org.kde.pim.messagecore: Adding image 0x561df2f61240
> org.kde.pim.messagecore: Adding image 0x561df2ec2ad0
> org.kde.pim.messagecore: Adding image 0x561df2d5df00
> org.kde.pim.templateparser: Adding 0x561df2f61240 as an embedded image
> org.kde.pim.templateparser: Adding 0x561df2ec2ad0 as an embedded image
> org.kde.pim.templateparser: Adding 0x561df2d5df00 as an embedded image
> Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
> kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed
> Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
> kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed

After installing hspelldict. Init failed but freezing stayed.
Comment 10 Louis Moureaux 2024-07-24 13:11:04 UTC
*** Bug 420075 has been marked as a duplicate of this bug. ***
Comment 11 Louis Moureaux 2024-07-24 13:12:16 UTC
*** Bug 424989 has been marked as a duplicate of this bug. ***
Comment 12 Louis Moureaux 2024-07-24 13:12:41 UTC
*** Bug 428583 has been marked as a duplicate of this bug. ***
Comment 13 Louis Moureaux 2024-07-24 13:13:12 UTC
*** Bug 443949 has been marked as a duplicate of this bug. ***
Comment 14 Louis Moureaux 2024-07-24 13:13:39 UTC
*** Bug 445393 has been marked as a duplicate of this bug. ***
Comment 15 Louis Moureaux 2024-07-24 13:14:20 UTC
*** Bug 479158 has been marked as a duplicate of this bug. ***
Comment 16 Louis Moureaux 2024-07-24 13:18:29 UTC
Quoting Laurent Montel in #334469:
Indeed I confirm it's QTextEdit which has this problem.
=> a bug in qt not in kdepim.
=== End quote

-> If this is really still the case 10 years later, it might be time to open an issue with Qt...
Comment 17 Louis Moureaux 2024-07-24 13:18:50 UTC
*** Bug 334469 has been marked as a duplicate of this bug. ***
Comment 18 Louis Moureaux 2024-07-24 13:22:55 UTC
Marking as confirmed as this has 8 duplicates including relatively recent ones (though none in Qt6 yet).
Comment 19 B. Scheichl 2024-07-25 09:57:19 UTC
Created attachment 171975 [details]
attachment-3800166-0.html

Dear Louis,

I'm a recipient of the status updates of this bug I once claimed. My question is: What are the next steps, do you mean an Qt issue is already opened now? It is so annoying and unacceptable that Kmail suffers from freezing email for more than decade. Many thanks for short reply!

Kind regards,

Bernhard


On Wednesday, 24 July 2024 15:18:29 CEST Louis Moureaux wrote:

> https://bugs.kde.org/show_bug.cgi?id=278046

>

> Louis Moureaux <m_louis30@yahoo.com> changed:

>

>            What    |Removed                     |Added

> ----------------------------------------------------------------------------

> CC|                            |m_louis30@yahoo.com

>

> --- Comment #16 from Louis Moureaux <m_louis30@yahoo.com> ---

> Quoting Laurent Montel in #334469:

> Indeed I confirm it's QTextEdit which has this problem.

> => a bug in qt not in kdepim.

> === End quote

>

> -> If this is really still the case 10 years later, it might be time to open

> an issue with Qt...



________________________________

Privatdoz. DI Dr. Bernhard Scheichl, Hon. Assoc. Prof.

Technische Universität Wien | Institute of Fluid Mechanics and Heat Transfer

Tower BA/E322 | Getreidemarkt 9 | 1060 Vienna | Austria

T: +43-1-58801-32225 | www.tuwien.at/mwbw/fluid<https://www.tuwien.at/mwbw/fluid>
Comment 20 Louis Moureaux 2024-07-25 12:36:17 UTC
Dear Bernhard,

I was actually opening a report for another freeze and spotted the half a 
dozen duplicates of this one (that I've also been experiencing) so I decided 
to consolidate the information.

I think the first step would be to reproduce in a Qt6-based KMail. Then, we 
should double-check the statement from Laurent Montel I pasted (Laurent is 
still one of the main devs but he checked this 10 years ago...)

Depending on whether this is confirmed on the KMail side, a minimal repro 
should be written to open an issue with Qt, or KMail should be fixed.

Best,
Louis

Le jeudi 25 juillet 2024, 11:57 Scheichl, Bernhard a écrit :
> Dear Louis,
> 
> I'm a recipient of the status updates of this bug I once claimed. My
> question is: What are the next steps, do you mean an Qt issue is already
> opened now? It is so annoying and unacceptable that Kmail suffers from
> freezing email for more than decade. Many thanks for short reply!
 
> Kind regards,
> 
> Bernhard
> 
> 
> On Wednesday, 24 July 2024 15:18:29 CEST Louis Moureaux wrote:
> 
> 
> > https://bugs.kde.org/show_bug.cgi?id=278046
> 
> 
> 
> >
> 
> 
> 
> > Louis Moureaux <m_louis30@yahoo.com> changed:
> 
> 
> 
> >
> 
> 
> 
> >            What    |Removed                     |Added
> 
> 
> 
> > --------------------------------------------------------------------------
> > --
> 
> 
> > CC|                            |m_louis30@yahoo.com
> 
> 
> 
> >
> 
> 
> 
> > --- Comment #16 from Louis Moureaux <m_louis30@yahoo.com> ---
> 
> 
> 
> > Quoting Laurent Montel in #334469:
> 
> 
> 
> > Indeed I confirm it's QTextEdit which has this problem.
> 
> 
> 
> > => a bug in qt not in kdepim.
> 
> 
> 
> > === End quote
> 
> 
> 
> >
> 
> 
> 
> > -> If this is really still the case 10 years later, it might be time to
> > open
> 
> 
> > an issue with Qt...
> 
> 
> 
> 
> ________________________________
> 
> Privatdoz. DI Dr. Bernhard Scheichl, Hon. Assoc. Prof.
> 
> Technische Universität Wien | Institute of Fluid Mechanics and Heat
> Transfer
 
> Tower BA/E322 | Getreidemarkt 9 | 1060 Vienna | Austria
> 
> T: +43-1-58801-32225 |
> www.tuwien.at/mwbw/fluid<https://www.tuwien.at/mwbw/fluid>
Comment 21 Louis Moureaux 2024-07-25 12:57:46 UTC
Sorry for the email replies with quotations. I quickly confirmed the following in a Qt 6 build:

Editing long messages is slow. I typed the word "test" many times, one on each line. I start feeling the performance at 100k words, and at 500k words it becomes unbearable (1s to type a single letter). KWrite is still super sleek at this level.

I did the same test in a simple QTextEdit and got results similar to KMail's editor.

It does seem to be a Qt bug.
Comment 22 Louis Moureaux 2024-07-25 13:17:56 UTC
Upstream bug: https://bugreports.qt.io/browse/QTBUG-17182
It was also commented on this report that QTextEdit was never meant to handle large inputs, so mitigation might be needed on the KMail side (many mail clients collapse answers by default or make them read-only, maybe something similar could be done...)
Comment 23 Alexandre Bonneau 2024-11-04 00:01:40 UTC
I confirm this bugs still happens on 5.22.3 (Debian stable).

Since this bug has been opened on Qt side for almost 14 years, I highly doubt they will fix anything soon (or ever).
Also, in any professional (corporate) setting where using html mail is the norm (unfortunately), it makes using kmail a pain, and even a blocking point.

I'd say it's time to find a way from kde side to make it work correctly without relaying on upstream which clearly does not care about the issue and even said the component was not meant for this use case, don't you think?
Comment 24 Hadatko 2024-11-04 04:17:27 UTC
Well i switched to Thunderbird, which is working well.
Comment 25 B. Scheichl 2024-11-04 07:05:49 UTC
Created attachment 175505 [details]
attachment-1825407-0.html

I fully agree - I claimed this bug some time ago at KDE side as it becomes really annoying once a thread has reached a certain number of replies. It is still the case with openSUSE Tumbleweed.

B. Scheichl (TU Wien). From my mobile.

________________________________
Von: Alexandre Bonneau <bugzilla_noreply@kde.org>
Gesendet: Montag, 4. November 2024 01:26
An: Scheichl, Bernhard
Betreff: [kmail2] [Bug 278046] KMail freezes when replying to long messages in HTML

https://bugs.kde.org/show_bug.cgi?id=278046

Alexandre Bonneau <alexandre.bonneau@linuxfr.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |alexandre.bonneau@linuxfr.e
                   |                            |u

--- Comment #23 from Alexandre Bonneau <alexandre.bonneau@linuxfr.eu> ---
I confirm this bugs still happens on 5.22.3 (Debian stable).

Since this bug has been opened on Qt side for almost 14 years, I highly doubt
they will fix anything soon (or ever).
Also, in any professional (corporate) setting where using html mail is the norm
(unfortunately), it makes using kmail a pain, and even a blocking point.

I'd say it's time to find a way from kde side to make it work correctly without
relaying on upstream which clearly does not care about the issue and even said
the component was not meant for this use case, don't you think?

--
You are receiving this mail because:
You are on the CC list for the bug.