[pygtk] Pango and Attributes: system crash.
Alan Franzoni
alan.franzoni.xyz at gmail.com
Thu Dec 15 17:02:06 WST 2005
Hello, I'd like you to try this code:
#begin pangocrash.py
import pygtk
pygtk.require('2.0')
import gtk
import pango
a=gtk.Label(str='Test')
bold=pango.AttrList()
bold.insert(pango.AttrWeight(pango.WEIGHT_BOLD,0,-1))
a.set_attributes(bold)
k=a.get_attributes().get_iterator()
k.get_attrs()
#end pangocrash.py
It does crash python on at least 3 systems with different installed
software.
Two are mine:
1)
Win XP SP2 32 bit
ActivePython 2.4.2
GTK+ 2.8.8-rc2 Win32 (GladeWin32 devel package)
PyGTK 2.8.2-1 win32 by Cedric Gustin
1b)
Win XP SP2 32 bit
ActivePython 2.4.2
GTK+ 2.6.10-rc1 Win32 - Gladewin32 devel package
PyGTK 2.6.3-1 win32 by Cedric Gustin
On Windows, I get an Access Violation.
2)
Ubuntu Linux 5.10 on a Pentium III
python 2.4.2-1
pygtk 2.8.1.0-ubuntu2
gtk 2.8.6.0-ubuntu2.1
3)
(Reported from an italian NG)
Ubuntu Dapper
Python 2.4.2
GTK+ 2.8.9
PyGTK 2.8.2-2
It simply segfaults on linux systems.
Any feedback will be appreciated.
--
Alan Franzoni <alan.franzoni.xyz at gmail.com>
-
Togli .xyz dalla mia email per contattarmi.
To contact me, remove .xyz from my email address.
-
GPG Key Fingerprint:
5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E
More information about the pygtk
mailing list