Re: Memory leaks in Pango ?



Hi Olivier,

What version of GTK are you using?  Are you up to date?

I used to see memory problems when repeatedly changing the text in labels
before the V2.0.0 release came out.  It certainly happened with V1.3.9 but
was fixed sometime before V1.3.14.  (It still happens on the Win32 version
though).

Richard.

----- Original Message -----
From: "Olivier Fourdan" <fourdan xfce org>
To: <gtk-app-devel-list gnome org>
Sent: Tuesday, May 21, 2002 8:51 AM
Subject: Re: Memory leaks in Pango ?


Hi Havoc,

Am I missing something here ? I took a quick look at the function in
pango sources and did not notice anything wrong.

Try "memprof" and see what's up.

Well, actually, this is memprof that shows that the memory keeps
growing. memprof doesn't report any leak there (but a few elsewhere),
but still, the memory usage allocated by the process, according to
memprof, grows from 1Mb up to 8Mb as much as the routine is called.

It's worth noting that I did the same test with testgtk, and some
widgets such as the "range control" shows exactly the same behaviour
(which is not so surprising since the range control widget use exactly
the same techniques as I do in my window manager).

As you move the range controls in testgtk, you can watch the memory
growing very fast.

I'm pretty sure there is something wrong somewhere. I did the test on
another system, just to make sure, and got the same result.

The test is fairly simple to reproduce :

memprof ./testgtk

Select range widget

Move the range buttons a few times and watch the total bytes alocated in
memprof.

Cheers,
--
Olivier               <fourdan xfce org>            http://www.xfce.org





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]