[Bug 2080004] Re: Shotwell bug - Out of memory #5123
Sebastien Bacher
2080004 at bugs.launchpad.net
Thu Sep 26 09:05:18 UTC 2024
I've added the launchpad bug reference to the changelog and uploaded to
oracular
** Changed in: shotwell (Ubuntu)
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2080004
Title:
Shotwell bug - Out of memory #5123
Status in Shotwell:
Fix Released
Status in shotwell package in Ubuntu:
Fix Committed
Status in shotwell source package in Noble:
New
Bug description:
Impact
------
A memory leak that will cause Shotwell process to increasingly eat
memory constantly during a slideshow.
Test case
---------
*Start Shotwell and import a folder with about 10 photos; End
Shotwell.
*Save this script and execute it:
--->
#!/bin/sh
shotwell &
pid=$!
statm=/proc/$pid/statm
time=0
inc=1
version=$(dpkg-query -f '${Version}' -W shotwell)
while test -e "$statm"; do
#https://www.kernel.org/doc/html/latest/filesystems/proc.html
stack=$(cut -f6 -d' ' "$statm")
printf "%s %s\n" "$time" "$stack"
sleep "$inc"
time=$((time+inc))
done > "$version.dat"
<---
*Press F5 to start slideshow and keep pressing right arrow to cycle
through the photo set about 3 times.
*End Shotwell.
Expected: The memory logged in the *.dat file stops increasing instead
of steadily and indefinidetely increasing.
You can use "xmgrace -legend load *.dat" to get a plot of the behavior
before and after the fix for easier visualization (see attached
shotwell-stat.png).
Regression potential
--------------------
The changes are on a function that causes the Pixbuf cache to be
regenerated and the UI updated, so it should suffice to observe that
images are loaded alright in the slide show.
Further information
-------------------
Bug upstream: https://gitlab.gnome.org/GNOME/shotwell/-/issues/5123
Fix upstream:
https://gitlab.gnome.org/GNOME/shotwell/-/commit/fa6884f73af83ccbc72b8fe0f7bc63a00630ee0b
To manage notifications about this bug go to:
https://bugs.launchpad.net/shotwell/+bug/2080004/+subscriptions
More information about the Ubuntu-sponsors
mailing list