Re: checking for memory leaks in gtk

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

 



>On Wed, May 14, 2008 at 10:13 PM,  <jcupitt@xxxxxxxxx> wrote:
> 2008/5/14 Harinandan S <harinandans@xxxxxxxxx>:
>>  When i ran it under valgrind with G_SLICE=always-malloc G_DEBUG=gc_friendly\
>>  valgrind --tool=memcheck --leak-check=yes ./a.out &>leak.log
>>
>>  I got these leaks reported.
>
> Those are harmless singleton objects (I think), they are not leaks.
>
>>  My main concern is running this on DirectFB platform. Its accumulating
>>  memory completely. I see no decrease in memory usage when second
>>  window is destroyed.
>
> Is that valgrind output for the directfb backend?

No.It was for X window backend on x86 linux. DirectFB is running on
arm-linux platform where i don't have valgrind support.

> As I'm sure you
> know, apps never (almost never) shrink. If you
> open/close/open/close/open/close and see a steady increase in memuse
> that does sound like a leak. But that's something valgrind should be
> able to help you with.
>
> Here's a version of your program that uses a timeout to pop the popup
> up and down repeatedly. I tried it on windows and linux and saw no
> steady increase in memuse, as least as reported by the pretty useless
> task manager.

Thanks. When i run this on windows there is increase in memory usage
as seen in task manager but its not steady. After few mins if the
application is still running without minimizing  increase in memory
was observed. On x86 linux with Xwindow backend i didnt see any
increase in memory even after running the program for 5 mins as seen
using system monitor.

On DirectFB backend on Davinci MVL, i see steady increase in memory
usage using 'top'. It starts from 4.2% and goes up steadily and after
2-3 min of running this program, memory usage went up to 86% and
program slowed down and eventually crashed saying out of memory. I
have 256MB ram on Davinci.

On DirectFB backend i used DirectFB 1.1.1 with GTK+ 2.12.2. Is there
any issues with using these versions since i am able to observe huge
leaks on DirectFB backend. Is there any possibility of build procedure
going wrong somewhere while building it for Davinci?

I somehow feel destroy is not happening properly on DirectFB backend!
Has anyone run GTK on DirectFB having multiple windows and not
observed any leak?

>
> I don't have a directfb install to test it on, sadly.

Thanks for your help. Its ok.
>
> John
>


Regards,
Harinandan S
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux