[Bug 275492] Re: monsterz.py crashed with error in blit()
Arnaud Jeansen
arnaud.jeansen at gmail.com
Fri Dec 26 00:06:00 UTC 2008
I spent some time on it tonight (first time at reading python :().
It seems that at two points in the codebase, a pygame surface cannot be
blit because the surface is still locked (there is an unlock() before
the blit, but it seems to fail). Those two points are the copyright
surface (this is the one that makes the game fail early), and the
timeframe surface.
After some mindless trial and error, the problem appears to be related
to the use of "enumerate" in for loops (it seems to keep some reference
on the "alpha" 2D array which itself is linked to the surface). Because
of the remaining link, the unlock() fails. I have a local change that
replaces "enumerate" by "range" in some for loops, and it seems to
correct the problem (I could start and play several games with pygame
1.8.1).
I will try to come up with a debdiff and maybe even a version in a PPA
(Christmas vacation may make this more difficult).
--
monsterz.py crashed with error in blit()
https://bugs.launchpad.net/bugs/275492
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list