Created attachment 127598 [details] 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
I believe the code has now some protection against this issue. Perhaps this can be closed?
(In reply to Marc Deop from comment #1) > I believe the code has now some protection against this issue. > > Perhaps this can be closed? Yes, it was patched with MR !219 (https://invent.kde.org/network/kio-extras/-/merge_requests/219)