Attached is a small sample program that reliably shows this output and error message:
Should show 1 to indicate hardware surface: 1 Fatal Python error: (pygame parachute) Segmentation Fault This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I'm running pygame 1.7.1 with python 2.4.2 on Windows XP. Is it possible for this to be related to video drivers? --------- John Krukoff [EMAIL PROTECTED] > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Rikard Bosnjakovic > Sent: Saturday, May 12, 2007 3:04 AM > To: pygame-users@seul.org > Subject: Re: [pygame] BUG: Segfault when rotating a HWSURFACE > > On 5/10/07, John Krukoff <[EMAIL PROTECTED]> wrote: > > > Is this a known problem? > > Unheard of. > > Please provide shortest possible sample code to reproduce the error. > > > -- > - Rikard - http://bos.hack.org/cv/
import sys, pygame pygame.init( ) screen = pygame.display.set_mode( ( 640, 480 ), pygame.HWSURFACE | pygame.DOUBLEBUF | pygame.FULLSCREEN ) hwSurface = pygame.surface.Surface( ( 64, 64 ), pygame.HWSURFACE ) hwSurface.fill( ( 0, 0, 0 ) ) print 'Should show 1 to indicate hardware surface:', hwSurface.get_flags( ) # Crash occurs on next line. rotated = pygame.transform.rotate( hwSurface, 1 ) print 'Will never be displayed.' sys.exit( 0 )