SDL error parachute [Archive] - C Board

PDA

View Full Version : SDL error parachute


Xterria
07-17-2002, 09:25 PM
Some of my friends have been complaining that my SDL Program doesn't work. in stderr.txt it says 'SDL Error Parachute Deployed.' I have SDL.dll in the folder in it. I even downloaded my file and it works.

does it work for you?

http://www.angelfire.com/linux/xterria/SomeGame.zip

please help!
(copy and paste the url into your browser)

cozman
07-18-2002, 01:03 AM
Xterria, your game works for me (but i have tons of SDL stuff installed) If you want I'll have a look at your source. (jturk@conceptofzero.com if you dont want to post it)

You're code has flaws in it.. like on exit I get stuck and it freezes.
Try out my sdl framework get it from:
http://www.conceptofzero.com/code/

TechWins
07-18-2002, 02:31 AM
hey that game is pretty cool. cozman is right, though, there are quite a few bugs with the game. and do you plan on adding an ending? you should, also, make the game a little bit more difficult. it's not fair how the good guy can move so much faster. and the mines shouldn't stay stationary. add more guards. basically add more 'cause it's pretty fun to play actually.

Xterria
07-18-2002, 08:17 AM
thanks for the complements, and i don't even know what the game will be about yet.

i'm still trying to figure out what's wrong...maybe it's the flags when you initalize the video

Xterria
07-18-2002, 08:36 AM
ok try it again(people who can't get it to work)
i uploaded it again

confuted
07-18-2002, 09:15 PM
I managed to get the same error in my code...I don't know where it is originating from exactly, but I narrowed it down to this:

if I use a fscanf in the code, it will generate the error. If I take out all of the fscanf's, the error isn't generated...what's up with it?

Xterria
07-19-2002, 11:03 AM
yeah my game also reads and writes to files. maybe that's the cause?

aren't there sposed to be experts here?
help!

confuted
07-19-2002, 09:03 PM
it's a little less convenient, but using fwrite and fread instead of fprintf and fscanf will fix your code...I figured that out today

Xterria
07-20-2002, 07:03 PM
i just use fopen() and getc()
still, it doesn't work on other systems

confuted
07-20-2002, 09:07 PM
hmmm...I don't know if mine works on other computers or not, but I hope it will (:

Xterria
07-21-2002, 07:49 PM
oh well i guess ill have to test it on all my other comps

why do i have to do this the hard way when theres dozens of stuck up experts here that know the answer

confuted
07-21-2002, 08:00 PM
I wish I knew the answer, because I don't want that stupid error appearing in mine again...(: It took me a couple hours to get rid of it, and it was all guesswork...if I ever figure it out, though, I'll let you know

Xterria
08-05-2002, 09:30 PM
can someone please investigate this? SDL_Error_Parachute is depoyed when a file is missing. I have no files missing on my computer! Yet, when i put it on another computer, the file is missing. perhaps it is a dll file that only some versions of windows have? can people try out the game and tell me if it works or not and the version of windows your using? many people are having this problem and i intend to find out what's wrong. thanks!

JoshG
08-05-2002, 10:06 PM
Windows 98

It runs just fine on my comp, After the level with the houses the program closed and stderr.txt says "Fatal signal: Segmentation Fault (SDL Parachute Deployed)". Other than that it ran just fine.

Xterria
08-05-2002, 10:21 PM
ok thats perfectly normal, as there is no level after JorgunTown in the version thats uploaded..thanks

someone else please?

cozman
12-31-2002, 12:26 AM
have you tried initializing SDL with no parachute

pass the SDL_INIT_NOPARACHUTE flag into SDL_Init

this will let your app crash normally.. but you'll have better luck finding the error sometimes

Eibro
12-31-2002, 11:38 AM
aren't there sposed to be experts here?
help!
why do i have to do this the hard way when theres dozens of stuck up experts here that know the answer
can someone please investigate this?
someone else please?
It seems like you want someone else to do all the debugging for you. Well, first off that's extremely hard to do without any code... and most of us don't know enough ASM to disassemble your project and debug at that level.

So what is it you expect of us? Wave a magic wand and make your program all better? How about the symptoms? It doesn't work on others computers... it seg faults, freezes and parachutes when there's a file missing.

Lets try and weed out one at a time, and to start us off-- the code.

TechWins
12-31-2002, 11:45 AM
I wouldn't waste your time with this considering that this thread is nearly 5 months old.

Hunter2
01-02-2003, 08:48 PM
no big problems, just an annoying thing where the music won't stop playing when I die or quit.