Bug 251845

Summary: gwenview: huge memory consumption on rotating images
Product: [Applications] gwenview Reporter: Mark <markotahal>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: adaptee
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mark 2010-09-20 20:19:29 UTC
Version:           unspecified (using KDE 4.5.1) 
OS:                Linux

any higher number of modified images (20 in my case for 2GB ram) causes gwenview to claim a lot of memory (over 1gb). the problems are visible at about 15+ images and when i reach cca 20, i get some warning in the program, a red text in border appears on top saying something about too much images modified and that i'd rather save them. 

Reproducible: Always

Steps to Reproduce:
open a photoalbum (any collection of photos) and rotate a bunch of them. 
in my case, 2gb ram, cca 20 rotated images (3.4MB each) will cause gwenview to take over 1.5GB RAM and render system very slow(swap, apparently)

Actual Results:  
the program consumes huge amount of memory (ove 1gb for 20 modified 3.4mb pics). 
Even if it store all the modifications in ram, it should take 20x3.4mb, shouldn't it? 

Expected Results:  
reasonable mem consumption.

it's jpeg imgs, but i don't thing it's relevant.
Comment 1 Jekyll Wu 2011-12-08 11:15:27 UTC
I failed to reproduce the reported problem using KDE SC 4.8 beta2
Comment 2 Jekyll Wu 2012-01-07 02:29:45 UTC
Feel free to reopen if this still happens in recent version of KDE SC.