16

After navigating through my iPAD application for a while I have noticed that the responsiveness of the app is getting slower and slower and finally my app crashes with the following error

    AppName(1779,0x3d12d18c) malloc: *** mach_vm_map(size=167936) failed (error code=3)
    *** error: can't allocate region
    *** set a breakpoint in malloc_error_break to debug
    Jan  7 11:34:30  AppName[1779] <Error>:   at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0xffffffff>
    Jan  7 11:34:30  AppName[1779] <Error>:   at MonoTouch.UIKit.UIApplication.Main (string[],string,string) <0x0012b>
    Jan  7 11:34:30  AppName[1779] <Error>:   at AppName.Application.Main (string[]) <0x0002f>
    Jan  7 11:34:30  AppName[1779] <Error>:   at (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff>

is this a memory related issue?

Loukas
  • 616
  • 1
  • 6
  • 22
  • sounds like you developed your app with mono. Either the problem is in the mono framework (good luck) or in your app and most likely you try to allocate too big a memory region – steve Jan 09 '14 at 06:32
  • the problem was in a third party component which was updating the UI throught a for loop that did calculations – Loukas Jan 15 '14 at 09:25
  • 1
    which 3rd party component? – João Nunes May 20 '14 at 09:34
  • It should probably not come as a huge surprise that memory _corruption_ can also cause this. I just got the same error in a C++ program running on OS X, well before it got around to allocating any significant amount of memory. Root cause in my case was a write off the end of a `std::vector`. – Hephaestus Mar 04 '19 at 21:27

1 Answers1

15

Yes, this is a memory issue: you ran out of memory.

I suggest you use Instruments to try to track down any memory leaks.

Rolf Bjarne Kvinge
  • 19,253
  • 2
  • 42
  • 86
  • I just got this same error message, but my app is only using 13 MB of memory (0.08% of available). – devios1 Feb 09 '16 at 18:12
  • Xcode has been acting *very* weirdly for me lately though. I hope this is a transient issue. – devios1 Feb 09 '16 at 18:28
  • I got same issue my app uses 13.6MB but app is crash on navigate and back multiple time from one view to another – DURGESH Feb 01 '17 at 04:24