Jump to content

Game.core ITEM_MANAGER::SaveSingleItem


Recommended Posts

Hi dev,

i have a crash core problem and is crash every day.

41c9e4ecb46e42b9af249a93b6514648.png

and bt:

9446d4d3b89e475b9400b39cf93dbb2c.png

my char.h:555

ba77ff69e81e489d9165dec5e9a289a9.png

how to i fix ?its a big problem for me.my item_manager cpp : 

This is the hidden content, please

bt full:

Spoiler

(gdb) bt full
#0  0x0816a88c in ITEM_MANAGER::SaveSingleItem (this=0xffff93c8,
    item=0x68745a00) at char.h:555
        t = {id = 1081925632, window = 32 ' ', pos = 40960, count = 5,
  vnum = 1081942016, alSockets = {1, 23170, 700000}, aAttr = {{bType = 0 '\0',
      sValue = 0}, {bType = 0 '\0', sValue = 16384}, {bType = 104 'h',
      sValue = -15211}, {bType = 104 'h', sValue = 32582}, {bType = 78 'N',
      sValue = -3364}, {bType = 220 '▒', sValue = -14232}, {
      bType = 146 '\222', sValue = -1}, {bType = 114 'r', sValue = 5933}, {
      bType = 8 '\b', sValue = -27592}, {bType = 255 '▒', sValue = 26879}, {
      bType = 70 'F', sValue = 20095}, {bType = 220 '▒', sValue = -8974}, {
      bType = 104 'h', sValue = 0}, {bType = 0 '\0', sValue = 24576}, {
      bType = 217 '▒', sValue = 19538}}, owner = 1759310580, bind = 1751233952}
#1  0x0816cd24 in ITEM_MANAGER::Update (this=0xffff93c8)
    at item_manager.cpp:530
        item = <value optimized out>
        it = {<std::tr1::__detail::_Hashtable_iterator_base<CItem*,false>> = {
    _M_cur_node = 0x61fe2370, _M_cur_bucket = 0x68dcf2f8}, <No data fields>}
        this_it = {<std::tr1::__detail::_Hashtable_iterator_base<CItem*,false>> = {_M_cur_node = 0x4e7f4668, _M_cur_bucket = 0x68dcf2dc}, <No data fields>}
#2  0x08278093 in heartbeat (ht=0x28c13400, pulse=1621028) at main.cpp:332
        c_set_desc = <value optimized out>
        t = 64272554
#3  0x0827821e in idle () at main.cpp:872
---Type <return> to continue, or q <return> to quit---
        now = {tv_sec = 1503360241, tv_usec = 509961}
        passed_pulses = 1
        t = <value optimized out>
        pta = {tv_sec = 1503360241, tv_usec = 59287}
        process_time_count = 12
#4  0x08279a9c in main (argc=1, argv=Cannot access memory at address 0x4
) at main.cpp:545
        sectree_manager = {<singleton<SECTREE_MANAGER>> = {
    _vptr$singleton = 0x84ca730, static ms_singleton = 0xffff967c},
  static current_sectree_version = 768, m_map_pkSectree = {_M_t = {
      _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const unsigned int, SECTREE_MAP*> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const unsigned int, SECTREE_MAP*> > >> = {<No data fields>}, <No data fields>},
        _M_key_compare = {<std::binary_function<unsigned int,unsigned int,bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red,
          _M_parent = 0x473ff3c0, _M_left = 0x2c9745c0,
          _M_right = 0x65bfcf80}, _M_node_count = 37}}}, m_map_pkArea = {
    _M_t = {
      _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const int, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, TAreaInfo, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, TAreaInfo> > > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const int, std::map<std::basic_string<char, std:---Type <return> to continue, or q <return> to quit---
:char_traits<char>, std::allocator<char> >, TAreaInfo, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, TAreaInfo> > > > > >> = {<No data fields>}, <No data fields>},
        _M_key_compare = {<> = {<No data fields>}, <No data fields>},
        _M_header = {_M_color = std::_S_red, _M_parent = 0x46dd0be0,
          _M_left = 0x46dd0be0, _M_right = 0x46dd0be0}, _M_node_count = 1}}},
  m_vec_mapRegion = {<std::_Vector_base<SMapRegion,std::allocator<SMapRegion> >> = {
      _M_impl = {<std::allocator<SMapRegion>> = {<__gnu_cxx::new_allocator<SMapRegion>> = {<No data fields>}, <No data fields>}, _M_start = 0x28da0000,
        _M_finish = 0x28da1514,
        _M_end_of_storage = 0x28da2600}}, <No data fields>},
  m_mapNPCPosition = {_M_t = {
      _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const unsigned int, std::vector<npc_info, std::allocator<npc_info> > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const unsigned int, std::vector<npc_info, std::allocator<npc_info> > > > >> = {<No data fields>}, <No data fields>},
        _M_key_compare = {<std::binary_function<unsigned int,unsigned int,bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red,
          _M_parent = 0x647fdee0, _M_left = 0x296b8cc0,
          _M_right = 0x55270360}, _M_node_count = 102}}},
  next_private_index_map_ = {<std::tr1::_Hashtable<long int,std::pair<const long
(gdb)

thanks for advance

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 3
Link to comment
Share on other sites

thanks, bt full :

Spoiler

(gdb) bt full
#0  0x0816a88c in ITEM_MANAGER::SaveSingleItem (this=0xffff93c8,
    item=0x68745a00) at char.h:555
        t = {id = 1081925632, window = 32 ' ', pos = 40960, count = 5,
  vnum = 1081942016, alSockets = {1, 23170, 700000}, aAttr = {{bType = 0 '\0',
      sValue = 0}, {bType = 0 '\0', sValue = 16384}, {bType = 104 'h',
      sValue = -15211}, {bType = 104 'h', sValue = 32582}, {bType = 78 'N',
      sValue = -3364}, {bType = 220 '▒', sValue = -14232}, {
      bType = 146 '\222', sValue = -1}, {bType = 114 'r', sValue = 5933}, {
      bType = 8 '\b', sValue = -27592}, {bType = 255 '▒', sValue = 26879}, {
      bType = 70 'F', sValue = 20095}, {bType = 220 '▒', sValue = -8974}, {
      bType = 104 'h', sValue = 0}, {bType = 0 '\0', sValue = 24576}, {
      bType = 217 '▒', sValue = 19538}}, owner = 1759310580, bind = 1751233952}
