[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Bogus segfault in Font.render



Hello pygame-users,

I've been coding a pygame-based curses-like terminal and ran into a
strange segfault. I've pinpointed it to be in Font.render getting a
str '', but actually not being that, or so I think. The crash is
triggered by passing the ASCII part of KEYDOWN event to Font.render.
The code that does just that is at
http://www.vlo.ids.gda.pl/users/imbaczek/python/pgterm.tar.bz2 (run
__init__.py) -- just press F1 (or anything else, like Insert, Delete
or the arrows) to trigger the crash.

I'm running Python 2.3b1 with Mingw32 (compiled on my own) Pygame
1.5.6 and Psyco where possible (1.0 really gives a boost, BTW :))

-- 
{ Marek Baczyński :: UIN 57114871 :: GG 161671 :: JID imbaczek@jabber.gda.pl  }
{ http://www.vlo.ids.gda.pl/ | imbaczek at poczta fm | http://www.promode.org }
.. .. .. .. ... ... ...... evolve or face extinction ...... ... ... .. .. .. ..