The same has been happening to me since an update of Ubuntu and I think it's a 
problem with pulseaudio.

Since this started, very occasionally I get errors involving asserts in 
pulseaudio's main loop, and I've googled up a couple of posts about those 
errors, which suggest that pygame is doing something unorthodox with the 
threading that throws it off.

I haven't tried the solutions proposed for previous problems with pygame and 
pulseaudio yet.

Hasvers

----- Mail original -----
De: "B W" <[email protected]>
À: "N:" <[email protected]>
Envoyé: Mercredi 16 Juillet 2014 18:10:41
Objet: Re: [pygame] This program breaks on my Linux



Argh! pygame.mixer.quit() is hanging. 

('keydown', 'escape') 
Exit progress: begin 
Exit progress: pygame.display.get_init() 
Exit progress: pygame.display.get_surface() 
Exit progress: screen.unlock() 
Exit progress: pygame.display.set_mode((16, 64)) 
Exit progress: pygame.display.flip() 
Exit progress: pygame.display.quit() 
Exit progress: pygame.mixer.quit() 

Gumm 




On Wed, Jul 16, 2014 at 2:49 PM, Sam Bull < [email protected] > wrote: 



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. 

Reply via email to