Confusing sdl graphics behaviour

Hello All,

I have a project built against SDL 1.3 (trunk as of about a week ago).
My sources have not changed significantly for months.

My program uses a little opengl (ES) and precious little else, it
builds and runs on linux and builds on OSX to run on iPhoneOS.

I’ve been happily using SDL for ages and ages and I can’t quite track
down where my problem started happening.

If I run my program from a terminal then my SDL window appears but I
see nothing rendered inside. Yet if I run it inside my IDE
(monodevelop) the program runs just as it always did before and
everything appears in the window perfectly.

Running under gdb shows all my images load correctly with and without the IDE.

Any suggestions? I’m using ubuntu maverick meerkat if that has any bearing.

Thanks

Ian

what revision were you using before?

are you checking for errors from all functions; including SDL_RenderCopy?------------------------
EM3 Nathaniel Fries, U.S. Navy

http://natefries.net/

I don’t explicitly call SDL_RenderCopy anywhere, I just call
SDL_GL_SwapBuffers().

IanOn 10 January 2011 00:48, Nathaniel J Fries wrote:

what revision were you using before?

are you checking for errors from all functions; including SDL_RenderCopy?


EM3 Nathaniel Fries, U.S. Navy

http://natefries.net/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Previous version was SDL-1.3.0-5483. Building with this version I
still get the problem so suspect the new ubuntu has broken somthing
wierd.

Incidently, the opengl test programs with SDL work fine.On 10 January 2011 06:52, Ian Norton <@Ian_Norton> wrote:

I don’t explicitly call SDL_RenderCopy anywhere, I just call
SDL_GL_SwapBuffers().

Ian

On 10 January 2011 00:48, Nathaniel J Fries wrote:

what revision were you using before?

are you checking for errors from all functions; including SDL_RenderCopy?


EM3 Nathaniel Fries, U.S. Navy

http://natefries.net/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

SDL_Init always returns zero, the only difference I can possibly see
between (the exact same binary) running inside the IDE or outside
would be environment variables,

IanOn 10 January 2011 06:55, Ian Norton <@Ian_Norton> wrote:

Previous version was SDL-1.3.0-5483. ?Building with this version I
still get the problem so suspect the new ubuntu has broken somthing
wierd.

Incidently, the opengl test programs with SDL work fine.

On 10 January 2011 06:52, Ian Norton <@Ian_Norton> wrote:

I don’t explicitly call SDL_RenderCopy anywhere, I just call
SDL_GL_SwapBuffers().

Ian

On 10 January 2011 00:48, Nathaniel J Fries wrote:

what revision were you using before?

are you checking for errors from all functions; including SDL_RenderCopy?


EM3 Nathaniel Fries, U.S. Navy

http://natefries.net/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

environment turns out to be identical inside MD and outside. I’m now
officially lost.On 10 January 2011 07:24, Ian Norton <@Ian_Norton> wrote:

SDL_Init always returns zero, the only difference I can possibly see
between (the exact same binary) running inside the IDE or outside
would be environment variables,

Ian

On 10 January 2011 06:55, Ian Norton <@Ian_Norton> wrote:

Previous version was SDL-1.3.0-5483. ?Building with this version I
still get the problem so suspect the new ubuntu has broken somthing
wierd.

Incidently, the opengl test programs with SDL work fine.

On 10 January 2011 06:52, Ian Norton <@Ian_Norton> wrote:

I don’t explicitly call SDL_RenderCopy anywhere, I just call
SDL_GL_SwapBuffers().

Ian

On 10 January 2011 00:48, Nathaniel J Fries wrote:

what revision were you using before?

are you checking for errors from all functions; including SDL_RenderCopy?


EM3 Nathaniel Fries, U.S. Navy

http://natefries.net/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

I’m now starting to suspect glibc, I have another program that does
not use SDL (uses ncurses) the program runs fine on another system I
have (debian)On 10 January 2011 07:40, Ian Norton <@Ian_Norton> wrote:

environment turns out to be identical inside MD and outside. I’m now
officially lost.

On 10 January 2011 07:24, Ian Norton <@Ian_Norton> wrote:

SDL_Init always returns zero, the only difference I can possibly see
between (the exact same binary) running inside the IDE or outside
would be environment variables,

Ian

On 10 January 2011 06:55, Ian Norton <@Ian_Norton> wrote:

Previous version was SDL-1.3.0-5483. ?Building with this version I
still get the problem so suspect the new ubuntu has broken somthing
wierd.

Incidently, the opengl test programs with SDL work fine.

On 10 January 2011 06:52, Ian Norton <@Ian_Norton> wrote:

I don’t explicitly call SDL_RenderCopy anywhere, I just call
SDL_GL_SwapBuffers().

Ian

On 10 January 2011 00:48, Nathaniel J Fries wrote:

what revision were you using before?

are you checking for errors from all functions; including SDL_RenderCopy?


EM3 Nathaniel Fries, U.S. Navy

http://natefries.net/


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Aha, the binary built on the debian system runs and renders correctly
on ubuntu but mouse events are not working.

I will update things to the latest SDL and rebuild

Regards

IanOn 10 January 2011 07:49, Ian Norton <@Ian_Norton> wrote:

I’m now starting to suspect glibc, I have another program that does
not use SDL (uses ncurses) the program runs fine on another system I
have (debian)

Ian Norton wrote:

Aha, the binary built on the debian system runs and renders correctly
on ubuntu but mouse events are not working.

I will update things to the latest SDL and rebuild

Regards

Ian

The failure of mouse events on Ubuntu when they worked on Debian is concerning…

Aside for that, it sounds like a flaw in either your Ubuntu installation or build tools. Do you have development files for all supported Xlib extensions? I remember this causing an for me (./configure did not build the video system, in my case)------------------------
EM3 Nathaniel Fries, U.S. Navy

http://natefries.net/

Ian,

Was your accusation against glibc correct?