[DRE-maint] Bug#498558: libgdk-pixbuf2-ruby1.8: scale() of Gdk::Pixbuf leaks memory
Johan Walles
johan.walles at gmail.com
Thu Sep 11 05:40:08 UTC 2008
Package: libgdk-pixbuf2-ruby1.8
Version: 0.17.0~rc1-4
Severity: important
Run the below program on some image file:
"
#!/usr/bin/ruby
require 'gtk2'
unless ARGV.size == 1
puts "Syntax: pixbufmemleak.rb <name of an image file>"
exit 1
end
imagefile = ARGV[0]
puts "Test image: #{imagefile}"
pixbuf = Gdk::Pixbuf.new(imagefile)
while true
pixbuf = pixbuf.scale(1000, 1000)
end
"
Current behavior: Ruby's memory usage increases by about 200Mb per second.
Expected behavior: Not much, definitely no memory increase.
Regards //Johan
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libgdk-pixbuf2-ruby1.8 depends on:
ii libc6 2.7-13 GNU C Library: Shared libraries
ii libcairo2 1.6.4-6 The Cairo 2D vector graphics libra
ii libglib2-ruby1.8 0.17.0~rc1-4 Glib 2 bindings for the Ruby langu
ii libglib2.0-0 2.16.5-1 The GLib library of C routines
ii libgtk2.0-0 2.12.11-3 The GTK+ graphical user interface
ii libpango1.0-0 1.20.5-1 Layout and rendering of internatio
ii libruby1.8 1.8.7.22-3 Libraries necessary to run Ruby 1.
libgdk-pixbuf2-ruby1.8 recommends no packages.
libgdk-pixbuf2-ruby1.8 suggests no packages.
-- no debconf information
More information about the Pkg-ruby-extras-maintainers
mailing list