Page 1 of 1
Server Crashing
Posted: Thu Sep 25, 2014 11:44 am
by soulsin
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.
Re: Server Crashing
Posted: Thu Sep 25, 2014 12:20 pm
by nasomi
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.
Re: Server Crashing
Posted: Thu Sep 25, 2014 1:07 pm
by soulsin
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;
Re: Server Crashing
Posted: Thu Sep 25, 2014 1:37 pm
by soulsin
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.
Re: Server Crashing
Posted: Thu Sep 25, 2014 3:00 pm
by kjLotus
call stack should be able to tell which script is doing it, otherwise i've no idea which script is the offender
Re: Server Crashing
Posted: Thu Sep 25, 2014 3:30 pm
by soulsin
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.
Re: Server Crashing
Posted: Fri Sep 26, 2014 12:00 pm
by atom0s
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.