Forum

> > CS2D > General > CS2D dedicated always crash
Forums overviewCS2D overviewGeneral overviewLog in to reply

English CS2D dedicated always crash

14 replies
To the start Previous 1 Next To the start

old CS2D dedicated always crash

RoDioN1322
BANNED Off Offline

Quote
Hello.
When I run the server all okay but after 3 hours, server crash and write error in log :
[03:20:24] LUA ERROR: stack overflow
[03:20:24] LUA ERROR: stack overflow
[03:20:24] LUA ERROR: stack overflow
[03:20:25] "  (1x)
[03:20:25] LUA ERROR: stack overflow
[03:20:25] LUA ERROR: rpc_v2/supply.lua:72: stack overflow
[03:20:26] "  (1x)
[03:20:26] LUA ERROR: rpc_v2/hook.lua:0: stack overflow


P.S I use dedicated for linux

old Re: CS2D dedicated always crash

GeoB99
Moderator Off Offline

Quote
If I remember correctly, such errors like "stack overflow" is caused by infinite loop in a script. Either calling a function for a hook or smth like that in a endless way, the game or the server became unstable leading to this error. I'm not sure if my reply is entirely correct but I think this error is caused by that.

So, can you show us the code of that rpc_v2 thingy so we can may help somehow?

Edit: Seems there's someone too with that case, then I am not sure if is caused by the script or the current update...
edited 1×, last 23.06.15 01:14:05 pm

old Re: CS2D dedicated always crash

Louie
User Off Offline

Quote
Yea me too I saw those kind of errors in the log files many many times, idk what it means tho
1
2
3
4
5
6
7
8
9
10
11
12
[05:29:38] "  (1x)
[05:29:41] Front || ~AntiNoobZzZz killed Player 3 with Machete
[05:29:44] FutureVOTech died
[05:29:48] "  (1x)
[05:29:52] "  (1x)
[05:29:55] "  (1x)
[05:29:56] Front || ~AntiNoobZzZz killed Player 6 with Machete
[05:29:56] ERROR: Player 6 tries to build without having a wrench!
[05:29:59] FutureVOTech died
[05:29:59] Player 2 died
[05:29:59] Flag captured by Player!
[05:30:01] Player: gg wp
Even this:
1
2
3
4
5
[05:30:18] LUA ERROR: stack overflow
[05:30:18] LUA ERROR: sys/lua/Admin_Scripts/hc/core/main.lua:244: stack overflow
[05:30:19] LUA ERROR: sys/lua/Admin_Scripts/hc/modules/chat.lua:110: stack overflow
[05:30:19] LUA ERROR: sys/lua/Admin_Scripts/hc/core/user.lua:515: stack overflow
[05:30:19] LUA ERROR: sys/lua/Admin_Scripts/hc/modules/chat.lua:110: stack overflow

old Re: CS2D dedicated always crash

Starkkz
Moderator Off Offline

Quote
If you could show me the Lua script privately, I'd help you to solve that out. It isn't a bug related to the dedicated server, it's a bug related to your code.

Edit: I don't think it's a bug from the update, the lines you gave from chat.lua don't look like from the original HC Admin Script. Have you edited them?
sys/lua/hc/core/user.lua has 371 lines, there couldn't be a error on a line 515.

old Re: CS2D dedicated always crash

_oops
User Off Offline

Quote
Same thing happened to me, I'm also hosting server with scripts.
It didn't happen on previous version.

Error and script >


Those errors were not occurred on previous version.

old Re: CS2D dedicated always crash

Starkkz
Moderator Off Offline

Quote
@To anyone with this problem: We're evaluating this case, LuaJIT 2.0.3 could probably be a more stable version. So we'll see if that works better than LuaJIT 2.0.4, also we're going to get a better error tracer so it becomes easier to find those errors.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview