Jump to content
  • 0

Weird memory issues


Lokret

Question

Hi. Sometimes I face client crashes when I teleport. I have no syserr, but I tried to debug it and I got the following error. 

Exception thrown at 0x011C4190 in metin2client.exe: 0xC0000005: Access violation reading location 0x0088F000.

The image is created like this:

static CDXTCImage image;

Please help me, sorry for the white IDE

 

Update: Turned off every optimization, so the unable to read memory problem on the second picture (if its a problem) is solved now, but the client is still crashing at the memcpy assembly code. I guess it has something to do with the buffer memory allocation regarding the image's m_pbComBufferByLevels array which was initialized like this: const BYTE* m_pbCompBufferByLevels[MAX_MIPLEVELS];

I think the other possible cause of this is some memory leak or trashing somewhere not here, idk about these. Maybe Im total wrong, but doesnt matter, these problems are beyond my cpp skills, so I would appreciate some hints about how to analyze it.

 

18452501.png

 

18461802.png

Edited by Lokret
Link to post

1 answer to this question

Recommended Posts

  • 0

Update: Turned off every optimization, so the unable to read memory problem on the second picture (if its a problem) is solved now, but the client is still crashing at the memcpy assembly code. I guess it has something to do with the buffer memory allocation regarding the image's m_pbComBufferByLevels array which was initialized like this: const BYTE* m_pbCompBufferByLevels[MAX_MIPLEVELS];

I think the other possible cause of this is some memory leak or trashing somewhere not here, idk about these. Maybe Im total wrong, but doesnt matter, these problems are beyond my cpp skills, so I would appreciate some hints about how to analyze it.

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.



Shoutbox

Shoutbox

Chatroom Rules

 

Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules

 

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