Dragonis1701 Posted June 24, 2016 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 101 Reputation: 8 Joined: 05/25/12 Last Seen: 3 hours ago Share Posted June 24, 2016 When I try to open a buying store, my map server crashes giving me the error: ---------------------------Microsoft Visual C++ Runtime Library---------------------------Debug Error!Program: ...s\User\Desktop\Jordan's Folder\Backups\rathena\map-server.exeModule: ...s\User\Desktop\Jordan's Folder\Backups\rathena\map-server.exeFile: c:\users\user\desktop\jordan's folder\backups\rathena\src\map\clif.cLine: 16826Run-Time Check Failure #2 - Stack around the variable 'buf' was corrupted.(Press Retry to debug the application)---------------------------Abort Retry Ignore --------------------------- And the code it is pointing out in clif.c is:void clif_buyingstore_entry(struct map_session_data* sd){ uint8 buf[86]; WBUFW(buf,0) = 0x814; WBUFL(buf,2) = sd->bl.id; memcpy(WBUFP(buf,6), sd->message, MESSAGE_SIZE); clif_send(buf, packet_len(0x814), &sd->bl, AREA_WOS);} < Line 16826Any ideas? I have no idea why it's doing it. Quote Link to comment Share on other sites More sharing options...
0 Stolao Posted June 25, 2016 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Share Posted June 25, 2016 What client version and what git hash? Quote Link to comment Share on other sites More sharing options...
0 Dragonis1701 Posted June 25, 2016 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 101 Reputation: 8 Joined: 05/25/12 Last Seen: 3 hours ago Author Share Posted June 25, 2016 What client version and what git hash? Git Hash: 27e90f8f455c849ba919f85d9521f1126e6af29a Client: 2013-08-07 Quote Link to comment Share on other sites More sharing options...
0 Dragonis1701 Posted June 27, 2016 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 101 Reputation: 8 Joined: 05/25/12 Last Seen: 3 hours ago Author Share Posted June 27, 2016 Figured it out. Turns out if your Message_Size was larger than default, 79 + 1, it crashed your map server. Quote Link to comment Share on other sites More sharing options...
Question
Dragonis1701
When I try to open a buying store, my map server crashes giving me the error:
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Debug Error!
Program: ...s\User\Desktop\Jordan's Folder\Backups\rathena\map-server.exe
Module: ...s\User\Desktop\Jordan's Folder\Backups\rathena\map-server.exe
File: c:\users\user\desktop\jordan's folder\backups\rathena\src\map\clif.c
Line: 16826
Run-Time Check Failure #2 - Stack around the variable 'buf' was corrupted.
(Press Retry to debug the application)
---------------------------
Abort Retry Ignore
---------------------------
And the code it is pointing out in clif.c is:
void clif_buyingstore_entry(struct map_session_data* sd)
{
uint8 buf[86];
WBUFW(buf,0) = 0x814;
WBUFL(buf,2) = sd->bl.id;
memcpy(WBUFP(buf,6), sd->message, MESSAGE_SIZE);
clif_send(buf, packet_len(0x814), &sd->bl, AREA_WOS);
} < Line 16826
Any ideas? I have no idea why it's doing it.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.