Benches Uncategorized

2

malloc: *** mmap(size=16777216) failed (error c...

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hi All,
I am writing a small game for iphone. It has about 18 levels. After running 8 levels or so It is giving following error

malloc: * mmap(size=16777216) failed (error code=12)
* error: can't allocate region
* set a breakpoint in mallocerrorbreak to debug

I have googled it but no luck at all. Any helper pointers will be greatly appreciated.

Thanks in Advance

- Ravi

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    ooftish.com wrote:
    I have googled it but no luck at all.

    When you search on these topics, you should delete the number strings/errors such as 16777216 - those are specific to you.

    As an example, googling: malloc: mmap(size=

    ...seems to find more than one thread that discusses this back in 2008.

  2. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Yup. It is a Memory Leak