memory leaks, 0.54.1 with .2a modifications

I ran your memory test script on my Fedora 2 PC, it gave

    > Average memory consumed per loop: 168.3600 on the previous
    > matplotlib Average memory consumed per loop: 41.7200 on the
    > latest matplotlib from CVS. That's a big improvement.

Well that's interesting. I just reran the script myself because I was
getting approx 12 per loop and you are getting 40. But now when I
rerun it I get numbers compatible with yours. Annoying. Back to the
drawing board.

    > For the last week or so I've been unable to use the GTK+
    > backend with matplotlib (and PyGTK) from CVS. Instead of
    > producing a plot it colors the whole figure black. I think
    > this may be a colormap problem.

From your post to the pygtk list, I assume you are using PyGTK 2.3.93.
Unfortunately I don't have a good platform to test this version on
since my system doesn't have the required glib/gtk version and I have
learned from past experience not to try and upgrade these libs.
0.54.2 with the GTK backend runs fine with pygtk-2.2 on my system.

A couple of questions

* can you run matplotlib-0.54.1 on your current version of pygtk.
   This will help me figure out if something in matplotlib has changed
   or if something on your system has changed. The GTK backend is
   fairly stable at this point so not a lot has changed.

* Can you run matplotlib-0.54.2 with pygtk2.2 on your system?

If there is a 2.3.93 specific problem, we'll need to get it worked
out, but I'd like to narrow the field of candidate problems first.

JDH

I've just ran lots of tests:

Matplotlib PyGTK GTK+ backend
---------- ----- ------------
0.54.1 2.2.0 working
0.54.2 2.2.0 working
cvs 2.2.0 working

0.54.1 cvs(2.3.93) fails (the figure is all black)
0.54.2 cvs(2.3.93) fails
cvs cvs(2.3.93) fails

It must be a PyGTK bug.

Strangely enough I opened a PyGTK bug report today (#144135), which
turns out to be serious bug - a 'stopper' for PyGTK 2.4. It may also be
causing this problem with matplotlib. Hopefully it will be fixed soon
and if it doesn't fix this problem running matplotlib I'll open another
PyGTK bug report.

Steve

···

On Fri, 2004-06-11 at 19:22, John Hunter wrote:

    > For the last week or so I've been unable to use the GTK+
    > backend with matplotlib (and PyGTK) from CVS. Instead of
    > producing a plot it colors the whole figure black. I think
    > this may be a colormap problem.

>From your post to the pygtk list, I assume you are using PyGTK 2.3.93.
Unfortunately I don't have a good platform to test this version on
since my system doesn't have the required glib/gtk version and I have
learned from past experience not to try and upgrade these libs.
0.54.2 with the GTK backend runs fine with pygtk-2.2 on my system.

A couple of questions

* can you run matplotlib-0.54.1 on your current version of pygtk.
   This will help me figure out if something in matplotlib has changed
   or if something on your system has changed. The GTK backend is
   fairly stable at this point so not a lot has changed.

* Can you run matplotlib-0.54.2 with pygtk2.2 on your system?

If there is a 2.3.93 specific problem, we'll need to get it worked
out, but I'd like to narrow the field of candidate problems first.

JDH