SDL_ListModes segmentation fault on 64bit Linux

Hello.

I’ve been working with SDL in Linux for some time,
but on 32bit systems.

Recently I’ve moved to a 64bit Ubuntu
and the application crashes (SIGSEGV)
when it tries to query for video modes:

/*
SDL_Rect **available_modes;
available_modes = SDL_ListModes(NULL, SDL_FULLSCREEN | SDL_HWSURFACE );
*/

Is this a problem with the 64bit SDL libs?

Thanks in advance.

Freddy <farraday gmail.com> writes:

Hello.

I’ve been working with SDL in Linux for some time,
but on 32bit systems.

Recently I’ve moved to a 64bit Ubuntu
and the application crashes (SIGSEGV)
when it tries to query for video modes:

/*
SDL_Rect **available_modes;
available_modes = SDL_ListModes(NULL, SDL_FULLSCREEN | SDL_HWSURFACE );
*/

Is this a problem with the 64bit SDL libs?

Thanks in advance.

Hmmm… it seems the problem is that the
X11 system simply does not support 16bit
depth…

If I pass a format with BitsPerPixel=32
to SDL_ListModes works ok…

Does it have anything to do with this being
a 64bit platform, or sdl/the driver does not
support 16bit color depth ?

Thanks anyways.

Hello !

SDL_Rect **available_modes;
available_modes = SDL_ListModes(NULL, SDL_FULLSCREEN | SDL_HWSURFACE );

Does it help on 64bit Linux to remove the SDL_HWSURFACE flag ?

CU

Torsten Giebl <wizard syntheticsw.com> writes:

Hello !

SDL_Rect **available_modes;
available_modes = SDL_ListModes(NULL, SDL_FULLSCREEN | SDL_HWSURFACE );

Does it help on 64bit Linux to remove the SDL_HWSURFACE flag ?

CU

** Sorry for the double post. Somebody, please remove the duplicate posted
message. **

Hello and thanks for answering.

No, it doesn’t help…
It seems that, on this particular configuration,
X11 is locked at the color-depth of the desktop.

No surfaces are available (HW, OGL, DB etc) at
any color-depth except that of the desktop…

Seems to be a “local” problem. I’m running on
Ubuntu 8.04 x64 with an integrated graphics
AMD R3200 (780G chipset).

I’ll install both Ubuntu x64 and Gentoo x64 on
another machine here with different graphics
hardware.

I’m also mowing through X11 to see if I find
anything.

** Sorry for the double post. Somebody, please remove the duplicate posted
message. **