Note that there are some explanatory texts on larger screens.

plurals
  1. POApp crashing due to ASIHTTP framework
    primarykey
    data
    text
    <p>I am developing an iPhone application that is using ASIHTTP framework for rest web services. Somehow my application is crashing and am getting error like below</p> <pre><code>Application(1565,0x3b06318c) malloc: *** mach_vm_map(size=32768) failed (error code=3) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug </code></pre> <p>and the crash was occurring in the following code from ASIHTTPRequest class</p> <pre><code> CFRunLoopSourceContext context = {0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL}; CFRunLoopSourceRef source = CFRunLoopSourceCreate(kCFAllocatorDefault, 0, &amp;context); CFRunLoopAddSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode); BOOL runAlways = YES; // Introduced to cheat Static Analyzer while (runAlways) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; CFRunLoopRunInMode(kCFRunLoopDefaultMode, 1.0e10, true); [pool drain]; } // Should never be called, but anyway CFRunLoopRemoveSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode); CFRelease(source); </code></pre> <p>I Googled about this crash, and I read that it's a problem with a <code>memory allocator</code> and didn't get much information. Also, I analyzed and don't have any potential leaks. My application is ready to be submitted to the App Store also. Please help me. Thanks in advance.</p> <p>I found where the crash was happend. When the Other Process becomes to Zero KB In the Utilization Comparison then my application was crashing in the <code>CFRunLoopRunInMode(kCFRunLoopDefaultMode, 1.0e10, true);</code> line.</p> <p><img src="https://i.stack.imgur.com/XdsBx.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload