Jump to content

[Syserr] Game core crash


Recommended Posts

Syserr CH1 when crash :

Spoiler

SYSERR: Mar 16 11:24:19 :: Select: wrong QUEST_SELECT request! : 5859

Syslog CH1 when crash :

Spoiler

Mar 16 11:24:19 :: SECTREE DIFFER: Shy 149x43 was 149x42
Mar 16 11:24:19 :: COMMAND: Petrica: stat
Mar 16 11:24:19 :: Handshake: lower than zero -20
Mar 16 11:24:19 :: HorseSummon : Smash lv:84 bSummon:1 fromFar:0
Mar 16 11:24:19 :: COMMAND: Petrica: stat
Mar 16 11:24:19 :: COMMAND: Petrica: stat
Mar 16 11:24:19 :: SAVE: FrEsH 951050x286323
Mar 16 11:24:19 :: QUEST ScriptAnswer pid 5859 answer 5
SYSERR: Mar 16 11:24:19 :: Select: wrong QUEST_SELECT request! : 5859
Mar 16 11:24:19 :: AddAffect Metinul Mortii type 211 apply 19 -30 flag 5 duration 20
Mar 16 11:24:19 :: COMMAND: Petrica: stat
Mar 16 11:24:19 :: SendTargetUpdatePacket 274 950100x233300
Mar 16 11:24:19 :: SendTargetUpdatePacket 275 950800x286000
Mar 16 11:24:19 :: SendTargetUpdatePacket 276 962900x258700
Mar 16 11:24:19 :: SendTargetUpdatePacket 277 964077x276357
Mar 16 11:24:19 :: SendTargetUpdatePacket 278 964077x276357
Mar 16 11:24:19 :: COMMAND: Petrica: stat
Mar 16 11:24:19 :: COMMAND: Petrica: stat
Mar 16 11:24:19 :: Handshake: lower than zero -20
Mar 16 11:24:19 :: DROP_ITEM: Seva Plantei 940054 166892 from Salcia Fantoma
Mar 16 11:24:19 :: COMMAND: Smash: ride
Mar 16 11:24:19 :: HORSE STAMINA REGEN EVENT CANCEL 0x63f0cdc0
Mar 16 11:24:19 :: HORSE STAMINA CONSUME EVENT CREATE 0x627c8080
Mar 16 11:24:19 :: COMMAND: Petrica: stat
Mar 16 11:24:19 :: Handshake: client_time 2849138 server_time 3029978 name: RauLmC

 

The issue is seems to be a quest but i don't how to identify quest 5859.

When i look closely in sylog player Petrica is dismounting and using the 5'th option from horse menu witch is "rename your horse" ,

Here is the quest:

Spoiler

