• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Serve Crash

leonmagmo

New Member
Joined
Mar 17, 2009
Messages
82
Reaction score
3
Hello Guys, sometimes my server closes and send the message: Segment Fault
I installed gdb and i get this error:
b47.bmp


Code:
  uint8_t fromIndex = 0;
    if(fromPos.x == 0xFFFF)
    {
        if(fromPos.y & 0x40)
        {
            fromIndex = static_cast<uint8_t>(fromPos.z);
            fromItem = fromCylinder->getItem(); ///////////////////////////////////////////////////// line 1256 in game.cpp
            if (fromItem)
            {
                fromPlayer = fromItem->getHoldingPlayer();
                Item* parentFromItem = fromItem->getTopParent()->getItem();
                if (fromItem->isDepot() || (parentFromItem && parentFromItem->isDepot()) )
                    fromDepot = true;
            }
        }
        else
        {
            fromIndex = static_cast<uint8_t>(fromPos.y);
            //custom move
            deequip = true;
            //
        }
    }

anyone know why? :x
I'm using ubuntu 10.04 and tfs 0.3.6
This is the part of the source that occur the crash, what this mean ?
 
Last edited:
i looked others erros like a:

spriteid=3031 <- one bug with sprite of gold coin, bad declared can be in sources
 
Code:
  uint8_t fromIndex = 0;
    if(fromPos.x == 0xFFFF)
    {
        if(fromPos.y & 0x40)
        {
            fromIndex = static_cast<uint8_t>(fromPos.z);
            fromItem = fromCylinder->getItem(); ///////////////////////////////////////////////////// line 1256 in game.cpp
            if (fromItem)
            {
                fromPlayer = fromItem->getHoldingPlayer();
                Item* parentFromItem = fromItem->getTopParent()->getItem();
                if (fromItem->isDepot() || (parentFromItem && parentFromItem->isDepot()) )
                    fromDepot = true;
            }
        }
        else
        {
            fromIndex = static_cast<uint8_t>(fromPos.y);
            //custom move
            deequip = true;
            //
        }
    }
 
Check if that's happening when you use the function doPlayerAddItemEx. Try to change whenever you're using that with a gold coin to doPlayerAddItem.

Probably the server create the item, remove, and then try to move or remove the item, that's a bug on TFS that i had experienced.
 
Back
Top