[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] "Text has zero width" Exception in font_render
- To: pygame-users@xxxxxxxx
- Subject: [pygame] "Text has zero width" Exception in font_render
- From: Mark Reed <markreed99@xxxxxxxxx>
- Date: Wed, 23 Dec 2009 08:20:08 +0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 22 Dec 2009 19:20:17 -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=g0kAL3t6rnxTzt66axr6+99g9taJpci27TDjOkvAF1o=; b=ZvEUyJn14xuKxyRRgi+C90mmUCBCi57LhkPlVIyq0iwNWrw9omSo2A/tBROYXQh5Ad GkWvRlpFIQwssmoqNZqw6updpPF/3D5tjipV9oJWEZQOJsgSqsp09HRq6b9Z+FYv8xMk Db4yi12ObCqlurelFl7P6FRGwVVJ1EGjo4aWo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=OCCAKGcWa3DsxUNmmC+R+wgF0QBbi1ViSIbBQlpXpun/ntUwCMfSVjkPhoPtO0ZvNl FLJ7WbzrDcxMcicynLjrQ6dhRbo2C80XDqgkZM48m+pEKVGrfs/EDi1/IK6unwLktZ/i KsHduuHaS3WfowUZJ/J1KTHVFpdYRCgFLhvYA=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
I'm running pygame in a thread, killing the thread and reloading it.
Second time in we throw an exception with font.render. I have no
experience with C, but I would like to debug the problem which appears
to be in font_render since both times the python pygame.font.render
arguments are the same. I'm also now using the 1.9.1 win release, 1.8
had the same exact behavior.
If I compile the pygame source on windows using the cygwin environment
I should be able to debug it and step through the font_render C code
right? Or at least put printfs inside the font.c code?
If I use different pygame code that uses font.render in the thread I
don't see this problem. Is it possible bad python code could be
corrupting pointers in the pygame C code?
Should I not be running pygame in a thread then killing it and
restarting it multiple times in the same process? I assume if this was
bad I'd see more random problems than this.
Mark