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

Re: [pygame] BUG: Segfault/failure rendering non-AA text with a background



Thanks :)


I've fixed this bug in subversion. Also added a font unittest for it. test/font_test.py

Committed revision 757.
Committed revision 758.


Cheers,

On 6/15/06, Lenard Lindstrom <len-l@xxxxxxxxx> wrote:
On 14 Jun 2006 at 18:58, Joe Wreschnig wrote:

> Hi,
>
> At some point, Pygame on Debian starting having issues rendering non-AAd
> text with background colors, for certain strings (ones containing only
> spaces, at least). It also segfaults on empty non-AA strings.
>
> >>> import pygame
> >>> pygame.init()
> open /dev/sequencer: No such file or directory
> (6, 0)
> >>> f = pygame.font.Font(None, 20)
[snip]
> >>> f.render("", False, [0, 0, 0], [255, 255, 255])
> Fatal Python error: (pygame parachute) Segmentation Fault
> Aborted
>
This also causes a segfault on Windows for pygame 1.7.1release and
Python 2.4.

Lenard Lindstrom
<len-l@xxxxxxxxx>