Jump to content

Recommended Posts

Posted

Good day community,
I have a problem that my server always crashes on Linux (Debian).

I do not know why, but maybe someone here knows why that could be.

Console Log:


Error: async hook stack has become corrupted (actual: 84, expected: 85)
 1: 0x55c3a32c3a39 [./server]
 2: 0x55c3a32cbdc3 [./server]
 3: 0x55c3a329d11c [./server]
 4: 0x55c3a3353c34 [./server]
 5: 0x55c3a3e48f45 [./server]
 6: 0x55c3a3e3a25b [./server]
 7: 0x55c3a3232d2f [./server]
 8: 0x55c3a316de60 [./server]
 9: 0x55c3a321f14c [./server]
10: 0x55c3a3164fa7 [./server]
11: __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]
12: 0x55c3a31687fa [./server]

It would be nice if someone could help me there.

Posted (edited)

Apparently that happens when you have uncaught exceptions in async functions. So I'd take a look at those.

Or you're updating an object that doesn't exist.

Edited by MrPancakers
Posted

Yes, have found the cause, but do not know what's wrong with it.

function savePlayerAccount(player) {
    const position = misc.convertOBJToJSON(player.position, player.heading, 0.1);
    misc.query(`UPDATE users SET position = '${position}', dim = '${player.dimension}', lastlogindate = '${new Date()}' WHERE username = '${player.name}'`);
    misc.log.debug(`${player.name} gespeichert`);
}

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...