New Error

Support forum for questions about compiling and running EQ2Emulator on Linux.

Moderator: Team Members

Post Reply
User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

New Error

Post by Gangrenous » Tue Jun 14, 2016 8:13 pm

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.
Capture.JPG
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

Post by Jabantiz » Tue Jun 14, 2016 8:15 pm

That is a deadlock, but it is likely the result of that "Got Signal 11" which usually refers to memory corruption

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: New Error

Post by Gangrenous » Thu Jun 23, 2016 5:21 pm

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.
Capture.JPG
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

Post by Jabantiz » Thu Jun 23, 2016 5:50 pm

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?

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: New Error

Post by Gangrenous » Thu Jun 23, 2016 6:09 pm

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

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: New Error

Post by Gangrenous » Thu Jun 23, 2016 6:14 pm

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

Post by Jabantiz » Thu Jun 23, 2016 6:17 pm

provocating wrote:I am guessing 8,388,607 is a medium int max?
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.

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

Post by Jabantiz » Thu Jun 23, 2016 6:32 pm

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

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);	
to

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);	
It is the same but Linux had issues with %l in the pas so it might be the issue again, maybe.

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: New Error

Post by Gangrenous » Thu Jun 23, 2016 8:01 pm

Bingo, make this official please. Changing my SVN also.
Resident Dirty Hippy

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

Re: New Error

Post by Jabantiz » Thu Jun 23, 2016 8:04 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests