Hello all,
After a few days, sometimes after a week from the start,
The living server sometimes shows the following fatal error and the server terminates.
Has anyone faced it? Any solutions to avoid it?
[Fatal Error]: Memory manager::memmgr_alloc failed (allocating 28+5422080 bytes at script.c:4050).
Script.c at line 4050 shows:
//
// Stack operations
//
/// Increases the size of the stack
static void stack_expand(struct script_stack *stack)
{
nullpo_retv(stack);
stack->sp_max += 64;
stack->stack_data = (struct script_data*)aRealloc(stack->stack_data,
LINE 4050 // stack->sp_max * sizeof(stack->stack_data[0]) );
memset(stack->stack_data + (stack->sp_max - 64), 0,
64 * sizeof(stack->stack_data[0]) );
}
After a few days, sometimes after a week from the start,
The living server sometimes shows the following fatal error and the server terminates.
Has anyone faced it? Any solutions to avoid it?
[Fatal Error]: Memory manager::memmgr_alloc failed (allocating 28+5422080 bytes at script.c:4050).
Script.c at line 4050 shows:
//
// Stack operations
//
/// Increases the size of the stack
static void stack_expand(struct script_stack *stack)
{
nullpo_retv(stack);
stack->sp_max += 64;
stack->stack_data = (struct script_data*)aRealloc(stack->stack_data,
LINE 4050 // stack->sp_max * sizeof(stack->stack_data[0]) );
memset(stack->stack_data + (stack->sp_max - 64), 0,
64 * sizeof(stack->stack_data[0]) );
}