Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pygame error: display surface quit: Why?

Tags:

python

pygame

Can anyone tell me why my app quits with:

pygame error: display Surface quit.

like image 398
Devo Avatar asked Jan 04 '10 05:01

Devo


Video Answer


1 Answers

I had similar problem and discovered that Surface objects don't like to be deepcopied. When I used copy.deepcopy() on such object and then accessed the copy, I got that strange error message (without calling pygame.quit()). Maybe you experience similar behavior?

like image 90
Maciej Miąsik Avatar answered Sep 23 '22 07:09

Maciej Miąsik