Re: [Java-gnome-developer] Pixbuf memory leak

2011-10-24 Thread William Temperley
On 23 October 2011 15:55, Vreixo Formoso Lopes wrote: > Hi all, > > please correct me if I'm wrong, I haven't looked at this since one or two > years, but I am pretty > > sure about the reason for the leak in the test code. As it never enters gtk > main loop, our reference > to the underlying Gd

Re: [Java-gnome-developer] Pixbuf memory leak

2011-10-23 Thread Vreixo Formoso Lopes
veloper Cc: Enviadas: Quarta-feira, 19 de Outubro de 2011 19:01 Assunto: [Java-gnome-developer] Pixbuf memory leak Hi all, I've come across a memory leak with Pixbuf - whenever I construct one, lots of memory is leaked. The test below leaks ~200MB when loading a 6kb image 10,000 times. Com

Re: [Java-gnome-developer] Pixbuf memory leak

2011-10-23 Thread Andrew Cowie
On Fri, 2011-10-21 at 10:09 +0100, William Temperley wrote: > I'm fairly sure it's Pixbuf that's causing this. For a bit of > background, I do a lot of drawing hefty polygons onto Cairo canvases > and draw images using the Pixbuf. Hm. Have you considered using a Cairo ImageSurface? You can write

Re: [Java-gnome-developer] Pixbuf memory leak

2011-10-21 Thread William Temperley
On 20 October 2011 01:46, Andrew Cowie wrote: > On Wed, 2011-10-19 at 18:01 +0100, William Temperley wrote: >> I wonder if anyone has a >> quick and dirty workaround for freeing up this memory? I'm doing a >> production run of approximately 6000 maps for a website, which grinds >> to a halt after

Re: [Java-gnome-developer] Pixbuf memory leak

2011-10-19 Thread Andrew Cowie
On Wed, 2011-10-19 at 18:01 +0100, William Temperley wrote: > I wonder if anyone has a > quick and dirty workaround for freeing up this memory? I'm doing a > production run of approximately 6000 maps for a website, which grinds > to a halt after 100 or so maps, using all 8GB of RAM. Eek. That's n

[Java-gnome-developer] Pixbuf memory leak

2011-10-19 Thread William Temperley
Hi all, I've come across a memory leak with Pixbuf - whenever I construct one, lots of memory is leaked. The test below leaks ~200MB when loading a 6kb image 10,000 times. Commenting out the Pixbuf construction leads to steady memory use. This memory usage isn't reported by the JVM. I've come acr