Server Crashing

Post Reply
soulsin
Posts: 102
Joined: Sun Mar 17, 2013 9:06 am

Server Crashing

Post by soulsin » Thu Sep 25, 2014 11:44 am

In our lua_baseentity.cpp and lua_statuseffect.cpp. Got it running in debug atm trying to reslove the issues. We are finding the breakpoints, have match the break points with other code and all matching. So what can do to try fix this problem. Thanks for help in advance on getting this resloved.
[GM] Soulsin

nasomi
Posts: 141
Joined: Wed Feb 13, 2013 8:51 am

Re: Server Crashing

Post by nasomi » Thu Sep 25, 2014 12:20 pm

When it crashes hit debug. Then select debug menu and save the dump. Copy the server exe and and pdb and zip them together with the debug dump. Then upload it somewhere and link it here.

soulsin
Posts: 102
Joined: Sun Mar 17, 2013 9:06 am

Re: Server Crashing

Post by soulsin » Thu Sep 25, 2014 1:07 pm

Ok here in lua_statuseffects.cpp here is what at breakpoint atm

inline int32 CLuaStatusEffect::setPower(lua_State* L)
{
DSP_DEBUG_BREAK_IF(m_PLuaStatusEffect == NULL);

DSP_DEBUG_BREAK_IF(lua_isnil(L,1) || !lua_isnumber(L,1)); --- Breaking on this line

m_PLuaStatusEffect->SetPower( lua_tointeger(L,1) );
return 0;
[GM] Soulsin

soulsin
Posts: 102
Joined: Sun Mar 17, 2013 9:06 am

Re: Server Crashing

Post by soulsin » Thu Sep 25, 2014 1:37 pm

In the lunar.h this file is part break point

static int thunk(lua_State *L) {
// стек содержит user_t, следующим прямо за аргументами.
T *obj = check(L, 1);
lua_remove(L, 1);
// Получаем связанное с распаковщиком значение registration
Register_t *l = static_cast<Register_t*>(lua_touserdata(L, lua_upvalueindex(1)));
return (obj->*(l->mfunc))(L); // Вызов метода объекта. -- This is breakpoint.
[GM] Soulsin

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Server Crashing

Post by kjLotus » Thu Sep 25, 2014 3:00 pm

call stack should be able to tell which script is doing it, otherwise i've no idea which script is the offender

soulsin
Posts: 102
Joined: Sun Mar 17, 2013 9:06 am

Re: Server Crashing

Post by soulsin » Thu Sep 25, 2014 3:30 pm

Ok, will try check into it all. Confused on this got no idea, but will post more data soon able get it.

Small update, we just rebuilt server all new and testing from that, hoping that is all fixed. If not we will post more info.
[GM] Soulsin

User avatar
atom0s
Developer
Posts: 537
Joined: Thu Oct 25, 2012 9:52 am

Re: Server Crashing

Post by atom0s » Fri Sep 26, 2014 12:00 pm

Crashes for stuff like this happen from scripts, not the server software itself.

When you do have issues like this, it is best to create a crash dump and make a new issue on Github here:
https://github.com/DarkstarProject/darkstar/issues

Be sure to include your crash dump in the issue.

Post Reply