Bug 424373 - Gvenview uses enormous amounts of RAM when browsing big image collections with thumbnails bar on
Summary: Gvenview uses enormous amounts of RAM when browsing big image collections wit...
Status: REPORTED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 20.04.3
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-18 12:24 UTC by Marcin Gurtowski
Modified: 2020-08-23 09:11 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Gurtowski 2020-07-18 12:24:03 UTC
SUMMARY
When browsing huge collections of images (around 10000 and more) with previews bar enabled, gwenview can easily use up few GB of RAM. It appears application loads data for every single image in the directory and stores it in memory.

This could be optimized by limiting loaded previews to images user can see + some margin for images that are likely to be viewed soon.

STEPS TO REPRODUCE
1. Prepare directory with large number of images
2. Open one of images
3. enable thumbnails bar

OBSERVED RESULT
Application uses few gigabytes of RAM

EXPECTED RESULT
Ram usage should be much smaller

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.19
KDE Plasma Version: 5.19.3
KDE Frameworks Version: 5.72.0
Qt Version: 5.14.2
Kernel Version: 5.3.0-62-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-4690K CPU @ 3.50GHz
Memory: 7.7 GiB of RAM
Graphics Processor: GeForce GTX 970/PCIe/SSE2
Comment 1 Kishore Gopalakrishnan 2020-08-23 09:11:08 UTC
The same thing happens even in 'Browse mode' (press 'esc' after opening the image to view other images in the directory).