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

Re: [pygame] Pygame Parachute



Mark 'Kamikaze' Hughes wrote:
  The code in getTerrainChar() isn't doing anything at all to Pygame.  I
can't get a reliable repeat of this--it happens at different places, so
far not in my graphics code itself.  It's always taken 5 or 10 minutes
into play.  There's only one thread, though there is a Clock.

  Any ideas?
this is almost always a case of some sort of reference count bug. this can only happen in the "C" python modules. it probably is a pygame bug, unless you suspect it is some other C module you are using? what version of pygame are you on? something in your game must be triggering a bug. if it is a pygame thing it's nothing that i've noticed yet.

the "pygame parachute" is an extension of an SDL feature. SDL has a "SDL parachute" which safely makes sure the graphics and sound are shutdown when the game crashes. pygame does this too, but also tries to cleanly abort python, and even print a stack trace from the crash (which regular python cannot do)