New Error
Moderator: Team Members
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
New Error
Somehow, not sure how but I have my server running in Debian pretty damned reliable. Most of my previous issues have vanished. I did get this one error while doing tons of zoning today.
Even stranger is that the server completely crashed, down to a prompt. When I zoned back in there was a duplicate of my player and I could not move around.
Even stranger is that the server completely crashed, down to a prompt. When I zoned back in there was a duplicate of my player and I could not move around.
You do not have the required permissions to view the files attached to this post.
Last edited by Gangrenous on Tue Jun 14, 2016 8:15 pm, edited 1 time in total.
Resident Dirty Hippy
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: New Error
That is a deadlock, but it is likely the result of that "Got Signal 11" which usually refers to memory corruption
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: New Error
Not sure if this is exactly crash related or a result of the crash. I am guessing 8,388,607 is a medium int max? There is definitely significance to the number.
You do not have the required permissions to view the files attached to this post.
Resident Dirty Hippy
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: New Error
That is to large to be the max for an int16 and to small to be the max for a sint32, either way there is clearly some sort of memory corruption messing with your factions.
How are factions set up on your server? I mean do you have agro working and players changing faction values? Are NPC's fighting each other?
How are factions set up on your server? I mean do you have agro working and players changing faction values? Are NPC's fighting each other?
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: New Error
Digging into it more now. I can say this, not crash related. It is faction 12, 13, 15, 17 and 356 every single time just from logging out.
Resident Dirty Hippy
- Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
Re: New Error
It is something about the player having a negative faction. If I set any faction on my character to a 1 and logout, it stays at 1. If I set one to -1 and log out, it goes to 8388607
Resident Dirty Hippy
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: New Error
My mistake, you are correct on this being the max for a medium int in sql, I forgot sql and c++ data types don't match.provocating wrote:I am guessing 8,388,607 is a medium int max?
And thanks for that, should help me narrow it down some what, might be an issue in how it saves into the database.
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: New Error
I don't see anything wrong with saving but you could try changing %li to %i in void WorldDatabase::SavePlayerFactions(Client* client)
Change this line
to
It is the same but Linux had issues with %l in the pas so it might be the issue again, maybe.
Change this line
Code: Select all
query.RunQuery2(Q_INSERT, "insert into character_factions (char_id, faction_id, faction_level) values(%u, %u, %li) ON DUPLICATE KEY UPDATE faction_level=%li", client->GetCharacterID(), itr->first, itr->second, itr->second); Code: Select all
query.RunQuery2(Q_INSERT, "insert into character_factions (char_id, faction_id, faction_level) values(%u, %u, %i) ON DUPLICATE KEY UPDATE faction_level=%i", client->GetCharacterID(), itr->first, itr->second, itr->second); - Gangrenous
- Posts: 812
- Joined: Sun Apr 24, 2016 6:54 am
- Characters: Dinsmoor
-
Jabantiz
- Lead Developer
- Posts: 2912
- Joined: Wed Jul 25, 2007 2:52 pm
- Location: California
Re: New Error
Yea I will put it on dev svn, and do a quick pass to get any other %li, just wasn't sure that was the problem as I couldn't reproduce it on windows, thanks for verifying it.
Who is online
Users browsing this forum: No registered users and 0 guests