Bug 486773 - KMail hogs 1 cpu core trying to display a message
Summary: KMail hogs 1 cpu core trying to display a message
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.22.3
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-08 10:56 UTC by tnemeth
Modified: 2024-05-08 10:56 UTC (History)
0 users

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


Attachments
Bzip'ed mail causing 100% cpu usage on 1 core. (577.25 KB, application/x-bzip)
2024-05-08 10:56 UTC, tnemeth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tnemeth 2024-05-08 10:56:21 UTC
Created attachment 169308 [details]
Bzip'ed mail causing 100% cpu usage on 1 core.

SUMMARY

A friend of mine sent me a mail because he needed help writing a shell script. Just displaying his mail in the
message viewer part or message viewer window takes 1 cpu core (100% cpu usage on that core). Changing
the view to another mail makes the cpu usage go back to normal.

What I found strange is that even though I've often received mails from gmail (since he's at gmail), I've never
faced such a behavior. I suspect it comes from how the mail is formatted. Maybe its size (12MB !) but not sure.


STEPS TO REPRODUCE
1. Open the mail in kmail
2. Look at the CPU usage

OBSERVED RESULT
Usage of one of the CPU core is at 100% by kmail.

EXPECTED RESULT
CPU usage should not be at 100% when displaying a mail :)


SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.10
Kernel Version: 6.7.12-amd64 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i7-7567U CPU @ 3.50GHz
Memory: 31.2 Gio of RAM
Graphics Processor: Mesa Intel® Iris® Plus Graphics 650
Manufacturer: Intel Corporation
Product Name: NUC7i7BNH
System Version: J31153-308

ADDITIONAL INFORMATION