Bug 435149

Summary: Add ram limither while processing directories with too much pictures
Product: [Applications] gwenview Reporter: olegbessbrony
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: CONFIRMED ---    
Severity: major CC: cantabile.desu, nate
Priority: NOR    
Version First Reported In: 20.12.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description olegbessbrony 2021-03-30 13:37:48 UTC
SUMMARY

Gwenwiew may take all and more that it ram if it opened in directory wich hawe too much pictures (gwenview start makeing previevs of all pictures in directory untill all pictures will be processed)

STEPS TO REPRODUCE
1. Create a directory with many pictures
2. Open any picture in it with Gwenview
3. Look how you ram will be whiped with Gwenview while it creates previevs for all pictures

OBSERVED RESULT

Nearly whole system start lagging and working slow since it had to move some gvenwiew ram in swap

EXPECTED RESULT

Gwenview will load only some pictures from directory and will load/process extra as i will change inside gwenviver

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  5.4.105-1-MANJARO  / Plasma 5.21.3 


ADDITIONAL INFORMATION

I not a coder, but something is telling me that you will had to do some ram usage limither wich will halt extra images processing untill user will scroll near to end of processed pictures
Comment 1 cantabile 2021-03-30 13:46:06 UTC
Relevant information from IRC:
”no realy, i hawe like 40+ thousands pictures”

It might be useful to also say how much RAM your system has.
Comment 2 olegbessbrony 2021-03-30 15:31:17 UTC
 free
               total        used        free      shared  buff/cache   available
Mem:            4895        1497        2015          39        1382        3111
Swap:          24575         247       24328
Comment 3 Nate Graham 2021-03-31 16:57:13 UTC
This is in the process of being fixed with https://invent.kde.org/graphics/gwenview/-/merge_requests/49.
Comment 4 A Linux User 2025-09-04 12:18:36 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Gwenview 25.08.0 (the latest released version)?