Bug 318949 - XML in message body causes KMail to hang after every action
Summary: XML in message body causes KMail to hang after every action
Status: RESOLVED NOT A BUG
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 4.10.2
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-26 19:57 UTC by tjbp
Modified: 2013-05-29 14:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tjbp 2013-04-26 19:57:00 UTC
I am often sent large quantities of XML pasted in an email, and when composing my reply message I am faced with frequent hangs. KMail becomes completely unresponsive, and starts to consume about 20% of my CPU time. The more XML, the longer the hangs will last. The hang seems to be triggered when I first open the composer to reply, and then again after 8 or so words I write.

I suspect this might have a connection to the greater-than signs used to indent quoted text, and something attempting to parse them is getting confused by all the greater-than signs in the XML.

Apologies if this is a duplicate or even already fixed (though I did search), since I'm aware I'm not using the latest revision.

Reproducible: Always

Steps to Reproduce:
1. Send an email with a significant amount of XML (say ~100 elements) to yourself.
2. Open a reply to that email.



x86_64
Comment 1 Laurent Montel 2013-04-29 05:38:45 UTC
Hi,
I need a test case.
Regards
Comment 2 Laurent Montel 2013-05-29 11:58:06 UTC
wait for infos
Comment 3 tjbp 2013-05-29 14:05:02 UTC
Apologies for the delay - after failing to replicate this more recently I'm wondering if the problem was actually caused by a vast number of line breaks in a long email correspondence. It seems the email clients of my other contacts are duplicating line breaks from my emails exponentially and eating memory.