Weird error, "stack overflow" ??? -1 reply

Please wait...

insanelazarez

Here take this basic equipment

50 XP

27th April 2008

0 Uploads

121 Posts

0 Threads

#1 10 years ago

Hello guys

This is the question. I got this error in my clipbord. The game wont start, and my log is from 3 DAYS Ago. This is weird. I removed s.t.a.l.k.e.r and i tried to put it back, and the result is the same. Btw, i'll paste here my "fsgame.ltx", is there something wrong with it?

Thanks. Expression : fatal error Function : WinMain File : E:\stalker\patch_1_0004\xr_3da\x_ray.cpp Line : 736 Description : Arguments : stack overflow

What the hell is "stack overflow"?

$app_data_root$=true|false|C:\|Documents and Settings\All Users\Documentos\STALKER-SHOC\ $game_data$ = false| true| $fs_root$| gamedata\ $game_ai$ = true| false| $game_data$| ai\ $game_spawn$ = true| false| $game_data$| spawns\ $game_anims$ = true| true| $game_data$| anims\ $game_levels$ = true| false| $game_data$| levels\ $game_meshes$ = true| true| $game_data$| meshes\ $game_dm$ = true| true| $game_data$| meshes\ $game_shaders$ = true| true| $game_data$| shaders\ $game_sounds$ = true| true| $game_data$| sounds\ $game_textures$ = true| true| $game_data$| textures\ $game_scripts$ = true| false| $game_data$| scripts\ $game_config$ = true| false| $game_data$| config\ $level$ = false| false| $game_levels$ $game_saves$ = true| false| $app_data_root$| savedgames\ $logs$ = true| false| $app_data_root$| logs\ $screenshots$ = true| false| $app_data_root$| screenshots\ $downloads$ = false| false| $app_data_root$| downloads\ $mod_dir$ = false | false | $fs_root$ | mods\

Thanks again guys

Insanelazarez




StarkeRealm

The Internet ends at GF

50 XP

12th July 2005

0 Uploads

103 Posts

0 Threads

#2 10 years ago

It's been a long time since I've worked with this, basically a stack overflow is where there's more data in a given... whatever, then the program can handle. What how the program responds to a stack overflow varies based on the program itself and what kind of stack overflows.

I seriously haven't thought about this in eight years though, so I know I botched something.

I would assume that it was basically an out of memory error, not necessarily out of RAM, but out of memory.




NatVac

of the ZRP

50 XP

10th August 2008

0 Uploads

124 Posts

0 Threads

#3 10 years ago

Yes, as [COLOR=Sienna]StarkeRealm[/COLOR] indicates, a stack overflow means that the game used up the available (limited) stack space. This is a section of memory reserved for temporary storage. It is often used to store function call return pointers (so the function can return to the calling routine when it finishes) as well as some local values like function parameters.

The usual cause of "stack overflow" is a function that somehow calls itself over and over, never stopping. For example: RefreshWindow() calls DrawBox(), which calls DrawDropShadow(), which mistakenly calls RefreshWindow().

Each time a function call is made, data is "pushed" onto the top of the stack. When the called function returns, it is "popped" off the top of the stack. So the stack will grow and shrink in size depending on how many "nested" function calls there are.

Normally, functions that call themselves (known as recursive functions) figure out when to stop, like the factorial function:

Factorial(x) { if x < 2 then return 1 end return x * Factorial(x-1) }This function calls itself from within itself -- but it knows when to quit.

For Factorial(5), you will see 5 * Factorial(4), which will return 4 * Factorial(3), which in turn is 3 * Factorial(2), and that is 2 * Factorial(1) -- but here it stops, just returning 1.

The effective result is 5 * 4 * 3 * 2 * 1. ("*" means "multiplied by" or "times")

So the game is apparently stuck in a loop which calls itself without ending. One cause is a bad fsgame.ltx, but the one posted looks okay. Other causes: a bad resource configuration file, a corrupt savegame (not the case if you haven't yet loaded a game when it crashes), or a corrupt installation. I would first suspect a changed file in any gamedata subdirectory, especially a script file.

What do you mean when you say, "I removed s.t.a.l.k.e.r and i tried to put it back", [COLOR=Sienna]insanelazarez[/COLOR]? Sometimes the fix is to uninstall, delete (or rename) the remaining directories in Program Files and in Shared Documents, then reninstall and patch.

You cannot use an XP fsgame.ltx in Vista, and vice versa.