#1  0x0816cd24 in ITEM_MANAGER::Update (this=0xffff93c8)
    at item_manager.cpp:530
        item = <value optimized out>
        it = {<std::tr1::__detail::_Hashtable_iterator_base<CItem*,false>> = {
    _M_cur_node = 0x61fe2370, _M_cur_bucket = 0x68dcf2f8}, <No data fields>}
        this_it = {<std::tr1::__detail::_Hashtable_iterator_base<CItem*,false>> = {_M_cur_node = 0x4e7f4668, _M_cur_bucket = 0x68dcf2dc}, <No data fields>}
#2  0x08278093 in heartbeat (ht=0x28c13400, pulse=1621028) at main.cpp:332
        c_set_desc = <value optimized out>
        t = 64272554
#3  0x0827821e in idle () at main.cpp:872
---Type <return> to continue, or q <return> to quit---
        now = {tv_sec = 1503360241, tv_usec = 509961}
        passed_pulses = 1
        t = <value optimized out>
        pta = {tv_sec = 1503360241, tv_usec = 59287}
        process_time_count = 12
#4  0x08279a9c in main (argc=1, argv=Cannot access memory at address 0x4
) at main.cpp:545
        sectree_manager = {<singleton<SECTREE_MANAGER>> = {
    _vptr$singleton = 0x84ca730, static ms_singleton = 0xffff967c},
  static current_sectree_version = 768, m_map_pkSectree = {_M_t = {
      _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const unsigned int, SECTREE_MAP*> > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const unsigned int, SECTREE_MAP*> > >> = {<No data fields>}, <No data fields>},
        _M_key_compare = {<std::binary_function<unsigned int,unsigned int,bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red,
          _M_parent = 0x473ff3c0, _M_left = 0x2c9745c0,
          _M_right = 0x65bfcf80}, _M_node_count = 37}}}, m_map_pkArea = {
    _M_t = {
      _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const int, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, TAreaInfo, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, TAreaInfo> > > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const int, std::map<std::basic_string<char, std:---Type <return> to continue, or q <return> to quit---
:char_traits<char>, std::allocator<char> >, TAreaInfo, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, TAreaInfo> > > > > >> = {<No data fields>}, <No data fields>},
        _M_key_compare = {<> = {<No data fields>}, <No data fields>},
        _M_header = {_M_color = std::_S_red, _M_parent = 0x46dd0be0,
          _M_left = 0x46dd0be0, _M_right = 0x46dd0be0}, _M_node_count = 1}}},
  m_vec_mapRegion = {<std::_Vector_base<SMapRegion,std::allocator<SMapRegion> >> = {
      _M_impl = {<std::allocator<SMapRegion>> = {<__gnu_cxx::new_allocator<SMapRegion>> = {<No data fields>}, <No data fields>}, _M_start = 0x28da0000,
        _M_finish = 0x28da1514,
        _M_end_of_storage = 0x28da2600}}, <No data fields>},
  m_mapNPCPosition = {_M_t = {
      _M_impl = {<std::allocator<std::_Rb_tree_node<std::pair<const unsigned int, std::vector<npc_info, std::allocator<npc_info> > > > >> = {<__gnu_cxx::new_allocator<std::_Rb_tree_node<std::pair<const unsigned int, std::vector<npc_info, std::allocator<npc_info> > > > >> = {<No data fields>}, <No data fields>},
        _M_key_compare = {<std::binary_function<unsigned int,unsigned int,bool>> = {<No data fields>}, <No data fields>}, _M_header = {_M_color = std::_S_red,
          _M_parent = 0x647fdee0, _M_left = 0x296b8cc0,
          _M_right = 0x55270360}, _M_node_count = 102}}},
  next_private_index_map_ = {<std::tr1::_Hashtable<long int,std::pair<const long
(gdb)

 

Link to comment
Share on other sites

  • 2 weeks later...

Your issue is likely to be memory corruption anywhere on the code (that is, not just that file). Roll back all changes until the moment you had this issue and then analyze them carefully or spend a long while tracking what's being done to your items and under which conditions this will end up happenning. Good news is, it crashes every day, so it must be easy to reproduce.

  • Love 1
Link to comment
Share on other sites

  • 4 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • Recently Browsing

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

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.