after upgrading via emerge my wxpython to 2.4.0.1, some applications have some problem and don't start anymore. For exemple, pycrust : ------------------------------------------------------------------- ** (pycrust:5398): CRITICAL **: file pango-layout.c: line 2002 (pango_layout_get_extents): assertion `layout != NULL' failed (pycrust:5398): GLib-GObject-CRITICAL **: file gobject.c: line 1337 (g_object_unref): assertion `G_IS_OBJECT (object)' failed ** (pycrust:5398): CRITICAL **: file pango-layout.c: line 266 (pango_layout_new): assertion `context != NULL' failed ** (pycrust:5398): CRITICAL **: file pango-layout.c: line 543 (pango_layout_set_font_description): assertion `layout != NULL' failed ** (pycrust:5398): CRITICAL **: file pango-layout.c: line 727 (pango_layout_set_text): assertion `layout != NULL' failed ** (pycrust:5398): CRITICAL **: file pango-layout.c: line 2002 (pango_layout_get_extents): assertion `layout != NULL' failed (pycrust:5398): GLib-GObject-CRITICAL **: file gobject.c: line 1337 (g_object_unref): assertion `G_IS_OBJECT (object)' failed Floating point exception ------------------------------------------------------------------- And MANY lines like that. another exemple, with boa-constructor (portage's version 0.1.0_alpha is quite old and don't run anymore too, I use the pretty new 0.2.0) ------------------------------------------------------------------- [...] ** (Boa.py:5412): CRITICAL **: file pango-layout.c: line 2002 (pango_layout_get_extents): assertion `layout != NULL' failed (Boa.py:5412): GLib-GObject-CRITICAL **: file gobject.c: line 1337 (g_object_unref): assertion `G_IS_OBJECT (object)' failed ** (Boa.py:5412): CRITICAL **: file pango-layout.c: line 266 (pango_layout_new): assertion `context != NULL' failed ** (Boa.py:5412): CRITICAL **: file pango-layout.c: line 543 (pango_layout_set_font_description): assertion `layout != NULL' failed ** (Boa.py:5412): CRITICAL **: file pango-layout.c: line 727 (pango_layout_set_text): assertion `layout != NULL' failed ** (Boa.py:5412): CRITICAL **: file pango-layout.c: line 2002 (pango_layout_get_extents): assertion `layout != NULL' failed (Boa.py:5412): GLib-GObject-CRITICAL **: file gobject.c: line 1337 (g_object_unref): assertion `G_IS_OBJECT (object)' failed Floating point exception -----------------------------------------------------------------------
what if you recompile the packages ?
I have recompiled pyGTK wxpython, boa-constructor, same result...
do you have gtk2 in your use variables?
Yes, I have gtk2 in my use variable
hi, i've investigated this problem a bit further yesterday and came up with the following findings: 1. wxPython is mostly functional. You can confirm that by getting the wxPython-demo tarball from the webpage and running their demo.py. Although there are some bugs. It has to be noted that wxPython is experimental for GTK2 right now. 2. The problem with PyCrust/PyShell is that it uses wxStyledTextCtrl which is a contrib module. wxWindows does not compile the corresponding library libwx_gtk2u-stc.so* and I rekcon that is causing the errors. Right now, I can't confirm that compiling the contrib library will help, I'm building it right now to see. I'll report my findings after it finishes. As an aside, the source rpms that the site provides also has this error when you try it under Redhat.
update to the testing i did. doesn't seem to fix the problem with wxStyledTextCtrl failing and producing alot of pango errors. But I guess if you don't use pycrust, pyshell and wxStyledTextCtrl or you don't use gtk2, then you're alright.
I am currently using wxGTK-2.4.0 and wxPython-2.4.0.2 and have no problems with pycrust/pyshell... gtk2 is an experimental use flag and experimentally supported in a lot of programs... not too many claim stability with gtk2... for example...even within wxGTK... the odbc support doesn't work with gtk2/unicode support... If you are having further troubles, maybe an emerge -e wxPython is in order... that might help some of your problems..
I really wanted the GTK2 support, but wxPython works well only with gtk1.2 :( this solved the problem on my system : USE="-gtk2" emerge wxGTK wxPython
wx* has known problems with gtk2 enabled.