From: gnome-perl (bugzilla.gnome.o. <bug...@gn...> - 2010-04-23 14:59:39
|
https://bugzilla.gnome.org/show_bug.cgi?id=616655 gnome-perl | Gtk2 | unspecified Summary: Gtk2::Gdk::Window destruction doesn't work correctly Classification: Bindings Product: gnome-perl Version: unspecified OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: Gtk2 AssignedTo: gtk...@li... ReportedBy: squ...@fr... QAContact: gtk...@li... GNOME target: --- GNOME version: --- Created an attachment (id=159437) --> (https://bugzilla.gnome.org/attachment.cgi?id=159437) test case When creating a child Gtk2::Gdk::Window, I get an error when closing the program. Either "Gdk-WARNING **: losing last reference to undestroyed window" if I didn't call destroy on the child gdkwindow, or "Attempt to free unreferenced scalar: SV 0x9a8ca78, Perl interpreter: 0x9a6b008." if I called destroy on the child gdkwindow. (see attached test case) Looking further, creating and destroying child gdkwindows continuously leaks some memory, and doing the same with toplevel gdkwindows ends up with an error. Replacing "GdkWindow_noinc * gdk_window_new" by "GdkWindow * gdk_window_new" in xs/GdkWindow.xs seems to fix it, though I don't know enough about gtk and the bindings to be sure it's the correct fix. -- Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. |
From: gnome-perl (bugzilla.gnome.o. <bug...@gn...> - 2010-09-07 00:24:13
|
https://bugzilla.gnome.org/show_bug.cgi?id=616655 gnome-perl | Gtk2 | unspecified Kevin Ryde <user42> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |us...@zi... --- Comment #1 from Kevin Ryde <us...@zi...> 2010-09-07 00:23:55 UTC --- Yes. It happens to a toplevel window too, per attached toplevel.pl. Removing the _noinc from gdk_window_new() fixes it for me too. But I don't think there's a memory leak. If you run some main loop iterations per attached noleak.pl then the memory is steady. I imagine it's notify events or whatever coming back from the server. Is a GdkWindow kept alive by it's place in the "list_toplevels" thingie, or by its parent when not a toplevel? So if you clear your perl scalar before the it's removed from there then no problem, but if the scalar lasts after that then there's a missing g_object_ref() for that scalar. -- Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. |
From: gnome-perl (bugzilla.gnome.o. <bug...@gn...> - 2010-09-07 00:24:47
|
https://bugzilla.gnome.org/show_bug.cgi?id=616655 gnome-perl | Gtk2 | unspecified --- Comment #2 from Kevin Ryde <us...@zi...> 2010-09-07 00:24:35 UTC --- Created an attachment (id=169634) --> (https://bugzilla.gnome.org/attachment.cgi?id=169634) failing program -- Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. |
From: gnome-perl (bugzilla.gnome.o. <bug...@gn...> - 2010-09-07 00:25:37
|
https://bugzilla.gnome.org/show_bug.cgi?id=616655 gnome-perl | Gtk2 | unspecified --- Comment #3 from Kevin Ryde <us...@zi...> 2010-09-07 00:25:25 UTC --- Created an attachment (id=169635) --> (https://bugzilla.gnome.org/attachment.cgi?id=169635) loop program which doesn't leak memory, but does provoke the _noinc problem -- Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. |
From: gnome-perl (bugzilla.gnome.o. <bug...@gn...> - 2010-11-23 20:27:07
|
https://bugzilla.gnome.org/show_bug.cgi?id=616655 gnome-perl | Gtk2 | unspecified Torsten Schoenfeld <kaffeetisch> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |kaf...@gm... Resolution| |FIXED --- Comment #4 from Torsten Schoenfeld <kaf...@gm...> 2010-11-23 20:26:45 UTC --- Yes, I think you are both correct. The current "transfer none" annotation also agrees. So I committed the suggested change to master and the stable-1-22 branch. Thanks for the report. -- Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. |