Z malloc

From Valve Developer Community
Jump to: navigation, search

z_malloc failed on allocation of xxx bytes

Z_Malloc is an exit error that occurs whenever an overflow in the engine exceeds a designated heap size for the game. The engine tries to render everything but overbounds itself on its allocated memory array, and disgracefully crashes.

Possible solution

Use higher values for -heapsize # and -zone # in Launch Options.