[frameworks-kimageformats] [Bug 479612] Massive memory leak when looking at a file

Mirco Miranda bugzilla_noreply at kde.org
Fri Mar 1 07:23:08 GMT 2024


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

Mirco Miranda <mircomir at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mircomir at gmail.com

--- Comment #10 from Mirco Miranda <mircomir at gmail.com> ---
This patch should help:
https://invent.kde.org/frameworks/kimageformats/-/merge_requests/209

If I remember correctly, the thumbnail generator leaves the task of determining
the correct format to the plugins (regardless of the extension and mime type).
As a result, formats like TGA that do not have a unique signature can result in
false positives and the plugin tries to read them. It is not a good thing.

To avoid excessive RAM usage, last year I modified the thumnailer with memory
checks to prevent the system from threshing. I don't know if it still works
though.
Also, while writing the patch for the TGA I saw that it uses double the
necessary memory. This probably doesn't help either.

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


More information about the kfm-devel mailing list