https://bugs.kde.org/show_bug.cgi?id=420173
Bug ID: 420173 Summary: thumbnail.so eats tons of memory with large GeoTiff Product: kio-extras Version: 19.12 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Thumbnails and previews Assignee: plasma-b...@kde.org Reporter: manisan...@gmail.com Target Milestone: --- Created attachment 127598 --> https://bugs.kde.org/attachment.cgi?id=127598&action=edit Patch SUMMARY Put any huge image in a folder (im my case a 111320 x 66792 GeoTiff), launch dolphin and browse to that folder or its parent, and watch thumbnail.so eat up memory. The cause is that QImageReader in ImageCreator::create (imagecreator.cpp) will read the entire raw image, in this needing I suppose like 27GB of memory. The easiest remedy would be to just limit the size of the images ImageCreator::create will actually process, like to max 10240 in either dimension. Proposed trivial patch attached. Note: QImageReader::setScaledSize reportedly works for some formats to directly read a downscaled image, but it does not seem to be the case with the qtiff driver. SOFTWARE/OS VERSIONS kio-extras-19.12.3 Fedora Rawhide Qt 5.14.2 -- You are receiving this mail because: You are watching all bug changes.