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

[pygame] Surface<dead display> crash in pygame



Hi,

My program seems to randomly crash 5-10 seconds into the game. The
main screen surface seems to be OK at Surface<320x240x32 SW> until
just before it crashes when it becomes Surface<Dead Display>. I can't
think of what might be happening to corrupt the main surface (if that
is what is happening), as all I do is blit to it.

The actual error is

Traceback (most recent call last):
 File "rts.py", line 1260, in ?
   main()
 File "rts.py", line 1028, in main
   sprites.clear(screen, background)
 File "/usr/lib/python2.4/site-packages/pygame/sprite.py", line 336, in clear
   if r is not 0: surface_blit(bgd, r, r)
pygame.error: display Surface quit

Has anyone encountered this problem or similar before?

Luke