quest horse_menu begin
    state start begin
        function horse_menu()
            if horse.is_mine() then
                say_title("Manualul Armãsarului ")
                say("De aici puteþi monitoriza starea Armãsarului dvs. ")
                say("")
                local s = 6
                if horse.is_dead() then
                    s = select( "Alungã Armãsarul ", "Readu la viaþã Armãsarul ", "Închide ")
                    if s == 1 then s = 0
                    elseif s == 2 then s = 3
                    elseif s == 3 then return
                    end
                else
                    s = select(
                    "Hrãneºte Armãsarul ", "Cãlãreºte Armãsarul ", "Alungã Armãsarul ", "Starea Armãsarului ",
                    "Dã un nume armãsarului ", "Închide ")
                end
                if s == 0 then
                    horse.revive()
                elseif s == 1 then
                    local food = horse.get_grade() + 50054 - 1
                    if pc.countitem(food) > 0 then
                        pc.removeitem(food, 1)
                        horse.feed()
                    else
                        say_title("Manualul Armãsarului ")
                        say("Pentru a hrãni armãsarul "..item_name(food).." este hrana ")
                        say("corespunzãtoare armãsarul tãu. ")
                        say("")
                    end
                elseif s == 2 then
                    horse.ride()
                elseif s == 3 then
                    horse.unsummon()
                elseif s == 4 then
                    say_title("Starea Armãsarului: ")
                    say("Sãnãtatea curentã a armãsarului: "..horse.get_health_pct().."%")
                    say("Rezistenþa momentanã a armãsarului: "..horse.get_stamina_pct().."%")
                    say("")
                elseif s == 5 then
                    if pc.countitem("71110") <= 0 then
                        say_title("Manualul Armãsarului ")
                        say("Pentru a putea da un nume armãsarului tãu, ")
                        say("trebuie sã deþi "..item_name("71110")..". ")
                        say("")
                        return
                    end
                    local old_horse_name = horse.get_name() ;
                    say_title("Schimbã numele: ")
                    say("Zahãrul armãsarului îþi dã posibilitatea de a ")
                    say("alege un nume armãsarului tãu. ")
                    say("")
                    if string.len(old_horse_name) == 0 then
                        say_reward("Armãsarul dumneavoastrã nu a avut nici un nume. ")
                    else
                        say_reward("Numele actual al armãsarului este: "..old_horse_name..".")
                    end
                    say("")
                    say("Alege numele armãsarului. ")
                    say("")
                    local horse_name = input()
                    if string.len(horse_name) < 2 then
                        say_title("Schimbã numele: ")
                        say("Nu ai ales nici un nume. ")
                        say("")
                        return
                    elseif string.len(horse_name) > 12 then
                        say_title("Schimbã numele: ")
                        say("Numele ales este prea lung. ")
                        say("")
                        return
                    end
                    local ret = horse.set_name(horse_name)
                    say_title("Schimbã numele: ")
                    if ret == 0 then
                        say_reward("Nu aveþi armãsar. ")
                        say("")
                    elseif ret == 1 then
                        say_reward("Acest nume este folosit deja. ")
                        say("")
                    elseif ret == 2 then
                        pc.remove_item("71110")
                        say("Ai dat armãsarului tãu un nume. ")
                        say("")
                    end
                end
            end
        end
        when 20030.click begin horse_menu.horse_menu() end
        when 20101.click begin horse_menu.horse_menu() end
        when 20102.click begin horse_menu.horse_menu() end
        when 20103.click begin horse_menu.horse_menu() end
        when 20104.click begin horse_menu.horse_menu() end
        when 20105.click begin horse_menu.horse_menu() end
        when 20106.click begin horse_menu.horse_menu() end
        when 20107.click begin horse_menu.horse_menu() end
        when 20108.click begin horse_menu.horse_menu() end
        when 20109.click begin horse_menu.horse_menu() end
        when 20121.click begin horse_menu.horse_menu() end
        when 20122.click begin horse_menu.horse_menu() end
        when 20123.click begin horse_menu.horse_menu() end
        when 20124.click begin horse_menu.horse_menu() end
        when 20125.click begin horse_menu.horse_menu() end
        when 20126.click begin horse_menu.horse_menu() end
        when 20127.click begin horse_menu.horse_menu() end
        when 20128.click begin horse_menu.horse_menu() end
        when 20129.click begin horse_menu.horse_menu() end
        when 20130.click begin horse_menu.horse_menu() end
        when 20131.click begin horse_menu.horse_menu() end
        when 20132.click begin horse_menu.horse_menu() end
        when 20133.click begin horse_menu.horse_menu() end
        when 20134.click begin horse_menu.horse_menu() end
        when 20135.click begin horse_menu.horse_menu() end
        when 20136.click begin horse_menu.horse_menu() end
        when 20137.click begin horse_menu.horse_menu() end
        when 20138.click begin horse_menu.horse_menu() end
        when 20139.click begin horse_menu.horse_menu() end
        when 20140.click begin horse_menu.horse_menu() end
    end
end

 

Beside of this the core crash sometimes with :

Spoiler

checkpointing: CHECKPOINT shutdown: tics did not updated.

 

Link to comment
Share on other sites

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

  • Premium

checkpointing: CHECKPOINT shutdown: tics did not updated. if you use 40k you can fix this error:

 

Search:

 

RETSIGTYPE checkpointing(int sig)
    sys_err("CHECKPOINT shutdown: tics did not updated.");
    abort();

 

Modify like this

 

RETSIGTYPE checkpointing(int sig)
    //sys_err("CHECKPOINT shutdown: tics did not updated.");
    //abort();

 

After that

 

cd /usr/src/your source/Srcs/Server/libthecore/src

    gmake clean
    gmake -j20

 

and for this:

SYSERR: Mar 16 11:24:19 :: Select: wrong QUEST_SELECT request! : 5859

 

You can fix like this:

 

Go to questlua_dungeon.cpp and search

 

M2_DESTROY_CHARACTER(pChar);
pChar->Dead();

 

after that modify like this:

 

//M2_DESTROY_CHARACTER(pChar);
pChar->Dead();

and compile;)

Link to comment
Share on other sites

On 3/16/2016 at 0:22 AM, Istny said:

the best solustion is to use gdb, we will see what's the problem

https://metin2dev.org/board/index.php?/topic/6202-howtouse-gamecore-for-debug/

Ty , this is the error :

Spoiler

Core was generated by `Hdl_game'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib32/libmd.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/lib32/libmd.so.5
Reading symbols from /usr/lib32/libssl.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib32/libssl.so.6
Reading symbols from /usr/lib32/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib32/libstdc++.so.6
Reading symbols from /usr/lib32/libm.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/lib32/libm.so.5
Reading symbols from /usr/lib32/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib32/libgcc_s.so.1
Reading symbols from /usr/lib32/libthr.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib32/libthr.so.3
Reading symbols from /usr/lib32/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /usr/lib32/libc.so.7
Reading symbols from /usr/lib32/libcrypto.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib32/libcrypto.so.6
Reading symbols from /usr/lib32/libsupc++.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib32/libsupc++.so.1
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x08124abd in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
[New Thread 28c0433428c05500 (LWP 101034/Hdl_game)]
[New Thread 28790f4028c05200 (LWP 101030/Hdl_game)]
[New Thread 28c0553428c04f00 (LWP 101029/Hdl_game)]
[New Thread 28c0523428c04300 (LWP 100089/Hdl_game)]
Cannot find new threads: generic error

 

Bt full:

Spoiler

 bt full
#0  0x08124abd in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#1  0x081f48a1 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
No symbol table info available.
#2  0x081392aa in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#3  0x0813a3d6 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#4  0x0815c92d in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#5  0x0815f7b8 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#6  0x08146f0b in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#7  0x0810fc23 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#8  0x08273654 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
No symbol table info available.
#9  0x08274080 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
No symbol table info available.
#10 0x08275666 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
No symbol table info available.
#11 0x0804ec8a in ?? ()
No symbol table info available.
#12 0x00000001 in ?? ()
No symbol table info available.
#13 0xffffcc14 in ?? ()
No symbol table info available.
#14 0xffffcc1c in ?? ()
No symbol table info available.
#15 0xffffcc00 in ?? ()
No symbol table info available.
#16 0xffffcc10 in ?? ()
No symbol table info available.
#17 0x00000000 in ?? ()
No symbol table info available.

 

Any suggestion?

Link to comment
Share on other sites

  • 1 year later...

Does anyone have a solution for this?

Maybe @Vanilla? -> I use your latest core.

#Edit:

Latest Core dump


#0  0x081d7a53 in quest::CQuestManager::CancelServerTimers ()
[New Thread 29814900 (LWP 100163/<unknown>)]
[New Thread 29814600 (LWP 100159/<unknown>)]
[New Thread 29814300 (LWP 100158/<unknown>)]
[New Thread 29814000 (LWP 100076/<unknown>)]
(gdb) bt
#0  0x081d7a53 in quest::CQuestManager::CancelServerTimers ()
#1  0x08104e07 in CDungeonManager::Destroy ()
#2  0x08104bc9 in dungeon_dead_event ()
#3  0x081587eb in event_process ()
#4  0x08172c2c in heartbeat ()
#5  0x08174b73 in idle ()
#6  0x08173655 in main ()

 

btw .core file has 1.8gb!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.