Re: Pygobject memory leak in set_property?

2015-01-02 Thread Gergely Polonkai
Hello, How big is the memory increase? set_text() allocates memory for text, which might be the cause. Best, Gergely On 1 Jan 2015 22:55, Colin Myers colin.my...@tabernus.com wrote: Hello list, I've been wrangling with a leak in my Pygobject/Gtk application and believe the following lines

gir and refcounting

2015-01-02 Thread Wouter Verhelst
Hi, After help on this list, I got my API documentation to work properly, and have since added GObject-Introspection annotations so that I could use it from perl. When running the following script: --- use Glib::Object::Introspection; Glib::Object::Introspection-setup( basename = Joy,

Re: gir and refcounting

2015-01-02 Thread Gergely Polonkai
My first thought is that Perl and Glib::Object::Introspection is just fine. If I were you, I would further debug my own application, with something like refdbg (http://refdbg.sourceforge.net/ despite the looks, it still works nowadays) or GObject-list (https://github.com/danni/gobject-list haven’t

RE: Pygobject memory leak in set_property?

2015-01-02 Thread Colin Myers
Yes, the memory increase is in proportion with the size of the text. But it is more likely to be an error in my understanding than a pygobject or gtk bug – this is usually the case… Regards, Colin From: Gergely Polonkai [mailto:gerg...@polonkai.eu] Sent: 02 January 2015 08:18 To: Colin

Re: Pygobject memory leak in set_property?

2015-01-02 Thread Simon Feltman
On Fri, Jan 2, 2015 at 1:29 PM, Colin Myers colin.my...@tabernus.com wrote: Yes, the memory increase is in proportion with the size of the text. But it is more likely to be an error in my understanding than a pygobject or gtk bug – this is usually the case… This is a memory leak in

RE: Pygobject memory leak in set_property?

2015-01-02 Thread Colin Myers
This is a memory leak in pygobject. Lots leaks were fixed in get_property() last release [1] but set_property() still needs work [2]. -Simon [1] https://bugzilla.gnome.org/show_bug.cgi?id=726999#c7 [2] https://bugzilla.gnome.org/show_bug.cgi?id=735018 Thank you!

gdk_pixbuf_new_from_file_utf8 -- where it is defined?

2015-01-02 Thread Stefan Salewski
I am working on GTK3 wrappers/bindings for Nim language. For gdk-pixbuf-2.31.2 there seems to exist a function gdk_pixbuf_new_from_file_utf8 which is called in gdk-pixbuf-io.c: retval = gdk_pixbuf_new_from_file_utf8 (utf8_filename, error); and referenced in gdk-pixbuf-core.h: #define

Re: gdk_pixbuf_new_from_file_utf8 -- where it is defined?

2015-01-02 Thread Stefan Salewski
On Fri, 2015-01-02 at 16:29 -0800, Jasper St. Pierre wrote: On Fri, Jan 2, 2015 at 4:16 PM, Stefan Salewski m...@ssalewski.de wrote: I am working on GTK3 wrappers/bindings for Nim language. You sort of answered your own question here :) Think about what happens when this #define is