SDL Crash with SMPEG

Hey,
I recently downloaded smpeg libraries from the CVS and compiled
everything without a problem. All the demos ran well except glmovie,
which happens to be the one I’m interested in. Every time I run glmovie,
it crashes with a seg fault. I’m running Red Hat 9 (unpatched), Geforce
4 TI4200 (w/Nvidia Drivers), with the SDL shipped with RH. When it
crashes I’ve noticed that “SDL parachute” seems to appear. Doing some
small tracing through the source code, it seems that glmovie_draw (more
specifically the glClear) is causing the problem. SDL normally has no
isses with OGL, since I compile my engine once a day without any issues.
Any help on getting this working would be much appreciated.

Chris

I have the problem too, my guess is that has something to do with GL binding
(seems like any call to gl causes a segfault or something). Still
searching… :-)On Wednesday 26 May 2004 18:54, Chris Seddon wrote:

Hey,
I recently downloaded smpeg libraries from the CVS and compiled
everything without a problem. All the demos ran well except glmovie,
which happens to be the one I’m interested in. Every time I run glmovie,
it crashes with a seg fault. I’m running Red Hat 9 (unpatched), Geforce
4 TI4200 (w/Nvidia Drivers), with the SDL shipped with RH. When it
crashes I’ve noticed that “SDL parachute” seems to appear. Doing some
small tracing through the source code, it seems that glmovie_draw (more
specifically the glClear) is causing the problem. SDL normally has no
isses with OGL, since I compile my engine once a day without any issues.
Any help on getting this working would be much appreciated.

Chris


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Ok, That’s it…

GL doesn’t like to be called from SMPEG decoding thread.
if you call GL (with nVidia driver for ti4200 at least) from the callback
thread of smpeg, the gldriver seems to kill your process.
one solution (which I tested) is to put the gl drawing code & sdl gl swap
under the main thread of glmovie,

but there must be a solution to tell gl to accept things from multiple
threads, anyone (I don’t remember this one)?

William.On Wednesday 26 May 2004 22:47, William Petiot wrote:

I have the problem too, my guess is that has something to do with GL
binding (seems like any call to gl causes a segfault or something). Still
searching… :slight_smile:

On Wednesday 26 May 2004 18:54, Chris Seddon wrote:

Hey,
I recently downloaded smpeg libraries from the CVS and compiled
everything without a problem. All the demos ran well except glmovie,
which happens to be the one I’m interested in. Every time I run glmovie,
it crashes with a seg fault. I’m running Red Hat 9 (unpatched), Geforce
4 TI4200 (w/Nvidia Drivers), with the SDL shipped with RH. When it
crashes I’ve noticed that “SDL parachute” seems to appear. Doing some
small tracing through the source code, it seems that glmovie_draw (more
specifically the glClear) is causing the problem. SDL normally has no
isses with OGL, since I compile my engine once a day without any issues.
Any help on getting this working would be much appreciated.

Chris


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl