ios - Memory Allocation Error - SKAction runBlock (malloc error) -


i getting memory error when attempting run action block, have googled few times , cannot work out wrong?

//[self newsquareat:location];  [self runaction:[skaction runblock:^{     [self newsquareat:location]; }]]; 

the uncommented line of code works ok , no error or memory allocation problems

yet when try run skaction, following error:

malloc: * mach_vm_map(size=1048576) failed (error code=3) * error: can't allocate region

please help

that malloc being unable allocate more memory. way ios works, suspect message if allocate lots of memory quickly, because message running out of memory.

run code under instruments , find out allocating tons of memory.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -