Jump to content

Recommended Posts

i dont know this problem.i want to fix.how to fix?

Spoiler

Core was generated by `game'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib32/libmd.so.5...done.
Loaded symbols for /usr/lib32/libmd.so.5
Reading symbols from /usr/lib32/libz.so.6...done.
Loaded symbols for /usr/lib32/libz.so.6
Reading symbols from /usr/lib32/libssl.so.6...done.
Loaded symbols for /usr/lib32/libssl.so.6
Reading symbols from /usr/lib32/libstdc++.so.6...Error while reading shared library symbols:
Dwarf Error: wrong version in compilation unit header (is 4, should be 2) [in module /usr/lib32/libstdc++.so.6]
Reading symbols from /usr/lib32/libm.so.5...done.
Loaded symbols for /usr/lib32/libm.so.5
Reading symbols from /usr/lib32/libgcc_s.so.1...done.
Loaded symbols for /usr/lib32/libgcc_s.so.1
Reading symbols from /usr/lib32/libthr.so.3...done.
Loaded symbols for /usr/lib32/libthr.so.3
Reading symbols from /usr/lib32/libc.so.7...done.
Loaded symbols for /usr/lib32/libc.so.7
Reading symbols from /usr/lib32/libcrypto.so.6...done.
Loaded symbols for /usr/lib32/libcrypto.so.6
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x0816993c in ITEM_MANAGER::SaveSingleItem (this=0xffff93c8,
    item=0x56231900) at item_manager.cpp:494
494     item_manager.cpp: No such file or directory.
        in item_manager.cpp
[New Thread 28c0433428c05500 (LWP 100123/game)]
[New Thread 28783f4028c05200 (LWP 100116/game)]
[New Thread 28c0553428c04f00 (LWP 100115/game)]
[New Thread 28c0523428c04300 (LWP 100084/game)]
Cannot find new threads: generic error

and bt ;

Spoiler


#0  0x0816993c in ITEM_MANAGER::SaveSingleItem (this=0xffff93c8,
    item=0x56231900) at item_manager.cpp:494
#1  0x0816bd74 in ITEM_MANAGER::Update (this=0xffff93c8)
    at item_manager.cpp:519
#2  0x08276bd3 in heartbeat (ht=0x28c13400, pulse=507873) at main.cpp:348
#3  0x08276d5e in idle () at main.cpp:872
#4  0x082785dc in main (argc=1, argv=Cannot access memory at address 0x4
) at main.cpp:537
 

this item_manager.cpp:494:

Spoiler

    t.owner = (t.window == SAFEBOX || t.window == MALL) ? item->GetOwner()->GetDesc()->GetAccountTable().id : item->GetOwner()->GetPlayerID();

this function:

Spoiler

void ITEM_MANAGER::SaveSingleItem(LPITEM item)
{
    if (!item->GetOwner())
    {
        DWORD dwID = item->GetID();
        DWORD dwOwnerID = item->GetLastOwnerPID();

        db_clientdesc->DBPacketHeader(HEADER_GD_ITEM_DESTROY, 0, sizeof(DWORD) + sizeof(DWORD));
        db_clientdesc->Packet(&dwID, sizeof(DWORD));
        db_clientdesc->Packet(&dwOwnerID, sizeof(DWORD));

        sys_log(1, "ITEM_DELETE %s:%u", item->GetName(), dwID);
        return;
    }

    //sys_log(1, "ITEM_SAVE %s:%d in %s window %d", item->GetName(), item->GetID(), item->GetOwner()->GetName(), item->GetWindow()); core veren
    sys_log(1, "ITEM_SAVE %s:%d in %s window %d", item->GetName(), item->GetID(), item->GetWindow());

    TPlayerItem t;

    t.id = item->GetID();
    t.window = item->GetWindow();
    t.pos = t.window == EQUIPMENT ? item->GetCell() - INVENTORY_MAX_NUM : item->GetCell();
    t.count = item->GetCount();
    t.vnum = item->GetOriginalVnum();
#ifdef __SOULBINDING_SYSTEM__
    t.bind = item->GetBind();
#endif
    t.owner = (t.window == SAFEBOX || t.window == MALL) ? item->GetOwner()->GetDesc()->GetAccountTable().id : item->GetOwner()->GetPlayerID(); //its 494.line
    thecore_memcpy(t.alSockets, item->GetSockets(), sizeof(t.alSockets));
    thecore_memcpy(t.aAttr, item->GetAttributes(), sizeof(t.aAttr));

    db_clientdesc->DBPacketHeader(HEADER_GD_ITEM_SAVE, 0, sizeof(TPlayerItem));
    db_clientdesc->Packet(&t, sizeof(TPlayerItem));
}

anyone help fix?

Link to comment
https://metin2.dev/topic/12583-gamecore-problem/
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

On 11.07.2016 at 9:56 AM, danutzu said:

item_manager.cpp:519  ??

519 is '}' this function:

Spoiler

void ITEM_MANAGER::Update()
{
    TR1_NS::unordered_set<LPITEM>::iterator it = m_set_pkItemForDelayedSave.begin();
    TR1_NS::unordered_set<LPITEM>::iterator this_it;

    while (it != m_set_pkItemForDelayedSave.end())
    {
        this_it = it++;
        LPITEM item = *this_it;
        // SLOW_QUERY 플래그가 있는 것은 종료시에만 저장한다.
        if (item->GetOwner() && IS_SET(item->GetFlag(), ITEM_FLAG_SLOW_QUERY))
            continue;

        SaveSingleItem(item);

        m_set_pkItemForDelayedSave.erase(this_it);
    }
} //519.line

 

Link to comment
https://metin2.dev/topic/12583-gamecore-problem/#findComment-72437
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.