[Bug 234030] kio_thumbnail, memory leaks and high CPU usage

King_DuckZ king_duckz at lavabit.com
Fri Dec 9 08:47:44 GMT 2011


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





--- Comment #15 from King_DuckZ <king_duckz lavabit com>  2011-12-09 08:47:43 ---
I disagree. Killing a process is not a solution, will make the user experience
mysterious slowdowns with no visible result and delay the correct fix. Also,
there is no way an algorithm can decide when memory consumption is too high for
an arbitrary file. Here's a good example of a 59kb file expanding to over 48mb
in memory:
http://upload.wikimedia.org/wikipedia/commons/c/c4/All_24-bit_RGB_colors.png
In theory I could write a program that saves one single byte in a file and
produces huge outputs by looking up in a table of pre-made video files, for
example.
The problem is that memory allocation doesn't fail until you run out of virtual
memory. The real fix is that each plugin should take into account bogus data
and refrain from loading it if no partial recovery is possible, or stop at
once.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list