Page 1 of 1

server crashes

Posted: Fri Aug 11, 2017 8:03 pm
by Ememjr
my server crashes almost every night, and i read somewhere tht it had to do with a timer or something and can no longer find the post,
if anyone else remembers it can you point me in the correct direction

Re: server crashes

Posted: Fri Aug 11, 2017 10:10 pm
by Jabantiz
I do not recall an issue with timers causing a crash. Does this crash on its own or is some one on it? If some one is on it are they using content dev commands, mainly the /reload or /repop?

Re: server crashes

Posted: Sat Aug 12, 2017 3:04 am
by Ememjr
no just if i leave it up and running no client s connecte

Re: server crashes

Posted: Sat Aug 12, 2017 11:01 am
by Ememjr
so i was able to get it to crash while in debugger here is whee it stops at

Code: Select all

void __cdecl _free_base (void * pBlock)
{

        int retval = 0;


        if (pBlock == NULL)
            return;

        RTCCALLBACK(_RTC_Free_hook, (pBlock, 0));

        retval = HeapFree(_crtheap, 0, pBlock); //>>>>>>>>>> the  arrow is pointing to this line 
        if (retval == 0)
        {
            errno = _get_errno_from_oserr(GetLastError());
        }
}

Re: server crashes

Posted: Fri Aug 18, 2017 2:12 pm
by tyrbo
Would probably be helpful to post the full stack trace.

Re: server crashes

Posted: Fri Aug 18, 2017 2:28 pm
by Ememjr
ok i will next time it does it in debug mode

Re: server crashes

Posted: Sun Aug 20, 2017 2:31 am
by Ememjr
so it didn't crash again but after a restart and the server just sitting idle the log starts getting these
idle.JPG

Re: server crashes

Posted: Sun Aug 20, 2017 8:58 am
by Cynnar
Don't know about the lua addtimer command error, but the attempt to call a nil value I think is struct related. When it happens on my server USUALLY there is a pet command button that is rapidly auto clicking itself. Sometimes my toon can't decide if he wants to sit or stand when I get the nil value call.

Logging off and back on will fix it some times, but if it's a new client, and structs are not setup, then it doesn't.

Re: server crashes

Posted: Sun Aug 20, 2017 9:29 am
by Ememjr
all i did was start the server and let it sit, i tried to find where attempt to call a nil was located in code and could not find it

Re: server crashes

Posted: Sun Aug 20, 2017 9:51 am
by Cynnar
It's not my area of expertise, but if I understand correctly the call has already been made, a nil value was returned, and the server is expecting a something not nil.

Re: server crashes

Posted: Sun Aug 20, 2017 3:24 pm
by Jabantiz
"attempt to call nil" usually refers to when the server makes a call to a script but that function is not in the script. Most often you will see it when declining or deleting a quest whose script doesn't have the declined or deleted function in them.

Did this happen right away or did it take time? Do you have zones that start up even with no one on? are you running the server on windows or Linux?

If it took time to show up and no client ever connected it seems like memory corruption but I have never seen it on my local server or the emu server.

Re: server crashes

Posted: Mon Aug 21, 2017 3:19 am
by Ememjr
it always takes time to show up,i have frostfang up when no one on and i am running on windows

Re: server crashes

Posted: Tue Aug 22, 2017 3:31 am
by Ememjr
here is the call stack when i get LUA addtimer command error: time is not set
call to nil.JPG