On Sun, Feb 24, 2013 at 8:25 AM, Jonathan Ballet <j...@multani.info> wrote:

> Hi,
>
> Sometimes, I get some Gtk-CRITICAL errors in the console when running
> applications using PyGObject, such as:
>
> (sonata:10324): Gtk-CRITICAL **: gtk_icon_set_render_icon_pixbuf:
> assertion `icon_set != NULL' failed
>
> Is there any ways to have more information where this event has been
> generated from in the application?
> It sometimes is not too difficult to spot where the problem is, but in
> many cases, especially if the message is not seen right when it is
> generated, it's a bit more challenging.
>
>
I wonder if it's possible to integrate something in pygobject that calls
g_log_set_handler(),
which would print at least the python backtrace at that point. It would
probably
have to be done with C code, because if you do it in Python you would get a
cut-off traceback.

-- 
Johan Dahlin
_______________________________________________
python-hackers-list mailing list
python-hackers-list@gnome.org
https://mail.gnome.org/mailman/listinfo/python-hackers-list

Reply via email to