Z malloc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
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 ==
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.
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 ==
== Possible solution ==
Use higher values for '''-heapsize #''' and '''-zone #''' in [https://developer.valvesoftware.com/wiki/Command_Line_Options Launch Options].
Use higher values for '''-heapsize #''' and '''-zone #''' in [[Command_Line_Options|Launch Options]].

Latest revision as of 11:45, 11 August 2023

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.