[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Font-Related Segfault
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Font-Related Segfault
- From: Bryce Schroeder <bryce.schroeder@xxxxxxxxx>
- Date: Mon, 23 Nov 2009 12:38:42 -0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 23 Nov 2009 15:38:45 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=vlzcDLYr6wp2NzHabeZoBrTOV4pG/kUSbjtovOD2u1w=; b=jjMoVqI+sH056hhYsPrfg6y/LB3+nywVbii09CowHdLSFy1sQAwA6r7+eJ5lqaRAqa nR+qhIPzhfC11knKiGFD5HSArZOS7iv3odWiLoe2CZ0E/ci//eEuBWrS8dNUEVBaeTW7 Or6JBYb31ITSEx0LSsHAJjAfLkYVp/wcl0/V8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=wSj+qPZJDWV6gFw+Xqn7/K9gL05xX16pTbkx2Lyd8C43I+ytWBqvWm+eiVagiBbWdZ ktkUyhAomv/XZErDgmISmbFHMNDnB0WMoAOGcnL2FZ8rmo9TEUAV8YqE+VQObmgOv5Hz t/D58z5QQc3xH4Kpf4ve4plEfB+bKwJmW579M=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
(My apologies if this is a double-post. I didn't get a copy of the
message or see it in the archive, so I'm trying again.)
I have a pygame program that worked in the past on both Linux and
Windows, but now results in a segfault, at least on Linux. (I can't
test it on Windows.)
The segfault occurs in this code:
class Font(Resource):
....
def pygame_font(self,size):
return pygame.font.Font(StringIO.StringIO(self.parts['font']),
size) # Segfaults here
self.parts['font'] is a string containing a truetype font loaded from
a file. I have checked that the string contains the file like it is
supposed too. Any suggestions?