This bug was fixed in the package shotwell - 0.32.6-1ubuntu2

---------------
shotwell (0.32.6-1ubuntu2) noble; urgency=medium

  [ Jens Georg ]
  * d/p/memory-leak: Fix memory leak in slideshow (LP: #2080004).

 -- Nathan Pratta Teodosio <nathan.teodo...@canonical.com>  Thu, 26 Sep
2024 11:06:33 +0200

** Changed in: shotwell (Ubuntu Noble)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to shotwell in Ubuntu.
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 Released
Status in shotwell source package in Noble:
  Fix Released

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


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to