memory allocation of 4 bytes (for type i32) failed