Re: Tracking Gtk2 error messages



On 14.06.2015 04:58, Ian Chapman wrote:
How do I determine which widget is the cause of errors such as this?

Gtk-CRITICAL **: IA__gtk_widget_grab_default: assertion
'gtk_widget_get_can_default (widget)' failed

If you don't mind using a debugger and reading C backtraces, set the environment variable G_DEBUG to "fatal-criticals" and run your program through the debugger. For example, with gdb:

  G_DEBUG=fatal-criticals gdb --args perl app.pl
  gdb> r
  ... critical error, program stops
  gdb> bt
  ... backtrace ...

The backtrace should contain some hint about what's going on.


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