Jump to content
×
×
  • Create New...
  • 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 comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

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 comment
Share on other sites

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Metin2 Dev Github
  • Activity

    1. 0

      Extended memory pool

    2. 7

      Wear (use) item only on specific map

    3. 4

      Python tool for analyzing average yang drop per hour in each map.

    4. 162

      Plechito - Halloween 2022

    5. 0

      disable quest esc

    6. 7

      Wear (use) item only on specific map

    7. 7

      Wear (use) item only on specific map

    8. 7

      Wear (use) item only on specific map

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.