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

Re: [pygame] This program breaks on my Linux



On mer, 2014-07-16 at 14:36 -0700, B W wrote:
> The issue seems to be in the shutdown/cleanup code of pygame.

The program appears to only use the pygame.display module, so if it is
currently crashing in pygame.exit(), then it may be an idea to try
initialising and exiting individual modules, to see if the problem is in
a single module's shutdown.

So, replace pygame.init() with pygame.display.init(), and pygame.quit()
with pygame.display.quit(). If the crash disappears, then start adding
additional module init's and quit's and see if you can narrow the crash
into a single module's quit() function. Other modules include
pygame.mixer and pygame.scrap.

Attachment: signature.asc
Description: This is a digitally signed message part