thobbsinteractive / magic-carpet-2-hd

Recode Binary code of game Magic Carpet2 to C/C++ language(remake MC2 for any platform)
GNU General Public License v3.0
30 stars 4 forks source link

Game crash on level respawn in TextureMaps.cpp in resolutions above 640x480 #284

Open thobbsinteractive opened 3 months ago

thobbsinteractive commented 3 months ago

So the crash after death happens in 960x540. So it is not new.

Steps:

  1. start an advance level where it is easy to die,
  2. get killed
  3. wait a few seconds and hit spacebar to respawn
    • Repeat steps 2-3 until the crash. This might take a 5-6 attempts.

Notes: I could not reproduce it in 640x480 so it is related to resolution. It happens in sub_71F20 in TextureMaps.cpp. Address Sanitizer Error: Use of deallocated memory. Turning off Address Sanitization might skip the error, but really we should fix it