Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14064 - wxpython seems to have a problem
Summary: wxpython seems to have a problem
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-16 16:50 UTC by Philippe Lafoucrière
Modified: 2003-02-15 14:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Lafoucrière 2003-01-16 16:50:55 UTC
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
-----------------------------------------------------------------------
Comment 1 SpanKY gentoo-dev 2003-01-16 17:36:22 UTC
what if you recompile the packages ? 
Comment 2 Philippe Lafoucrière 2003-01-16 18:24:54 UTC
I have recompiled pyGTK wxpython, boa-constructor, same result...
Comment 3 Nick Hadaway 2003-01-16 21:14:56 UTC
do you have gtk2 in your use variables?
Comment 4 Philippe Lafoucrière 2003-01-17 01:52:21 UTC
Yes, I have gtk2 in my use variable
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2003-01-30 22:57:19 UTC
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.
Comment 6 Alastair Tse (RETIRED) gentoo-dev 2003-01-31 21:24:35 UTC
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.
Comment 7 Nick Hadaway 2003-02-04 05:07:05 UTC
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..
Comment 8 Philippe Lafoucrière 2003-02-04 05:54:36 UTC
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
Comment 9 Nick Hadaway 2003-02-15 14:39:50 UTC
wx* has known problems with gtk2 enabled.