I am getting an error when I run the executable:
(a.out:6815): GooCanvas-CRITICAL **: goo_canvas_item_get_parent: assertion `GOO_IS_CANVAS_ITEM (item)' failed
I want to find out which function call is leading to this warning (since I am not calling the above function), I tried running with gdb but didn’t show me the source line? I have the -g included when I compile. Thanks.
Try to add
G_DEBUG=fatal_criticalsto your environment. This way, your program will abort() when a critical error occurs, so your gdb can point you where the assertion fails.That, or adding a breakpoint to the
g_criticalfunction.