Re: [PATCH] Re: Gtk2::Gdk::Pixbuf::render_pixmap_and_mask leaks X memory ?
- From: zentara <zentara1 sbcglobal net>
- To: gtk-perl-list gnome org
- Subject: Re: [PATCH] Re: Gtk2::Gdk::Pixbuf::render_pixmap_and_mask leaks X memory ?
- Date: Mon, 30 Apr 2007 16:53:31 -0400
On Mon, 30 Apr 2007 14:17:33 +0200
squentin <squentin free fr> wrote:
Thanks for the patch, but it doesn't seem to work, X memory still grows.
You can easily test it with this small script. Replace file.jpg with a
real file, and watch X memory grows with "top", don't let it grow too
much ...
#!/usr/bin/perl
use strict;
use warnings;
use Gtk2 "-init";
my $pb=Gtk2::Gdk::Pixbuf->new_from_file("file.jpg");
Glib::Timeout->add(100,\&do);
Gtk2->main;
sub do
{ my ($pixmap,$mask)=$pb->render_pixmap_and_mask(1);
print STDERR ".";
}
Hi, I just tried this on my linux system (without patch applied), and it didn't gain memory
as it ran ( it held steady at 1.2 %).
HOWEVER, after about 2 minutes, it locked up my X server.
X Window System Version 1.2.99.903 (1.3.0 RC 3)
Release Date: 26 March 2007
X Protocol Version 11, Revision 0, Release 1.2.99.903
Build Operating System: Slackware 12.0 Slackware Linux Project
Current Operating System: Linux zentara 2.6.19.2-z #1 PREEMPT Thu Apr 12 11:55:38
EDT 2007 i686
Yikes.
zentara
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]