Bug 370088 - Huge memory leak when using slideshow feature
Summary: Huge memory leak when using slideshow feature
Status: RESOLVED FIXED
Alias: None
Product: rsibreak
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-05 13:25 UTC by Łukasz Żarnowiecki
Modified: 2016-10-05 21:50 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Łukasz Żarnowiecki 2016-10-05 13:25:51 UTC
When you run RSI break long enough you will expierience huge memory leak.  This is probably because every time the break fires up, it loads all the pictures into memory without ever releasing them.

Reproducible: Always

Steps to Reproduce:
1. Make sure you have at least 10 MB of pictures in one directory.
2. Turn on slideshow feature.
3. Run program.
4. After few hours observe huge memory leak.



Settings:
* Small 30 seconds break every 3 minutes .
* Long 10 minutes break every 45 minutes.

After 5 hours rsibreak occupies: 1.5 GB.
Comment 1 Albert Astals Cid 2016-10-05 20:52:11 UTC
Which version are you using?
Comment 2 Łukasz Żarnowiecki 2016-10-05 20:55:54 UTC
(In reply to Albert Astals Cid from comment #1)
> Which version are you using?

0.12.3
Comment 3 Albert Astals Cid 2016-10-05 21:50:47 UTC
Git commit bfa769db4e03a03fc7ac444cd02abb96e1d64360 by Albert Astals Cid.
Committed on 05/10/2016 at 21:50.
Pushed by aacid into branch 'master'.

Fix memory leak on the Slide Show Effect

M  +4    -5    src/slideshoweffect.cpp
M  +1    -1    src/slideshoweffect.h

http://commits.kde.org/rsibreak/bfa769db4e03a03fc7ac444cd02abb96e1d64360