Jump to content
  • 0

Map Crash On Buying Store Open


Dragonis1701

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   7
  • Joined:  05/25/12
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   7
  • Joined:  05/25/12
  • Last Seen:  

Figured it out. Turns out if your Message_Size was larger than default, 79 + 1, it crashed your map server.

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

What client version and what git hash?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  96
  • Reputation:   7
  • Joined:  05/25/12
  • Last Seen:  

What client version and what git hash?

Git Hash: 27e90f8f455c849ba919f85d9521f1126e6af29a

Client: 2013-08-07

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...