Forum

> > CS2D > General > Exception_Stack_Overflow
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Exception_Stack_Overflow

46 replies
Page
To the start Previous 1 2 3 Next To the start

old Re: Exception_Stack_Overflow

Apache uwu
User Off Offline

Quote
ya that's kinda like heap space, unlikely tho - were you running any luas? I used to get c stack errors when I tried to manipulate table lengths over 1 million...

old Re: Exception_Stack_Overflow

EngiN33R
Moderator Off Offline

Quote
If he were trying to run an endless loop he'd get a stack overflow in console as a Lua error. He must have done something extraordinary to get a C stack error.

old Re: Exception_Stack_Overflow

Mark Crimson
User Off Offline

Quote
user EngiN33R has written
If he were trying to run an endless loop he'd get a stack overflow in console as a Lua error. He must have done something extraordinary to get a C stack error.

extraordinary?
I only create my new map

old Re: Exception_Stack_Overflow

Mark Crimson
User Off Offline

Quote
Guys this is very weird... i installed cs2d again and it show me error again?
What the hell with it?
Maybe i shall update opengl or directix?
please help
edited 2×, last 05.01.12 10:23:52 am

old Re: Exception_Stack_Overflow

DC
Admin Off Offline

Quote
it's always a good idea to update all your stuff but this error should not be caused by missing updates.

I don't know why you get this error.

old Re: Exception_Stack_Overflow

DannyDeth
User Off Offline

Quote
If it is EXCEPTION_STACK_OVERFLOW it is an exception thrown by BMax when a stack is... well, obviously, overflowing. This is not a Lua error, guys.

old Re: Exception_Stack_Overflow

Apache uwu
User Off Offline

Quote
user DannyDeth has written
If it is EXCEPTION_STACK_OVERFLOW it is an exception thrown by BMax when a stack is... well, obviously, overflowing. This is not a Lua error, guys.


hmm odd because I have gotten one from lua

old Re: Exception_Stack_Overflow

DC
Admin Off Offline

Quote
I would really need to know when it happens. he said when he "started cs2d" - is that about starting the game itself (so starting the exe file) or when joining/creating a new game?

I don't have a clue what's wrong when it happens directly after starting the exe file.

It might be Lua or a strange map if it happens later.

old Re: Exception_Stack_Overflow

DannyDeth
User Off Offline

Quote
@user Apache uwu:
Dude, look, I will explain to you exactly the difference between your error and this error.

In a programming language, in order to pass values from one function to another, it has to keep a stack. A stack overflow is when you put too much data onto the stack, for instance if I have a recursive function such as this:
1
2
3
int spamzor(){
	return spamzor();
}
It will continue to fill the stack until the stack is too full, and a stack overflow happens.

Now, in Lua, this can be caused by passing large tables, as you said. However, a stack overflow in Lua will NOT cause the screen to go black and crash CS2D because of the amazing guys who made it. Next, the error wouldn't be EXCEPTION_STACK_OVERFLOW, because these little windows pop up when BMax encounters a situation it cannot fix. The reason the screen goes black is because of BMax's drawing functions needing the data passed to them on the stack, when the stack has been FUBAR'd.

Hopefully that will clear the problem in your mind a bit. ( BTW! I don't mean this as an insult, don't take it in the wrong context! )
edited 2×, last 05.01.12 01:26:49 pm

old Re: Exception_Stack_Overflow

DC
Admin Off Offline

Quote
it's actually possible with Lua because.. well you know.. Lua is connected with CS2D. you can crash the game with bad Lua scripts and maybe also cause bmax stack overflows somehow.

this is NOT the topic of this thread though. there's someone having a problem. please focus on solving the problem.
To the start Previous 1 2 3 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview