[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Surface<dead display> crash in pygame
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Surface<dead display> crash in pygame
- From: "Luke Miller" <dodgyville@xxxxxxxxx>
- Date: Sat, 23 Sep 2006 23:37:21 +1000
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Sat, 23 Sep 2006 09:37:31 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=r2Dg8VeLYUeDbLJXLqjUBMT720Sjmax3AceuLfwPgpjIGbpmVfm3Bth1tdWzoUkrx3cH0ypj8cww49QRsG62hiuI8WWzNnxk40CA6r87fmZBFb1avDCN7Zeb5kfZR5WCGUAPBkGTzT799t54MQK4/KIa4sK5CweE6rvEGtlHTU4=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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