Difference between revisions of "Z malloc"

From Valve Developer Community
Jump to: navigation, search
Line 1: Line 1:
 
[[Category: Compile Errors]]
 
[[Category: Compile Errors]]
 
== z_malloc failed on allocation of xxx bytes ==
 
== z_malloc failed on allocation of xxx bytes ==
Another insufficient memory or misallocated memory error. Possible causes are many, including too little RAM & also by having a texture perpendicular to the face of the solid with WC. In one case it was a script that shifted models one button. Possible solutions are:
+
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 [https://developer.valvesoftware.com/wiki/Command_Line_Options Launch Options].
'''1.''' For memory telling the HL main engine how much memory to use with HL -heapsize # (1024 x number of meg is popular #) or HL -zone # in the shortcut.
 
 
 
'''2.''' For texture perpendicular go into WC/Hammer, then you can press alt + p, and select the problem if it is listed, and tell it to fix all of type; then try to compile again.
 
 
 
'''3.''' Or go thru the other errors on this page and try them as fixes. It CAN be frustrating! Sorry.
 

Revision as of 19:38, 15 March 2013

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.