GNOME Bugzilla – Bug 528769
gmenu python module locks up
Last modified: 2008-04-18 16:15:47 UTC
Please describe the problem: Description of problem: >>> import gmenu >>> gmenu.lookup_tree('applications.menu').root (process:2808): GLib-GObject-CRITICAL **: gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior to this function (process:2808): GLib-GObject-CRITICAL **: g_type_interface_add_prerequisite: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed (process:2808): GLib-GObject-CRITICAL **: gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior to this function (process:2808): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed (process:2808): GLib-GObject-CRITICAL **: gtype.c:2248: initialization assertion failed, use IA__g_type_init() prior to this function (process:2808): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed <statement runs forever using 100% CPU> $ ldd -u /usr/lib/python2.5/site-packages/gmenu.so 2786: /usr/lib/python2.5/site-packages/gmenu.so: error: symbol lookup error: undefined symbol: _Py_ZeroStruct (continued) undefined symbol: _Py_ZeroStruct (/usr/lib/python2.5/site-packages/gmenu.so) 2786: /usr/lib/python2.5/site-packages/gmenu.so: error: symbol lookup error: undefined symbol: PyExc_TypeError (continued) undefined symbol: PyExc_TypeError (/usr/lib/python2.5/site-packages/gmenu.so) 2786: /usr/lib/python2.5/site-packages/gmenu.so: error: symbol lookup error: undefined symbol: _Py_TrueStruct (continued) undefined symbol: _Py_TrueStruct (/usr/lib/python2.5/site-packages/gmenu.so) 2786: /usr/lib/python2.5/site-packages/gmenu.so: error: symbol lookup error: undefined symbol: PyType_Type (continued) undefined symbol: PyType_Type (/usr/lib/python2.5/site-packages/gmenu.so) 2786: /usr/lib/python2.5/site-packages/gmenu.so: error: symbol lookup error: undefined symbol: _Py_NoneStruct (continued) undefined symbol: _Py_NoneStruct (/usr/lib/python2.5/site-packages/gmenu.so) 2786: /usr/lib/python2.5/site-packages/gmenu.so: error: symbol lookup error: undefined symbol: PyString_Type (continued) undefined symbol: PyString_Type (/usr/lib/python2.5/site-packages/gmenu.so) Unused direct dependencies: /lib/libgio-2.0.so.0 /lib/libgobject-2.0.so.0 /lib/libgmodule-2.0.so.0 /lib/libdl.so.2 /lib/libglib-2.0.so.0 /usr/lib/libgnome-menu.so.2 Version-Release number of selected component (if applicable): gnome-menus-2.22.2-1.fc9.i386 Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Should be fixed with: 2008-04-11 Vincent Untz <vuntz@gnome.org> * libmenu/inotify-syscalls.h: * libmenu/inotify.h: killed * libmenu/menu-monitor.c: (register_monitor): call g_type_init() once since we're using gio in this file and so GObjects. Since libgnome-menus doesn't export any GObject stuff, an app can't know that g_type_init() has to be called and we have to do it.