[Crash] Error: Cannot perform malloc