Bug 330664 - Kmail hangs a few seconds on showing mail in html
Summary: Kmail hangs a few seconds on showing mail in html
Status: RESOLVED DUPLICATE of bug 331156
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.12.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-02 12:30 UTC by Gerd Fleischer
Modified: 2014-11-13 14:08 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
example mail (233.91 KB, application/mbox)
2014-02-02 12:31 UTC, Gerd Fleischer
Details
cachegrind output (2.71 MB, application/octet-stream)
2014-05-13 17:36 UTC, Gerd Fleischer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerd Fleischer 2014-02-02 12:30:44 UTC
Everytime showing a mail in html kmail hangs a few seconds, UI is unresponsive.
Also with disabled external resources.
Showing only source works immediately.

Maybe that are large mails with advertising, but it shouldn't take several seconds and freeze the ui.

Reproducible: Always
Comment 1 Gerd Fleischer 2014-02-02 12:31:34 UTC
Created attachment 84946 [details]
example mail
Comment 2 Laurent Montel 2014-02-02 13:35:16 UTC
indeed it takes 1-2 secondes here.
I will investigate.
Comment 3 Gerd Fleischer 2014-02-09 10:54:01 UTC
Takes 5-8 second for me, cpuusage of kmail goes to 100% during this time.
Kmail uses qtwebkit, right?
How look further whos fault it is?
Comment 4 Orion 2014-04-23 15:19:26 UTC
I confirm this bug on KDE 14.3 with lag of +5 seconds + very high cpu + large usage of RAM >500 Mb and growing.

remove "html mail" preference and all works well - even if you set a user to be allowed html mail loading... the lag then totally disappears with said user(s) even though the mail is shown in HTML. 

further the RAM usage then stays around 115 Mb

I am on Kubuntu 14.04
Comment 5 Gerd Fleischer 2014-05-13 17:36:04 UTC
Created attachment 86613 [details]
cachegrind output

A cachegrind output, for me it looks like a lot of cycles are spend in qtwebkit
Comment 6 Gerd Fleischer 2014-06-30 18:40:05 UTC
Same as Bug 331156?
Comment 7 Allen Winter 2014-07-31 11:57:25 UTC

*** This bug has been marked as a duplicate of bug 331156 ***
Comment 8 Orion 2014-08-20 07:15:08 UTC
on Kubuntu 14.40 with KDE 4.13.3 this no longer happens and bug has been resolved.

Thanks a lot!
Comment 9 Martin Fernau 2014-11-13 12:38:03 UTC
...and happens again in KDE 14.4.2 on Debian jessie
Comment 10 Orion 2014-11-13 13:20:54 UTC
(In reply to Martin Fernau from comment #9)
> ...and happens again in KDE 14.4.2 on Debian jessie

am on 4.14.2 in Kubuntu 14.10 and am not seeing it there, could it be distrorelated?
Comment 11 Martin Fernau 2014-11-13 14:08:39 UTC
Maybe its another bug.

I've one mail (obviously a large one - with many 're re re'...) if I try to respond to this mail kmail eats 100% CPU and hangs for several seconds (round about 10-30). After this period of time I can close the mail normally or start typing. If I try to type text it possibly hangs again for the same time which is the reason why I close the mail and answer with another mail client.