CSBotEnabler icon indicating copy to clipboard operation
CSBotEnabler copied to clipboard

Crashing when preache certain spr

Open Skumek opened this issue 3 years ago • 0 comments

Crashes when i precache a certain sprite both with precache_model + fakemeta alternative in a certain map. Tried recompiling the sprite too.

Not working spr: Download sprite (Zippyshare)

Working spr: Download sprite (Zippyshare) Download sprite (Zippyshare)

  1. Doesnt crash if i disable this module.
  2. Only crashes on cs_havana.
  3. Doesnt crash if i change sprite to a lowres/lower size one.
  4. Tried both single frame + multi frame sprite. Still crash if its too large/highres.

MM ver: 1.21p38 AMXX ver: 1.9.0.5294

AMXX Code:

new const g_szMedkitSprite[] = "sprites/zr2/voodoo_heal_fix.spr";

public plugin_precache()
{
	g_iIDHealSpr = precache_model( g_szMedkitSprite );
}

Server commandline:

hlds.exe -console -game cstrike +port 27015 +sys_ticrate 10000 +heapsize 1048576 +maxplayers 32 +map cs_havana -bots -debug -condebug

Error in command window:

L 01/26/2023 - 20:40:43: FATAL ERROR (shutting down): Cache_TryAlloc: 5668880 is greater then free hunk FATAL ERROR (shutting down): Cache_TryAlloc: 5668880 is greater then free hunk src\tier1\fileio.cpp (5307) : m_vecRegisteredWriters.Count() == 0 src\tier1\fileio.cpp (5307) : m_vecRegisteredWriters.Count() == 0

Skumek avatar Jan 26 '23 20:01 Skumek