[pygtk] GTK warning
Gian Mario Tagliaretti
gianmt at gnome.org
Mon Feb 23 02:51:02 WST 2009
On Sun, Feb 22, 2009 at 6:09 PM, Jeffrey Barish
<jeff_barish a earthlink.net> wrote:
> I am getting a GTK warning that looks like this:
>
> /myprog.py:118: Warning: g_object_unref: assertion `object->ref_count > 0'
> failed
> self['myimage'].set_from_pixbuf(mypb)
>
> I am having a problem debugging this error because I don't see that I am
> unreferencing anything in line 118.
I don't think it's you unreferencing but the GC that have collected
your object leaving you with garbage,
what if you do something like
foo = [mypb]
just after you create it, to keep a reference to mypb and see if helps.
cheers
--
Gian Mario Tagliaretti
GNOME Foundation member
gianmt a gnome.org
More information about the pygtk
mailing list