Pango Errors


I'm using Pango, Cairo and Xcb and for the most part it works pretty well. However I'm having trouble with the error reporting in pango. When I do something in my app it spits out pages and pages of pango errors, and well it seems to me that most of the methods in the Pango api return "void" giving me little or no chance to isolate which call is the problem. Maybe there is some callback to catch the errors? Or something because the current state of affairs is not working for me. I want to be able to assert at the first sign of trouble, not get 3 pages of errors and have no idea which call caused them.

The errors are along the lines of:
Pango-CRITICAL **: pango_fontset_foreach: assertion 'PANGO_IS_FONTSET (fontset)' failed.
GLib-GObject-CRITICAL **: g_object_get_qdata: assertion 'G_IS_OBJECT (object)' failed.

Is there a GDB trick to breaking on these sorts of errors so I can see the stack at that time?
Matthew Allen

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