Bug 435149 - Add ram limither while processing directories with too much pictures
Summary: Add ram limither while processing directories with too much pictures
Status: CONFIRMED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 20.12.3
Platform: Manjaro Linux
: NOR major
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-30 13:37 UTC by olegbessbrony
Modified: 2021-03-31 16:57 UTC (History)
2 users (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 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.