server crashes

EQ2Emulator Development forum.

Moderator: Team Members

Post Reply
User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

server crashes

Post by Ememjr » Fri Aug 11, 2017 8:03 pm

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

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: server crashes

Post by Jabantiz » Fri Aug 11, 2017 10:10 pm

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?

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: server crashes

Post by Ememjr » Sat Aug 12, 2017 3:04 am

no just if i leave it up and running no client s connecte

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: server crashes

Post by Ememjr » Sat Aug 12, 2017 11:01 am

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());
        }
}

tyrbo
Team Member
Posts: 271
Joined: Thu Feb 18, 2016 12:33 pm

Re: server crashes

Post by tyrbo » Fri Aug 18, 2017 2:12 pm

Would probably be helpful to post the full stack trace.

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: server crashes

Post by Ememjr » Fri Aug 18, 2017 2:28 pm

ok i will next time it does it in debug mode

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: server crashes

Post by Ememjr » Sun Aug 20, 2017 2:31 am

so it didn't crash again but after a restart and the server just sitting idle the log starts getting these
idle.JPG
You do not have the required permissions to view the files attached to this post.

User avatar
Cynnar
Project Leader
Posts: 738
Joined: Sat Sep 27, 2014 1:22 am
EQ2Emu Server: Eq2emulator
Characters: Vlash
Veinlash
Taragak
Cynnar

Re: server crashes

Post by Cynnar » Sun Aug 20, 2017 8:58 am

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.
[ 01000011 01111001 01101110 01101110 01100001 01110010 ]

Follow on:
Twitter Facebook

Contact me:
PM Discord chat email

Hardware: the parts of a computer that can be kicked

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: server crashes

Post by Ememjr » Sun Aug 20, 2017 9:29 am

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

User avatar
Cynnar
Project Leader
Posts: 738
Joined: Sat Sep 27, 2014 1:22 am
EQ2Emu Server: Eq2emulator
Characters: Vlash
Veinlash
Taragak
Cynnar

Re: server crashes

Post by Cynnar » Sun Aug 20, 2017 9:51 am

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.
[ 01000011 01111001 01101110 01101110 01100001 01110010 ]

Follow on:
Twitter Facebook

Contact me:
PM Discord chat email

Hardware: the parts of a computer that can be kicked

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: server crashes

Post by Jabantiz » Sun Aug 20, 2017 3:24 pm

"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.

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: server crashes

Post by Ememjr » Mon Aug 21, 2017 3:19 am

it always takes time to show up,i have frostfang up when no one on and i am running on windows

User avatar
Ememjr
Team Member
Posts: 975
Joined: Wed Mar 15, 2017 9:41 am
EQ2Emu Server: Perseverance

Re: server crashes

Post by Ememjr » Tue Aug 22, 2017 3:31 am

here is the call stack when i get LUA addtimer command error: time is not set
call to nil.JPG
You do not have the required permissions to view the files attached to this post.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests