Bug 222260 - gtk2 leaks memory on expose
Summary: gtk2 leaks memory on expose
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gtk2
Version: 6
Hardware: All
OS: Linux
medium
high
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact:
URL:
Whiteboard:
: 220903 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-01-11 07:23 UTC by Davyd
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2007-02-02 21:31:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
testcase to demonstrate leak, compile with gcc -g -o gtk_rc_style_test `pkg-config --cflags --libs gtk+-2.0` gtk_rc_style_test.c (1.09 KB, text/x-csrc)
2007-01-11 07:23 UTC, Davyd
no flags Details
valgrind log from one of my tests (14.95 KB, application/octet-stream)
2007-01-11 07:27 UTC, Davyd
no flags Details

Description Davyd 2007-01-11 07:23:24 UTC
Fedora gtk2-2.10.4-10 seems to leak memory on redraws (eg. modify_bg or expose),
at least for GtkButtons. This is not present in gtk2-2.10.4-6, I have not tested
any versions in between.

I have prepared a testcase that exposes a button every 50ms (or changes a button
background colour, which is how I first noticed the problem).

I could not track down what changed between -6 and -10 to cause this leak to
appear. It definitely exists on both i386 and amd64.

I'm wondering if this is related to bug 220903, but the valgrind log doesn't
have full leak checking.

Comment 1 Davyd 2007-01-11 07:23:25 UTC
Created attachment 145319 [details]
testcase to demonstrate leak, compile with gcc -g -o gtk_rc_style_test `pkg-config --cflags --libs gtk+-2.0` gtk_rc_style_test.c

Comment 2 Davyd 2007-01-11 07:27:03 UTC
Created attachment 145320 [details]
valgrind log from one of my tests

Comment 3 Tony Nelson 2007-01-12 16:36:17 UTC
gtk2-2.10.4-10.fc6.i386 has several leaks that are fixed in 2.10.7 upstream and
in rawhide, according to the changelog.  I noticed a leak when setting a
statusbar's text a few million times (used over 500 MB memory), and that
replacing the statusbar with a label did the same.  This was in Python, so I
wrote a trivial GTK program in C, which leaked the same way.  Linking that
program against a libgtk built from rawhide fixes that leak.

RFE gtk2 2.10.7 as in rawhide?

Comment 4 Matthias Clasen 2007-01-12 16:49:04 UTC
No, 2.10.7 has other issues. I'll do a 2.10.8 early next week, that will
hopefully find its way into fc6-updates

Comment 5 Tony Nelson 2007-01-12 16:54:06 UTC
OK.  That's why I didn't make the request as a separate RFE.  I certainly didn't
test anything else with 2.10.7.

Comment 6 Matthias Clasen 2007-02-02 21:29:14 UTC
*** Bug 220903 has been marked as a duplicate of this bug. ***

Comment 7 Matthias Clasen 2007-02-02 21:31:38 UTC
2.10.8 is in FC-6 updates now and should resolve this issue.


Note You need to log in before you can comment on or make changes to this bug.