pango bug?

Hello,

I have a user who is getting an error when they add a new page to a
notebook in my application. They are using wxPython 2.4.07 and I
beleive GTK2. I don't get this error and I'm using plain GTK. The
notebook page has a panel with a wxStyledTextControl on it.

Is this a known problem? I saw a thread about pango and fonts, but
it was about a year ago. Is wxPython with GTK2 nearly as stable
as the old GTK version?

Thanks. Here's the error:

(abeni.py:3527): CRITICAL **: file pango-layout.c: line 2005 (pango_layout_get_extents): assertion `layout != NULL' failed

(abeni.py:3527): GLib-GObject-CRITICAL **: file gobject.c: line 1337 (g_object_unref): assertion `G_IS_OBJECT (object)' failed

** (abeni.py:3527): CRITICAL **: file pango-layout.c: line 266 (pango_layout_new): assertion `context != NULL' failed

** (abeni.py:3527): CRITICAL **: file pango-layout.c: line 543 (pango_layout_set_font_description): assertion `layout != NULL' failed

** (abeni.py:3527): CRITICAL **: file pango-layout.c: line 728 (pango_layout_set_text): assertion `layout != NULL' failed

** (abeni.py:3527): CRITICAL **: file pango-layout.c: line 2005 (pango_layout_get_extents): assertion `layout != NULL' failed

(abeni.py:3527): GLib-GObject-CRITICAL **: file gobject.c: line 1337 (g_object_unref): assertion `G_IS_OBJECT (object)' failed

** (abeni.py:3527): CRITICAL **: file pango-layout.c: line 266 (pango_layout_new): assertion `context != NULL' failed

** (abeni.py:3527): CRITICAL **: file pango-layout.c: line 543 (pango_layout_set_font_description): assertion `layout != NULL' failed

** (abeni.py:3527): CRITICAL **: file pango-layout.c: line 728 (pango_layout_set_text): assertion `layout != NULL' failed

** (abeni.py:3527): CRITICAL **: file pango-layout.c: line 2005 (pango_layout_get_extents): assertion `layout != NULL' failed

(abeni.py:3527): GLib-GObject-CRITICAL **: file gobject.c: line 1337 (g_object_unref): assertion `G_IS_OBJECT (object)' failed

···

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail

Just Rob wrote:

Hello,

I have a user who is getting an error when they add a new page to a
notebook in my application. They are using wxPython 2.4.07 and I
beleive GTK2. I don't get this error and I'm using plain GTK. The
notebook page has a panel with a wxStyledTextControl on it.

Is this a known problem?

Yes.

I saw a thread about pango and fonts, but
it was about a year ago. Is wxPython with GTK2 nearly as stable
as the old GTK version?

Mostly. There is still an unexplained crash dealing with fonts on some machines but not others, and wxSTC needs some updating as you've seen. Until that's worked out you'll want to stick with GTK 1.2 if you need wxSTC.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!