(process:842): GLib-GObject-CRITICAL **: gtype.c:1807:g_type_register_static(): initialization assertion failed, use g_type_init() prior to this function
The errors are probably happening prior to this and just being flushed at this point as that line doesn't do anything with the UI at all. However I would reccommend that in your situation that you do *not* let the stdio be redirected until you get all the kinks worked out with your embedding task. Just let the output go to the console instead, otherwise the simple act of printing something or getting a traceback could cause more errors that hide the true problems.
Understood. From what I could make of it so far, segfault gets triggered by call to
_core.PyApp__BootstrapApp(). But the "real" cause may be taking place
prior to this call, I understand. More digging...
Vio