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

Re: [pygame] OverflowError on amd64



On Sun, 2005-08-21 at 12:26 +0000, stas zytkiewicz wrote:
> On a amd64 system I encountered this error when running an application
> that runs fine on x86 systems.
> 
> Traceback (most recent call last):
>   File "/usr/share/games/childsplay/childsplay.py", line 66, in ?
>   import splash
>   File "/usr/share/games/childsplay/splash.py", line 27, in ?
>   scr = pygame.display.set_mode((800,600),SWSURFACE|FULLSCREEN)
> OverflowError: signed integer is greater than maximum

This was a bug that I tought got fixed awhile ago. The problem comes
from the fact that the SDL_FULLSCREEN flag uses the high 32bit int. But
python only uses signed integers.

On 64bit machines the number is being mistreated somewhere. I'm pretty
sure the argument parsing for set_mode() is explicitly asking for a
signed 32bit value.

Anyways, Debian has had a patch for this for several releases. I was
pretty sure this got into Pygame itself, but it appears not.