From: Fionn B. <fi...@sp...> - 2004-09-09 17:04:37
|
Hi all, I have asked earlier, I do it again. We have a project here that needs 3d output. the UI itself ist done in python-gtk. We fail to manage starting vpython out of our gtk application. First the two mainloops collided, so people told us to use python-gtk2 and threads. So we switched the Ui to python-gtk2 and use threads. Similar to the tk-demo thats coming with python-visual, we start python-visual in its own thread. The good news: no more mainloop clashing. The bad news: It segfaults immediately, leaving loads of messages on the screen that look like this: (<unknown>:13237): GLib-CRITICAL **: file ghash.c: line 225 (g_hash_table_lookup): assertion `hash_table != NULL' failed (<unknown>:13237): Gtk-WARNING **: gtk_type_create(): unknown parent type `21'. (<unknown>:13237): GLib-CRITICAL **: file ghash.c: line 225 (g_hash_table_lookup): assertion `hash_table != NULL' failed (<unknown>:13237): GLib-CRITICAL **: file ghash.c: line 291 (g_hash_table_insert): assertion `hash_table != NULL' failed (<unknown>:13237): GLib-CRITICAL **: file ghash.c: line 225 (g_hash_table_lookup): assertion `hash_table != NULL' failed (<unknown>:13237): GLib-CRITICAL **: file ghash.c: line 291 (g_hash_table_insert): assertion `hash_table != NULL' failed (<unknown>:13237): GLib-CRITICAL **: file ghash.c: line 225 (g_hash_table_lookup): assertion `hash_table != NULL' failed (<unknown>:13237): GLib-CRITICAL **: file ghash.c: line 291 (g_hash_table_insert): assertion `hash_table != NULL' failed (<unknown>:13237): GLib-CRITICAL **: file ghash.c: line 225 (g_hash_table_lookup): assertion `hash_table != NULL' failed (<unknown>:13237): Gtk-WARNING **: gtk_type_create(): unknown parent type `21'. (<unknown>:13237): Gtk-CRITICAL **: file gtktypeutils.c: line 337 (gtk_type_class): assertion `node != NULL' failed. (<unknown>:13237): Gtk-WARNING **: gtk_arg_type_new(): argument class in "GtkContainer::border_width" is not in the `(null)' ancestry ... Please, please, if anyone EVER managed to start vpython from a gtk gui or has any tip on what might have gone wrong, send it! Desperate, Fionn |