SegFault Error
Hi, im' using WinXP, python2.5, pygame1.7 around 4-5 games have crashed while running with the Segfault message. Does anybody else face this problem? ill' post the names of the games which crashed a little later.(log in to comment)
Comments
I dont think it is a run_game.py skellington thing though, I think this a pygame or python error, I dont have time right now to ferret out the problems, but I'll try this weekend.
I'll also see what other ones are doing this on me...
I'll also test python 2.4, as the only time that version seg-faulted for me was when using pygame surfarrays.
The problem for me was that pygame would crash after it was given a file like object to things like pygame.image.load
I fixed it by replacing most of the data.load calls relating to images by a data.filepath call.
were you able to fix them all by changing that?
So yes, I was able to fix every game I played so far.
its a bug when someone does something like:
-
image=pygame.image.load(open(filename,'r'))
-
image=pygame.image.load(filename)
So... ppl just need to use the path to the file, instead of opening it and then sending it to pygame :)
gizmo_thunder on 2007/04/13 06:32:
Exact error message:Games which cause this error: