Jump to content
Maintenance : Final step ×

ChatPacket cause game core crash.


Recommended Posts

Dear everyone!?

I'm trying to solve this issue, but i didn't find anything. I'm ask for your help guys maybe someone can suggest something.

Serverfile: martysama 5.4 (boughted).

In the source i have vegas multilanguage + pickup (boughted).

LLDB:

spacer.png

input_login.cpp 85 line (sometimes it's item_drop_bonus etc..):

    exp_bonus = CPrivManager::instance().GetPriv(ch, PRIV_EXP_PCT);

it's chatpacket:

ch->ChatPacket(CHAT_TYPE_NOTICE,
            LC_TEXT("°ćÇčġ %d%% Ăß°ˇ Čąµć ŔĚşĄĆ® ÁßŔÔ´Ď´Ů."), exp_bonus);

(When entering the game i see this chat message and it's working fine.)

 

GDB:

spacer.png

 

Syslog:
 

Quote

Sep  1 09:10:47 :: SHOW: Poison 723756x502591x0
Sep  1 09:10:47 :: AddAffect Poison type 215 apply 0 0 flag 28 duration 5
Sep  1 09:10:47 :: ENTERGAME: Poison 723756x502591x0 45.134.238.92 map_index 71
Sep  1 09:10:47 :: HORSE STAMINA CONSUME EVENT CANCEL 0x0 -> NULL
Sep  1 09:10:47 :: HORSE STAMINA REGEN EVENT CREATE 0x31f90100
Sep  1 09:10:47 :: SendLandList map 71 count 0 elem_size: 0

What do you think? The server is crashing very often when someone entering the game. 

I've checked the locale_strings line by line, translates, source chatpackets, but i didn't find the issue.

Marty and VegaS tried to help me, but it was not enough.

 

I don't expect anyone to help me for free. I can pay for your help & time.

Thank you in advance!

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

Hi, as far as i see, the problem at ChatPacket format argument, it comes from LC_TEXT, the memory address what comes from Vegas's LC_TEXT modificated function is empty, freed region or something is not correct inside that function, and the vsnprintf cant acces to that correctly. I dont know that multilanguage system, but it is a possible point to the problem location.

I dont know the full history of this problem, but it is my tip in first look.

Have a good luck.

  • Love 1

All wolves are gray in the dark.

Link to comment
Share on other sites

  • 2 years later...
  • 3 weeks later...
  • Premium

  

5 hours ago, piktorvik said:

Hi, unfortunately not. That project was frozen there and then. Are you struggling with the same thing?

 

Hello.

Thank you for your answer!

Yes, same thing. Marty source, Vegas multilang and crash core at ChatPacket.

I haven't checked the issue in depth, I wanted to ask here first since I've seen you encountered the same issue thinking that it will save me some time.

 

Issue not happening on same ChatPacket call, it happens at random it seems.

UPDATE:

I think I fixed it. I used to replicate it easily now I can't anymore. I think it had to do with the locale_string format or maybe some unsupported characters of the other languages. I replaced them with my english locale that was good and works fine now.

I can't explain but it worked so far.

 

 

 

 

Edited by Malagama
update
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
×
×
  • 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.