Memory leak in ThumbnailGenerator
Bug #1484914 reported by
Florian Boucault
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
High
|
Alejandro J. Cura | ||
Thumbnailer |
Fix Released
|
High
|
Albert Astals Cid | ||
qtdeclarative-opensource-src (Ubuntu) |
Fix Released
|
High
|
Timo Jyrinki |
Bug Description
A possible memory leak is exhibited by the attached QML program 'leako.qml'. Run it as is on arale with at least 100 photos in /home/phablet/
$ phablet-shell
$ qmlscene --desktop_
Running top will show that RES memory usage is rising indefinitely.
Related branches
lp:~aacid/thumbnailer/fix_factory_leak
- Michi Henning (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 84 lines (+10/-17)2 files modifiedplugins/Ubuntu/Thumbnailer.0.1/thumbnailerimageresponse.cpp (+9/-14)
plugins/Ubuntu/Thumbnailer.0.1/thumbnailerimageresponse.h (+1/-3)
Changed in canonical-devices-system-image: | |
milestone: | none → ww40-2015 |
assignee: | nobody → Alejandro J. Cura (alecu) |
importance: | Undecided → High |
Changed in thumbnailer: | |
status: | Fix Committed → Fix Released |
tags: |
added: hotfix removed: hotfix6 |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
When removing the use of the thumbnailer and only loading the images no memory increase is observed.
I attach the Valgrind massif's log as proof.
To run valgrind with massif on the device: arm-linux- gnueabihf/ qt5/bin/ qmlscene --desktop_ file_hint= /usr/share/ applications/ address- book-app. desktop leako.qml
$ valgrind --tool=massif --time-unit=ms --detailed-freq=1 /usr/lib/