View Full Version : SDL Segmentation Error
I keep having trouble with my program. It runs fine in windowed mode but when run in full screen I get this error after it starts up:
Fatal signal: Segmentation Fault (SDL Parachute Deployed)
Executable ìFirst Person Cameraî has exited with status 245.
I tried debugging the app but it just freezes in fullscreen and I have to restart to get it out. Any ideas?
flipflop
2004.09.07, 04:55 PM
Try the following link:
http://www.libsdl.org/pipermail/sdl/2002-January/041377.html
It is an old message (Jan 2002) so you figure the fix would have been applied by now. So you might be seeing something else.
aaronsullivan
2004.09.07, 05:28 PM
The segmentation fault could be a number of things... however I remember your resolution for the window (in other code) was an odd pair of numbers sometimes. The resolution you set the screen to has to be supported! :) You can't do 1024 x 512, for instance. A more commonly supported screen resolution is 1024 x 768. The thing is... SDL does some automatic fitting in that case. Hrm...
OneSadCookie
2004.09.07, 05:43 PM
you can use SDL_NOPARACHUTE in your init flags to prevent the annoying parachute thingy. That'll give you a backtrace when you crash.
The only way I know of to GDB an app that captures the screen is remotely, via ssh.
My resolution isn't a problem as I have changed it so that the whole program is 800 x 600. The first fix isn't going to help because this is the first time a fullscreen app has crashed like this. I'll try the NOPARACHUTE thing and see what's up.
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.