Re: Getting more informations from Gtk-CRITICAL & co



Jonathan Ballet [2013-02-24 12:25 +0100]:
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?

Just as with all GLib application you can run it with
G_DEBUG=fatal-criticals to abort() on those, so that you can
investigate them in gdb. Most often the backtrace also has some hint
where you are in the Python code at that point, but that requires
debugging symbols to be installed. You can also run the program
through pythonX.Y-dbg, which should help as well.

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]