title: How can I find out where is my code causing GLib-GObject-CRITICAL?
body: <p>When a C/C++ application fails with the following CRITICAL, can you please tell me how can I find out where is the code causing the error?</p>
  
  <p>I have tried to run it in the debugger, trying to do a 'bt when the program fails. But it does not show where is the code causing the CRITICAL:</p>
  
  <pre><code>(process:3155): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function
  
  (process:3155): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
  
  (process:3155): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function
  
  (process:3155): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function
  
  (process:3155): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function
  
  (process:3155): GLib-GObject-CRITICAL **: g_type_add_interface_static: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
  
  (process:3155): GLib-GObject-CRITICAL **: /build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization assertion failed, use IA__g_type_init() prior to this function
  </code></pre>