Malloc error “can't allocate region” failed with error code 12. Any idea how to resolve this?

前端 未结 3 2060
一个人的身影
一个人的身影 2020-12-08 15:11

i am getting this error and dont know what to do with that:

AppName(3786,0xa0810540) malloc: *** mmap(size=16777216) failed (error code=12)
*** error: can\'t         


        
3条回答
  •  半阙折子戏
    2020-12-08 15:43

    I had this issue due to a recursive call in a view controller's viewWillLayoutSubviews. I was invalidating the layout of a collection view causing an endless cycle of repeatedly laying out views.

提交回复
热议问题