• 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!

GDB CRASH

Lokefrs

New Member
Joined
Jun 25, 2011
Messages
112
Reaction score
3
Lua:
#21 ItemAttributes::getStringAttribute (this=this@entry=0x7fffd4aa7210, key="name", ok=@0x7ffff264192f: false) at itemattributes.cpp:94
        it = <optimized out>
#22 0x00000000005798e1 in Item::getName[abi:cxx11]() const (this=0x7fffd4aa7210) at item.h:381
        ok = false
        v = ""
#23 <function called from gdb>
No symbol table info available.
#24 Item::canDecay (this=this@entry=0x7fffd4aa7210) at item.cpp:1800
        it = <optimized out>
#25 0x0000000000546751 in Game::checkDecay (this=0x93c480 <g_game>) at game.cpp:5417
        item = 0x7fffd4aa7210
        duration = <optimized out>
        decreaseTime = <optimized out>
        it =
        bucket = 0
#26 0x00000000004b86b0 in boost::function0<void>::operator() (this=0x7fff863591a0) at /usr/include/boost/function/function_template.hpp:773
No locals.
#27 Task::operator() (this=0x7fff86359190) at dispatcher.h:34
No locals.
 
Lua:
#21 ItemAttributes::getStringAttribute (this=this@entry=0x7fffd4aa7210, key="name", ok=@0x7ffff264192f: false) at itemattributes.cpp:94
        it = <optimized out>
#22 0x00000000005798e1 in Item::getName[abi:cxx11]() const (this=0x7fffd4aa7210) at item.h:381
        ok = false
        v = ""
#23 <function called from gdb>
No symbol table info available.
#24 Item::canDecay (this=this@entry=0x7fffd4aa7210) at item.cpp:1800
        it = <optimized out>
#25 0x0000000000546751 in Game::checkDecay (this=0x93c480 <g_game>) at game.cpp:5417
        item = 0x7fffd4aa7210
        duration = <optimized out>
        decreaseTime = <optimized out>
        it =
        bucket = 0
#26 0x00000000004b86b0 in boost::function0<void>::operator() (this=0x7fff863591a0) at /usr/include/boost/function/function_template.hpp:773
No locals.
#27 Task::operator() (this=0x7fff86359190) at dispatcher.h:34
No locals.
The error appears to be occurring in the ItemAttributes::getStringAttribute() function in the itemattributes.cpp file on line 94. It appears that the program is trying to get a string attribute ("name") but can't find it. The ok parameter is passed false, suggesting that the operation was unsuccessful.
 
The error appears to be occurring in the ItemAttributes::getStringAttribute() function in the itemattributes.cpp file on line 94. It appears that the program is trying to get a string attribute ("name") but can't find it. The ok parameter is passed false, suggesting that the operation was unsuccessful.
error: 1714775329076.png

Otx crash after this error
 
IDK how it went from #24 Item::canDecay to #22 0x00000000005798e1 in Item::getName.
What OTX are you using? OTX2? OTX6?

OTX2 canDecay code ( otxserver/sources/item.cpp at otxserv2 · mattyx14/otxserver (https://github.com/mattyx14/otxserver/blob/otxserv2/sources/item.cpp#L1833-L1849) ):
C++:
bool Item::canDecay()
{
    if (isRemoved()) {
        return false;
    }

    const ItemType& it = Item::items[id];
    if (it.decayTo < 0 || it.decayTime == 0) {
        return false;
    }

    if (itemUid != -1) {
        return false;
    }

    return true;
}
OTX6 canDecay code: otxserver/src/items/item.cpp at e0e0e56b4a1387e182e872513df79a30beb02a68 · mattyx14/otxserver (https://github.com/mattyx14/otxserver/blob/e0e0e56b4a1387e182e872513df79a30beb02a68/src/items/item.cpp#L3143-L3158)

There is nothing about reading item name.

@Lokefrs
Post your item.cpp file.
 
does item decay into correct item? perhaps the item decaying is a potion or something that has some flag that decaying item does not have?
 
this is the problem, I don't know which item is crashing
well what items did you add that decay? you didnt just download engine and then it started crashing? if so you probably failed to compile it properly. as we all can see its because of boost libraries chances are you downloaded from source or some shit. you didnt 1 mention what engine you are using whatsoever
2. what linux distro
3. steps to reproduce anything

I think support board needs strict rules to forbid people from making such posts because at this point its just useless
@Addams I am sorry to tag you but you seem like the most active administrator on the board of otland at current moment and it would mean a lot if you could perhaps bring this matter higher as we have tens of useless posts of clueless people :| it would save everyone time.


its like me coming in and saying hey guys i just poured water and it made Coffe I wanted Tea!
well did you put teabag?
here is GDB crash information about the heat dissipation inside of the cup guys:
 

Similar threads

Back
Top