SIGTRAP error on iOS – AutoreleasePoolPage::busted - ios

Does anyone have any clue what's causing this crash?
It happens very rarely.
The crash reports are coming via HockeyApp from the device. I've not been able to reproduce it on the simulator.
Any ideas greatly appreciated.
Exception Type: SIGTRAP
Exception Codes: #0 at 0x197c73c10
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x0000000197c73c10 _objc_trap() + 0
1 libobjc.A.dylib 0x0000000197c73c80 _objc_fatal + 80
2 libobjc.A.dylib 0x0000000197c8e7fc (anonymous namespace)::AutoreleasePoolPage::busted(bool) + 140
3 libobjc.A.dylib 0x0000000197c8d54c (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 88
4 CoreFoundation 0x0000000187418f94 _CFAutoreleasePoolPop + 24
5 UIKit 0x000000018bcd8c28 _wrapRunLoopWithAutoreleasePoolHandler + 72
6 CoreFoundation 0x00000001874ee14c __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28
7 CoreFoundation 0x00000001874eb0d8 __CFRunLoopDoObservers + 356
8 CoreFoundation 0x00000001874eb4b8 __CFRunLoopRun + 832
9 CoreFoundation 0x00000001874191f4 CFRunLoopRunSpecific + 392
10 GraphicsServices 0x00000001905a75a4 GSEventRunModal + 164
11 UIKit 0x000000018bd4a784 UIApplicationMain + 1484
12 MyAppName 0x00000001001794d4 main (main.mm:15)
13 libdyld.dylib 0x00000001982e2a08 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x00000001983e0c94 kevent64 + 8
1 libdispatch.dylib 0x00000001982bb3b4 _dispatch_mgr_thread + 48
Thread 2:
0 libsystem_kernel.dylib 0x00000001983e0e7c mach_msg_trap + 8
1 CoreFoundation 0x00000001874ed5cc __CFRunLoopServiceMachPort + 196
2 CoreFoundation 0x00000001874eb520 __CFRunLoopRun + 936
3 CoreFoundation 0x00000001874191f4 CFRunLoopRunSpecific + 392
4 CFNetwork 0x0000000186f1d6a4 +[NSURLConnection(Loader) _resourceLoadLoop:] + 436
5 Foundation 0x0000000188405c0c __NSThread__main__ + 1068
6 libsystem_pthread.dylib 0x0000000198497e80 _pthread_body + 160
7 libsystem_pthread.dylib 0x0000000198497ddc _pthread_start + 156
8 libsystem_pthread.dylib 0x0000000198494fb0 thread_start + 0
Thread 3:
0 libsystem_kernel.dylib 0x00000001983fb498 __select + 8
1 libsystem_pthread.dylib 0x0000000198497e80 _pthread_body + 160
2 libsystem_pthread.dylib 0x0000000198497ddc _pthread_start + 156
3 libsystem_pthread.dylib 0x0000000198494fb0 thread_start + 0
Thread 4:
0 libsystem_kernel.dylib 0x00000001983fbc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000198494fa8 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x00000001983fbc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000198494fa8 start_wqthread + 0

I fixed this in the end by refactoring my code.
I had blocks that I was holding on to for a navigation menu – the idea being to just call the block when a menu button was tapped.
I refactored my navigation menu buttons to no longer rely on the blocks and these AutoreleasePoolPage::busted errors disappeared.

Strange crashes can happens when device have not enough available free memory.
This is usually different single crashes in absolutely different places.
Look attached screenshots with crash info from one of my apps
(I'm using Crashlytics for getting crash reports, it also shows information about free memory)

Related

iOS app weird crash in background

I need help.
I'm working on an old iOS app written in Objective-c. It was released in 2014 and now I have migrated the project to Xcode 8. After migration everything works as expected except weird crash when app is in background(not immediately but after some time). It's hard to debug because crash occurs only when device is disconnected from Xcode. I have checked device logs and it seems like it's core data crash:
Incident Identifier: BDD70C46-6573-44A7-85AB-620E6FBA207F
CrashReporter Key: c04f591f9e0cc9d1991ce10e33ebcabd56affbe6
Hardware Model: iPhone8,4
Process: myApp [17746]
Path: /private/var/containers/Bundle/Application/878DB803-1DA5-46D7-8B50-655D43A5C28D/myApp.app/myApp
Identifier: com.example.myApp
Version: 2 (1.0.2)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.example.myApp [16959]
Date/Time: 2017-09-19 14:34:57.1435 +0300
Launch Time: 2017-09-19 14:31:38.0853 +0300
OS Version: iPhone OS 10.3.3 (14G60)
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace <0xF>, Code 0x8badf00d
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: SQLQueue 0x100724310 for myApp.sqlite
Thread 0 Crashed:
0 libsqlite3.dylib 0x000000018f36d818 0x18f361000 + 51224
1 libsqlite3.dylib 0x000000018f36c9a4 0x18f361000 + 47524
2 libsqlite3.dylib 0x000000018f36c9a4 0x18f361000 + 47524
3 libsqlite3.dylib 0x000000018f36c2c4 0x18f361000 + 45764
4 libsqlite3.dylib 0x000000018f36bf24 0x18f361000 + 44836
5 CoreData 0x000000019113e0b0 -[NSSQLiteConnection prepareSQLStatement:] + 468
6 CoreData 0x000000019125f178 -[NSSQLiteConnection updateRow:forRequestContext:] + 492
7 CoreData 0x0000000191307f28 _writeChangesForSaveRequest + 1128
8 CoreData 0x0000000191309584 _executeSaveChangesRequest + 388
9 CoreData 0x00000001912ff5f0 -[NSSQLSaveChangesRequestContext executeRequestUsingConnection:] + 44
10 CoreData 0x00000001912170c4 __52-[NSSQLDefaultConnectionManager handleStoreRequest:]_block_invoke + 256
11 libdispatch.dylib 0x0000000100455a10 0x100454000 + 6672
12 libdispatch.dylib 0x00000001004625bc 0x100454000 + 58812
13 CoreData 0x0000000191216f64 -[NSSQLDefaultConnectionManager handleStoreRequest:] + 208
14 CoreData 0x00000001912d9824 -[NSSQLCoreDispatchManager routeStoreRequest:] + 272
15 CoreData 0x000000019124475c -[NSSQLCore dispatchRequest:withRetries:] + 236
16 CoreData 0x0000000191240578 -[NSSQLCore processSaveChanges:forContext:] + 200
17 CoreData 0x0000000191144f10 -[NSSQLCore executeRequest:withContext:error:] + 724
18 CoreData 0x000000019122384c __65-[NSPersistentStoreCoordinator executeRequest:withContext:error:]_block_invoke + 3492
19 CoreData 0x000000019121c0f0 -[NSPersistentStoreCoordinator _routeHeavyweightBlock:] + 276
20 CoreData 0x0000000191144adc -[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 408
21 CoreData 0x000000019116597c -[NSManagedObjectContext save:] + 2548
22 myApp 0x00000001000cd0dc 0x1000c0000 + 53468
23 myApp 0x00000001000cbc24 0x1000c0000 + 48164
24 CoreLocation 0x00000001970ee828 0x1970de000 + 67624
25 CoreLocation 0x00000001970edfcc 0x1970de000 + 65484
26 CoreLocation 0x00000001970e11d8 0x1970de000 + 12760
27 CoreFoundation 0x000000018ee1930c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20
28 CoreFoundation 0x000000018ee18b28 __CFRunLoopDoBlocks + 288
29 CoreFoundation 0x000000018ee16e1c __CFRunLoopRun + 1884
30 CoreFoundation 0x000000018ed46da4 CFRunLoopRunSpecific + 424
31 GraphicsServices 0x00000001907b1074 GSEventRunModal + 100
32 UIKit 0x0000000195001c9c UIApplicationMain + 208
33 myApp 0x00000001000e4574 0x1000c0000 + 148852
34 libdyld.dylib 0x000000018dd5559c start + 4
Thread 1 name: Dispatch queue: BKSProcessAssertionClient
Thread 1:
0 libsystem_kernel.dylib 0x000000018de47224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018de4709c mach_msg + 72
2 libdispatch.dylib 0x000000010046d37c 0x100454000 + 103292
3 libdispatch.dylib 0x000000010046d780 0x100454000 + 104320
4 libxpc.dylib 0x000000018df60edc xpc_connection_send_message_with_reply_sync + 196
5 BaseBoard 0x000000019095a944 -[BSXPCMessage sendSynchronouslyToConnection:error:] + 76
6 BaseBoard 0x0000000190957148 -[BSBaseXPCClient _sendMessage:withReplyHandler:waitForReply:waitDuration:] + 436
7 AssertionServices 0x00000001909a17c4 -[BKSProcessAssertionClient _assertionQueue_sendEvent:forMessageType:responseHandler:] + 136
8 AssertionServices 0x00000001909a0f78 -[BKSProcessAssertionClient sendCreateAssertion:] + 108
9 AssertionServices 0x00000001909a0968 -[BKSProcessAssertion _clientQueue_acquireAssertion] + 312
10 libdispatch.dylib 0x0000000100455a50 0x100454000 + 6736
11 libdispatch.dylib 0x0000000100455a10 0x100454000 + 6672
12 libdispatch.dylib 0x00000001004632e8 0x100454000 + 62184
13 libdispatch.dylib 0x0000000100459634 0x100454000 + 22068
14 libdispatch.dylib 0x0000000100465630 0x100454000 + 71216
15 libdispatch.dylib 0x000000010046539c 0x100454000 + 70556
16 libsystem_pthread.dylib 0x000000018df2b100 _pthread_wqthread + 1096
17 libsystem_pthread.dylib 0x000000018df2acac start_wqthread + 4
Thread 2 name: Dispatch queue: com.apple.CoreLocation.ConnectionClient.0x17013b6c0.events
Thread 2:
0 libsystem_kernel.dylib 0x000000018de47278 semaphore_timedwait_trap + 8
1 libdispatch.dylib 0x000000010047f238 0x100454000 + 176696
2 libdispatch.dylib 0x0000000100467db8 0x100454000 + 81336
3 CoreLocation 0x00000001970e1078 0x1970de000 + 12408
4 CoreLocation 0x00000001970e6118 0x1970de000 + 33048
5 CoreLocation 0x00000001970e5f18 0x1970de000 + 32536
6 CoreLocation 0x0000000197131e88 0x1970de000 + 343688
7 CoreLocation 0x000000019712e4f0 0x1970de000 + 328944
8 CoreLocation 0x000000019712e414 0x1970de000 + 328724
9 CoreLocation 0x000000019712fa80 0x1970de000 + 334464
10 libxpc.dylib 0x000000018df5f84c _xpc_connection_call_event_handler + 68
11 libxpc.dylib 0x000000018df5d358 _xpc_connection_mach_event + 1448
12 libdispatch.dylib 0x0000000100455ae0 0x100454000 + 6880
13 libdispatch.dylib 0x00000001004599d8 0x100454000 + 23000
14 libdispatch.dylib 0x0000000100463128 0x100454000 + 61736
15 libdispatch.dylib 0x0000000100458da0 0x100454000 + 19872
16 libdispatch.dylib 0x0000000100463128 0x100454000 + 61736
17 libdispatch.dylib 0x0000000100459634 0x100454000 + 22068
18 libdispatch.dylib 0x0000000100463128 0x100454000 + 61736
19 libdispatch.dylib 0x0000000100459634 0x100454000 + 22068
20 libdispatch.dylib 0x0000000100464358 0x100454000 + 66392
21 libdispatch.dylib 0x000000010046c57c 0x100454000 + 99708
22 libsystem_pthread.dylib 0x000000018df2afbc _pthread_wqthread + 772
23 libsystem_pthread.dylib 0x000000018df2acac start_wqthread + 4
Thread 3 name: com.apple.uikit.eventfetch-thread
Thread 3:
0 libsystem_kernel.dylib 0x000000018de47224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018de4709c mach_msg + 72
2 CoreFoundation 0x000000018ee18e90 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018ee16ae4 __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018ed46da4 CFRunLoopRunSpecific + 424
5 Foundation 0x000000018f861db4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x000000018f882b84 -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7 UIKit 0x000000019598b830 -[UIEventFetcher threadMain] + 136
8 Foundation 0x000000018f95f318 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x000000018df2d68c _pthread_body + 240
10 libsystem_pthread.dylib 0x000000018df2d59c _pthread_body + 0
11 libsystem_pthread.dylib 0x000000018df2acb4 thread_start + 4
Thread 4:
0 libsystem_pthread.dylib 0x000000018df2aca8 start_wqthread + 0
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x000000018de47224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018de4709c mach_msg + 72
2 CoreFoundation 0x000000018ee18e90 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018ee16ae4 __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018ed46da4 CFRunLoopRunSpecific + 424
5 CFNetwork 0x000000018f553df4 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404
6 Foundation 0x000000018f95f318 __NSThread__start__ + 996
7 libsystem_pthread.dylib 0x000000018df2d68c _pthread_body + 240
8 libsystem_pthread.dylib 0x000000018df2d59c _pthread_body + 0
9 libsystem_pthread.dylib 0x000000018df2acb4 thread_start + 4
Thread 6 name: GAIThread
Thread 6:
0 libsystem_kernel.dylib 0x000000018de47224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018de4709c mach_msg + 72
2 CoreFoundation 0x000000018ee18e90 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018ee16ae4 __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018ed46da4 CFRunLoopRunSpecific + 424
5 Foundation 0x000000018f861db4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x000000018f8b6704 -[NSRunLoop(NSRunLoop) run] + 88
7 myApp 0x0000000100120398 0x1000c0000 + 394136
8 Foundation 0x000000018f95f318 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x000000018df2d68c _pthread_body + 240
10 libsystem_pthread.dylib 0x000000018df2d59c _pthread_body + 0
11 libsystem_pthread.dylib 0x000000018df2acb4 thread_start + 4
Thread 7:
0 libsystem_pthread.dylib 0x000000018df2aca8 start_wqthread + 0
Thread 8:
0 libsystem_pthread.dylib 0x000000018df2aca8 start_wqthread + 0
But in major cases crash report looks like:
Incident Identifier: D5D6C3C6-7EB7-4E2C-901C-7203943BD722
CrashReporter Key: c04f591f9e0cc9d1991ce10e33ebcabd56affbe6
Hardware Model: iPhone8,4
Process: myApp [17444]
Path: /private/var/containers/Bundle/Application/93AB2A15-0C65-47D5-BE24-FB298DC396E0/myApp.app/myApp
Identifier: com.example.myApp
Version: 2 (1.0.2)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.example.myApp [16449]
Date/Time: 2017-09-19 12:41:45.3051 +0300
Launch Time: 2017-09-19 12:24:22.7861 +0300
OS Version: iPhone OS 10.3.3 (14G60)
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace <0xF>, Code 0x8badf00d
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000018de47224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018de4709c mach_msg + 72
2 CoreFoundation 0x000000018ee18e90 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018ee16ae4 __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018ed46da4 CFRunLoopRunSpecific + 424
5 GraphicsServices 0x00000001907b1074 GSEventRunModal + 100
6 UIKit 0x0000000195001c9c UIApplicationMain + 208
7 myApp 0x0000000100031bb8 0x10000c000 + 154552
8 libdyld.dylib 0x000000018dd5559c start + 4
Thread 1 name: com.apple.uikit.eventfetch-thread
Thread 1:
0 libsystem_kernel.dylib 0x000000018de47224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018de4709c mach_msg + 72
2 CoreFoundation 0x000000018ee18e90 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018ee16ae4 __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018ed46da4 CFRunLoopRunSpecific + 424
5 Foundation 0x000000018f861db4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x000000018f882b84 -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7 UIKit 0x000000019598b830 -[UIEventFetcher threadMain] + 136
8 Foundation 0x000000018f95f318 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x000000018df2d68c _pthread_body + 240
10 libsystem_pthread.dylib 0x000000018df2d59c _pthread_body + 0
11 libsystem_pthread.dylib 0x000000018df2acb4 thread_start + 4
Thread 2 name: com.twitter.crashlytics.ios.MachExceptionServer
Thread 2:
0 libsystem_kernel.dylib 0x000000018de47224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018de4709c mach_msg + 72
2 myApp 0x000000010008d6a0 0x10000c000 + 530080
3 libsystem_pthread.dylib 0x000000018df2d68c _pthread_body + 240
4 libsystem_pthread.dylib 0x000000018df2d59c _pthread_body + 0
5 libsystem_pthread.dylib 0x000000018df2acb4 thread_start + 4
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x000000018de47224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018de4709c mach_msg + 72
2 CoreFoundation 0x000000018ee18e90 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018ee16ae4 __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018ed46da4 CFRunLoopRunSpecific + 424
5 CFNetwork 0x000000018f553df4 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404
6 Foundation 0x000000018f95f318 __NSThread__start__ + 996
7 libsystem_pthread.dylib 0x000000018df2d68c _pthread_body + 240
8 libsystem_pthread.dylib 0x000000018df2d59c _pthread_body + 0
9 libsystem_pthread.dylib 0x000000018df2acb4 thread_start + 4
Thread 4 name: GAIThread
Thread 4:
0 libsystem_kernel.dylib 0x000000018de47224 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x000000018de4709c mach_msg + 72
2 CoreFoundation 0x000000018ee18e90 __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x000000018ee16ae4 __CFRunLoopRun + 1060
4 CoreFoundation 0x000000018ed46da4 CFRunLoopRunSpecific + 424
5 Foundation 0x000000018f861db4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x000000018f8b6704 -[NSRunLoop(NSRunLoop) run] + 88
7 myApp 0x000000010006d9dc 0x10000c000 + 399836
8 Foundation 0x000000018f95f318 __NSThread__start__ + 996
9 libsystem_pthread.dylib 0x000000018df2d68c _pthread_body + 240
10 libsystem_pthread.dylib 0x000000018df2d59c _pthread_body + 0
11 libsystem_pthread.dylib 0x000000018df2acb4 thread_start + 4
Thread 5:
0 libsystem_pthread.dylib 0x000000018df2aca8 start_wqthread + 0
Thread 6:
0 libsystem_pthread.dylib 0x000000018df2aca8 start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x000000018df2aca8 start_wqthread + 0
Thread 8:
0 libsystem_pthread.dylib 0x000000018df2aca8 start_wqthread + 0
Thread 9:
0 libsystem_pthread.dylib 0x000000018df2aca8 start_wqthread + 0
Maybe someone had a similar issue and have some suggestions?
One thing that's odd is that you say this happens in the background, but the crashes are happening when the app is in the foreground as far as the system is concerned:
Role: Foreground
So, that's confusing.
Just wild guessing, I'd look at things like memory corruption/using released objects (especially if this is non-ARC code), async code like networking requests or timer callbacks jumping into released code, doing things like UI on a thread that's not the main thread (if you can run under Xcode 9, the runtime thread diagnostics will help a lot with this.) Even with Xc8, look at your project's scheme and the memory debugging options available under the Run configuration. Those could help.
Check out the running system log on the device. You don't need to be debugging with Xcode to see that. Just go to the Devices window and the system console will be near the bottom. You may need to reveal it. That system log may give a clue.
If you're using manual retain/release, double check any code that gets hit in the time frame of the crash. Keep in mind that those types of crashes happen after the problem occurs, so where you see the crash may have little bearing on where the actual problem is, and the crash location may fluctuate, especially on different devices.
Maybe diff the pre-Xcode 8 code and the current code to double-check any changes you've made. My guess is that you introduced a memory issue when updating the code for Xcode 8.
UPDATE:
Sorry, just noticed the termination reason.
This may help:
The exception code 0x8badf00d indicates that an application has been
terminated by iOS because a watchdog timeout occurred. The application
took too long to launch, terminate, or respond to system events. One
common cause of this is doing synchronous networking on the main
thread. Whatever operation is on Thread 0: needs to be moved to a
background thread, or processed differently, so that it does not block
the main thread.
Make sure as you're going into the background you're not doing anything that will take a long time, use a background task if needed, and don't do anything like OpenGL calls from the background. Since the crash report says you're in the Foreground, I wonder if you're taking too long going into the background and Springboard is killing your app. The system log will confirm that.

Resolving iOS app crash in distribution build

I have submitted an app to the app store, and after the review, the app has been rejected. This is the explanation sent by Apple:
Specifically, after downloading the latest version submitted for review, Version 2.1, we found that when the user taps on the map icon, the app still crashes.
This occurred when your app was used:
- Offline
- On Wi-Fi
- On cellular network
I am not able to detect the issue then during development and testing the app on the emulator and on a real device, the app doesn't crash.
This is the first part of the crash report:
{"app_name":"mujergrancanaria","app_version":"2.0","bundleID":"com.solinpromex.casadelajuventud","adam_id":946142349,"os_version":"iPhone OS 8.1 (12B410)","slice_uuid":"601d3ebb-53d8-39ff-8766-badaadb4f776","share_with_app_devs":false,"build_version":"2.1","is_first_party":false,"bug_type":"109","name":"mujergrancanaria"}
Incident Identifier: 02C4277A-3657-4CFF-9A5D-8A3B34E1ACE4
CrashReporter Key: 34094a2f9cf3e1e29a81d365a85a102af46a1edc
Hardware Model: xxx
Process: mujergrancanaria [4557]
Path: /private/var/mobile/Containers/Bundle/Application/67EFD456-E179-4049-B1A6-FBBF6D6144E4/mujergrancanaria.app/mujergrancanaria
Identifier: com.solinpromex.casadelajuventud
Version: 2.1 (2.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2015-01-09 14:46:52.869 -0800
Launch Time: 2015-01-09 14:46:38.934 -0800
OS Version: iOS 8.1 (12B410)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
(0x186b85e48 0x1977d40e4 0x186b8cf14 0x186b89cc4 0x186a8ec1c 0x10025f1bc 0x10025dc38 0x10025d03c 0x10025ced4 0x1000eb240 0x18b334e84 0x18b334b94 0x18b4d7ad4 0x18b3e9310 0x18b3e90dc 0x18b3e905c 0x18b331a2c 0x18ac89994 0x18ac84564 0x18ac84408 0x18ac83c08 0x18ac8398c 0x18b333948 0x186b3e0e8 0x186b3d38c 0x186b3b43c 0x186a691f4 0x18fbe35a4 0x18b39a784 0x1000d2a40 0x197e42a08)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000197f5b270 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000197ff9224 pthread_kill + 108
2 libsystem_c.dylib 0x0000000197ed2b14 abort + 108
3 libc++abi.dylib 0x0000000196fa5414 abort_message + 112
4 libc++abi.dylib 0x0000000196fc4b88 default_terminate_handler() + 300
5 libobjc.A.dylib 0x00000001977d43bc _objc_terminate() + 124
6 libc++abi.dylib 0x0000000196fc1bb0 std::__terminate(void (*)()) + 12
7 libc++abi.dylib 0x0000000196fc1474 __cxa_throw + 132
8 libobjc.A.dylib 0x00000001977d4200 objc_exception_throw + 344
9 CoreFoundation 0x0000000186b8cf10 -[NSObject(NSObject) doesNotRecognizeSelector:] + 216
10 CoreFoundation 0x0000000186b89cc0 ___forwarding___ + 924
11 CoreFoundation 0x0000000186a8ec18 _CF_forwarding_prep_0 + 88
12 mujergrancanaria 0x000000010025f1b8 0x1000ac000 + 1782200
13 mujergrancanaria 0x000000010025dc34 0x1000ac000 + 1776692
14 mujergrancanaria 0x000000010025d038 0x1000ac000 + 1773624
15 mujergrancanaria 0x000000010025ced0 0x1000ac000 + 1773264
16 mujergrancanaria 0x00000001000eb23c 0x1000ac000 + 258620
17 UIKit 0x000000018b334e80 -[UIViewController loadViewIfRequired] + 688
18 UIKit 0x000000018b334b90 -[UIViewController view] + 28
19 UIKit 0x000000018b4d7ad0 -[UINavigationController _startCustomTransition:] + 708
20 UIKit 0x000000018b3e930c -[UINavigationController _startDeferredTransitionIfNeeded:] + 464
21 UIKit 0x000000018b3e90d8 -[UINavigationController __viewWillLayoutSubviews] + 52
22 UIKit 0x000000018b3e9058 -[UILayoutContainerView layoutSubviews] + 196
23 UIKit 0x000000018b331a28 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 568
24 QuartzCore 0x000000018ac89990 -[CALayer layoutSublayers] + 164
25 QuartzCore 0x000000018ac84560 CA::Layer::layout_if_needed(CA::Transaction*) + 316
26 QuartzCore 0x000000018ac84404 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 28
27 QuartzCore 0x000000018ac83c04 CA::Context::commit_transaction(CA::Transaction*) + 272
28 QuartzCore 0x000000018ac83988 CA::Transaction::commit() + 432
29 UIKit 0x000000018b333944 _UIApplicationHandleEventQueue + 1696
30 CoreFoundation 0x0000000186b3e0e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 20
31 CoreFoundation 0x0000000186b3d388 __CFRunLoopDoSources0 + 260
32 CoreFoundation 0x0000000186b3b438 __CFRunLoopRun + 708
33 CoreFoundation 0x0000000186a691f0 CFRunLoopRunSpecific + 392
34 GraphicsServices 0x000000018fbe35a0 GSEventRunModal + 164
35 UIKit 0x000000018b39a780 UIApplicationMain + 1484
36 mujergrancanaria 0x00000001000d2a3c 0x1000ac000 + 158268
37 libdyld.dylib 0x0000000197e42a04 start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x0000000197f40c94 kevent64 + 8
1 libdispatch.dylib 0x0000000197e2897c _dispatch_mgr_invoke + 272
2 libdispatch.dylib 0x0000000197e1b3b0 _dispatch_mgr_thread + 48
Thread 2:
0 libsystem_kernel.dylib 0x0000000197f5bc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197ff5390 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000197ff4fa4 start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x0000000197f5bc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197ff5390 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000197ff4fa4 start_wqthread + 0
Thread 4:
0 libsystem_kernel.dylib 0x0000000197f5bc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197ff5390 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000197ff4fa4 start_wqthread + 0
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x0000000197f40e7c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000197f40cf4 mach_msg + 68
2 CoreFoundation 0x0000000186b3d5c8 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000186b3b51c __CFRunLoopRun + 936
4 CoreFoundation 0x0000000186a691f0 CFRunLoopRunSpecific + 392
5 CFNetwork 0x000000018656d6a0 +[NSURLConnection(Loader) _resourceLoadLoop:] + 436
6 Foundation 0x0000000187a55c08 __NSThread__main__ + 1068
7 libsystem_pthread.dylib 0x0000000197ff7e7c _pthread_body + 160
8 libsystem_pthread.dylib 0x0000000197ff7dd8 _pthread_start + 156
9 libsystem_pthread.dylib 0x0000000197ff4fac thread_start + 0
Thread 6:
0 libsystem_kernel.dylib 0x0000000197f5bc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197ff5390 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000197ff4fa4 start_wqthread + 0
Thread 7 name: com.apple.CFSocket.private
Thread 7:
0 libsystem_kernel.dylib 0x0000000197f5b498 __select + 8
1 CoreFoundation 0x0000000186b42fc0 __CFSocketManager + 656
2 libsystem_pthread.dylib 0x0000000197ff7e7c _pthread_body + 160
3 libsystem_pthread.dylib 0x0000000197ff7dd8 _pthread_start + 156
4 libsystem_pthread.dylib 0x0000000197ff4fac thread_start + 0
Thread 8:
0 libsystem_kernel.dylib 0x0000000197f5bc78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197ff5390 _pthread_wqthread + 988
2 libsystem_pthread.dylib 0x0000000197ff4fa4 start_wqthread + 0
I am unable to find where to begin to find out the crash source. Please, any clue is welcome.
You are going to want to symbolicate your crash log. In your code this is where the crash is happening
12 mujergrancanaria 0x000000010025f1b8 0x1000ac000 + 1782200
There are a number of posts about how to symbolicate this so that you can know which file and line that crash is happening on. Generally all you need to do is open Xcode, then open Devices (from the menu), then select a real device, click on view device logs, and then drag your log into the list. Xcode will automatically find the binary and dsym file from when you created the archive (assuming this is the same machine you build the archive on). If that doesn't work look at this Symbolicating iPhone App Crash Reports
Ok so, it's map related and review team are in Palo Alto California I think (correct me if I'm wrong).
So I would definitly start by testing with location set in simulator in Palo Alto.
Next, the log.
A big part is redacted
12 mujergrancanaria 0x000000010025f1b8 0x1000ac000 + 1782200
13 mujergrancanaria 0x000000010025dc34 0x1000ac000 + 1776692
14 mujergrancanaria 0x000000010025d038 0x1000ac000 + 1773624
15 mujergrancanaria 0x000000010025ced0 0x1000ac000 + 1773264
16 mujergrancanaria 0x00000001000eb23c 0x1000ac000 + 258620
Meaning you need to put it in Xcode or another tool where you can use the DSym (symbole file created during archiving of the app) to exploit it.
Without it what I can tell you is that this line in the stack :
-[NSObject(NSObject) doesNotRecognizeSelector:]
Means your are calling a non existing method on an object.
The app crash reason was a missing flag in the Other Linker Flags section. The app includes the Google Maps SDK for iOS, and the flag -ObjC is needed. I had it only at the Debug Build section. Adding the flag -ObjC also in the Release Build section solves the problem, and the app doesn't crash any more when launching the Distribution file...

Iphone Restarts after relaunching the app from background

I relaunches the ios app from bacground to foreground - iphone restarts and says backbaordd crash
Please find the below crash logs for your reference
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000001
Triggered by Thread: 5
Thread 0:
0 libsystem_kernel.dylib 0x0000000192a7dca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000185e5ed20 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000185e5cf14 __CFRunLoopRun + 932
3 CoreFoundation 0x0000000185d9ddcc CFRunLoopRunSpecific + 448
4 backboardd 0x00000001000e7a60 0x1000e0000 + 31328
5 libdyld.dylib 0x000000019299ba9c start + 0
Thread 1:
0 libsystem_kernel.dylib 0x0000000192a7daa8 kevent64 + 8
1 libdispatch.dylib 0x0000000192981998 _dispatch_mgr_thread + 48
Thread 2 name: com.apple.CoreAnimation.render-server
Thread 2:
0 libsystem_kernel.dylib 0x0000000192a7dca0 mach_msg_trap + 8
1 QuartzCore 0x0000000188b02a18 CA::Render::Server::server_thread(void*) + 236
2 QuartzCore 0x0000000188b9422c thread_fun + 24
3 libsystem_pthread.dylib 0x0000000192b17e18 _pthread_body + 164
4 libsystem_pthread.dylib 0x0000000192b17d70 _pthread_start + 136
5 libsystem_pthread.dylib 0x0000000192b15550 thread_start + 0
Thread 3:
0 libsystem_kernel.dylib 0x0000000192a7dca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000185e5ed20 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000185e5ceb0 __CFRunLoopRun + 832
3 CoreFoundation 0x0000000185d9ddcc CFRunLoopRunSpecific + 448
4 CoreFoundation 0x0000000185df3454 CFRunLoopRun + 108
5 IOMobileFramebuffer 0x000000018bf3e484 iomfb_runloop_thread + 312
6 libsystem_pthread.dylib 0x0000000192b17e18 _pthread_body + 164
7 libsystem_pthread.dylib 0x0000000192b17d70 _pthread_start + 136
8 libsystem_pthread.dylib 0x0000000192b15550 thread_start + 0
Thread 4 name: com.apple.CoreAnimation.IOMFB.wireless
Thread 4:
0 libsystem_kernel.dylib 0x0000000192a7dca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000185e5ed20 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000185e5ceb0 __CFRunLoopRun + 832
3 CoreFoundation 0x0000000185d9ddcc CFRunLoopRunSpecific + 448
4 CoreFoundation 0x0000000185df3454 CFRunLoopRun + 108
5 QuartzCore 0x0000000188b58a20 CA::WindowServer::IOMFBServer::thread_body(void*) + 344
6 QuartzCore 0x0000000188b9422c thread_fun + 24
7 libsystem_pthread.dylib 0x0000000192b17e18 _pthread_body + 164
8 libsystem_pthread.dylib 0x0000000192b17d70 _pthread_start + 136
9 libsystem_pthread.dylib 0x0000000192b15550 thread_start + 0
Thread 5 name: com.apple.CoreAnimation.IOMFB.primary
Thread 5 Crashed:
0 libGPUSupportMercury.dylib 0x000000018b658694 gpus_ReturnContextErrorKillClient + 12
1 AGXGLDriver 0x0000000184a77248 SubmitPackets + 196
2 AGXGLDriver 0x0000000184a6c3a0 glrSetPrivateInteger + 284
3 GLEngine 0x000000018870427c gliSetInteger + 4592
4 OpenGLES 0x00000001887f11e8 -[EAGLContext swapNotification:forTransaction:onLayer:] + 152
5 QuartzCore 0x0000000188b562c0 CA::WindowServer::IOMFBDisplay::finish_update(CA::Render::Update*, unsigned int) + 1348
6 QuartzCore 0x0000000188b5c0a8 CA::WindowServer::Server::render_for_time(double, CVTimeStamp const*) + 1536
7 QuartzCore 0x0000000188b58bf4 CA::WindowServer::IOMFBServer::vsync_callback(__IOMobileFramebuffer*, unsigned long long, unsigned long long, unsigned long long, void*) + 220
8 IOKit 0x0000000186d9fe70 IODispatchCalloutFromCFMessage + 360
9 CoreFoundation 0x0000000185e50a8c __CFMachPortPerform + 188
10 CoreFoundation 0x0000000185e5f03c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
11 CoreFoundation 0x0000000185e5ef9c __CFRunLoopDoSource1 + 440
12 CoreFoundation 0x0000000185e5d1c0 __CFRunLoopRun + 1616
13 CoreFoundation 0x0000000185d9ddcc CFRunLoopRunSpecific + 448
14 CoreFoundation 0x0000000185df3454 CFRunLoopRun + 108
15 QuartzCore 0x0000000188b58a20 CA::WindowServer::IOMFBServer::thread_body(void*) + 344
16 QuartzCore 0x0000000188b9422c thread_fun + 24
17 libsystem_pthread.dylib 0x0000000192b17e18 _pthread_body + 164
18 libsystem_pthread.dylib 0x0000000192b17d70 _pthread_start + 136
19 libsystem_pthread.dylib 0x0000000192b15550 thread_start + 0
Thread 6 name: IOHIDService - RunLoopCompatibilityThread
Thread 6:
0 libsystem_kernel.dylib 0x0000000192a7dca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000185e5ed20 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000185e5ceb0 __CFRunLoopRun + 832
3 CoreFoundation 0x0000000185d9ddcc CFRunLoopRunSpecific + 448
4 CoreFoundation 0x0000000185df3454 CFRunLoopRun + 108
5 IOKit 0x0000000186dc23bc __IOHIDServiceRunLoopCompatibilityThread + 184
6 libsystem_pthread.dylib 0x0000000192b17e18 _pthread_body + 164
7 libsystem_pthread.dylib 0x0000000192b17d70 _pthread_start + 136
8 libsystem_pthread.dylib 0x0000000192b15550 thread_start + 0
Totally what causes this issue and also kindly suggest me how to debug this issue..
Your app gets terminated by the ios for any one of the reason below,
High memory usage or the springboard crashes( springboard is application that manages the other applications like home screen, app icon etc).
Testing your application in jail broken devices.
Try to pause your animation stuff while resigning the application and resume them while user entering back to the application. Something like this,
- (void)applicationWillResignActive:(UIApplication *)application
{
// pause sprite kit
SKView *view = (SKView *)self.window.rootViewController.view;
view.paused = YES;
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
// resume sprite kit
SKView *view = (SKView *)self.window.rootViewController.view;
view.paused = NO;
}
Do you use OpenGL? Or some kind of framework, that works with camera.
Rendering surfaces is forbidden in background.
Try to handle background/foreground state changes to pause/resume rendering.
You can user UIApplicationDidEnterBackgroundNotification and UIApplicationWillEnterForegroundNotification for this.

Rejected app because App crashed when attempted to download one of the In-App Purchases

I am trying to release my new App Version with In App Purchases but Apple rejected it twice with the following issue:
Your app crashed when we:
Attempted to download one of the In-App Purchases.
This occurred when your app was used:
- Offline
- On Wi-Fi
They sent me two Crash Logs which gives the following issues:
The first crash log:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Subtype: EXC_ARM_SP_ALIGN at 0x000000013fd4582e
Highlighted Thread: 1
Thread 0 name: Dispatch queue: com.apple.libdispatch-manager
Thread 0:
0 libsystem_kernel.dylib 0x0000000197071aa8 kevent64 + 8
1 libdispatch.dylib 0x0000000196f75998 _dispatch_mgr_thread + 48
Thread 1 name: com.apple.NSURLConnectionLoader
Thread 1:
0 libsystem_kernel.dylib 0x0000000197071ca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000189f7eb70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000189f7cd00 __CFRunLoopRun + 832
3 CoreFoundation 0x0000000189ebdc1c CFRunLoopRunSpecific + 448
4 Foundation 0x000000018aab2424 +[NSURLConnection(Loader) _resourceLoadLoop:] + 344
5 Foundation 0x000000018ab40408 __NSThread__main__ + 996
6 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
7 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
8 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 2 name: com.apple.CFSocket.private
Thread 2:
0 libsystem_kernel.dylib 0x000000019708a76c __select + 8
1 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
2 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
3 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 3:
0 libsystem_kernel.dylib 0x0000000197071ca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000189f7eb70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000189f7cd00 __CFRunLoopRun + 832
3 CoreFoundation 0x0000000189ebdc1c CFRunLoopRunSpecific + 448
4 CoreFoundation 0x0000000189f132a4 CFRunLoopRun + 108
5 CoreMotion 0x000000018a676538 0x18a638000 + 255288
6 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
7 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
8 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 4:
0 libsystem_kernel.dylib 0x000000019708ae74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197109548 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x000000019708ae74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197109548 start_wqthread + 0
Thread 6:
0 libsystem_kernel.dylib 0x000000019708ae74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197109548 start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x000000019708ae74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197109548 start_wqthread + 0
and the second one:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000000013fefffb0
Highlighted Thread: 1
Thread 0 name: Dispatch queue: com.apple.libdispatch-manager
Thread 0:
0 libsystem_kernel.dylib 0x0000000197071aa8 kevent64 + 8
1 libdispatch.dylib 0x0000000196f75998 _dispatch_mgr_thread + 48
Thread 1 name: com.apple.NSURLConnectionLoader
Thread 1:
0 libsystem_kernel.dylib 0x0000000197071ca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000189f7eb70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000189f7cd00 __CFRunLoopRun + 832
3 CoreFoundation 0x0000000189ebdc1c CFRunLoopRunSpecific + 448
4 Foundation 0x000000018aab2424 +[NSURLConnection(Loader) _resourceLoadLoop:] + 344
5 Foundation 0x000000018ab40408 __NSThread__main__ + 996
6 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
7 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
8 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 2 name: com.apple.CFSocket.private
Thread 2:
0 libsystem_kernel.dylib 0x000000019708a76c __select + 8
1 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
2 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
3 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x0000000197071ca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000189f7eb70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000189f7cd00 __CFRunLoopRun + 832
3 CoreFoundation 0x0000000189ebdc1c CFRunLoopRunSpecific + 448
4 WebCore 0x0000000193aabfd8 RunWebThread(void*) + 468
5 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
6 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
7 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 4 name: JavaScriptCore::BlockFree
Thread 4:
0 libsystem_kernel.dylib 0x000000019708a394 __psynch_cvwait + 8
1 JavaScriptCore 0x000000018b1a6858 JSC::BlockAllocator::blockFreeingThreadMain() + 248
2 JavaScriptCore 0x000000018b1a2330 WTF::wtfThreadEntryPoint(void*) + 20
3 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
4 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
5 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 5 name: JavaScriptCore::Marking
Thread 5:
0 libsystem_kernel.dylib 0x000000019708a394 __psynch_cvwait + 8
1 JavaScriptCore 0x000000018b3ce514 JSC::GCThread::waitForNextPhase() + 104
2 JavaScriptCore 0x000000018b3ce5a8 JSC::GCThread::gcThreadMain() + 88
3 JavaScriptCore 0x000000018b1a2330 WTF::wtfThreadEntryPoint(void*) + 20
4 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
5 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
6 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 6:
0 libsystem_kernel.dylib 0x000000019708ae74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197109548 start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x0000000197071ca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000189f7eb70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000189f7cd00 __CFRunLoopRun + 832
3 CoreFoundation 0x0000000189ebdc1c CFRunLoopRunSpecific + 448
4 libAVFAudio.dylib 0x0000000188d5d5ec GenericRunLoopThread::Entry(void*) + 156
5 libAVFAudio.dylib 0x0000000188d5201c CAPThread::Entry(CAPThread*) + 100
6 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
7 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
8 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 8:
0 libsystem_kernel.dylib 0x0000000197071ca0 mach_msg_trap + 8
1 CoreFoundation 0x0000000189f7eb70 __CFRunLoopServiceMachPort + 180
2 CoreFoundation 0x0000000189f7cd00 __CFRunLoopRun + 832
3 CoreFoundation 0x0000000189ebdc1c CFRunLoopRunSpecific + 448
4 CoreFoundation 0x0000000189f132a4 CFRunLoopRun + 108
5 CoreMotion 0x000000018a676538 0x18a638000 + 255288
6 libsystem_pthread.dylib 0x000000019710be18 _pthread_body + 164
7 libsystem_pthread.dylib 0x000000019710bd70 _pthread_start + 136
8 libsystem_pthread.dylib 0x0000000197109550 thread_start + 0
Thread 9:
0 libsystem_kernel.dylib 0x000000019708ae74 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000197109548 start_wqthread + 0
My app works fine in three devices i have tested it (iPhone 4, iPhone5, and iPad), it doesn't crash and i can purchase In Apps without any problem. My app responds to network reachability, so i have tested it when device is in offline mode, Wi-Fi only and when reachability changes while user is purchasing the InApp's. I have read and tried to analyze these crash logs, i have also checked for memory leaks with Allocations and Leaks and for low memory warnings with Zombies in Xcode Instruments but i can't seem to find anything wrong with my code.
Can you please give me a little help about what should i do and where should i look more carefully?
Have you tried to test with a newly created sandbox account?

iOS 7 crash due to EXC_BAD_ACCESS (SIGSEGV). Can anybody help me to understand the crash report?

I am getting weird crash in my application running in iOS 7 but in iOS 6 app is working fine. I am performing some operations. After 5-6 operations are completed I am experiencing this crash. This number can go till 20 also or 1 also. Attaching crash log with this.
Incident Identifier: 6702CA20-9832-4305-B723-588C6B33C199
CrashReporter Key: 0370a1a51d424d34102c66389c6b00b12585aa57
Hardware Model: iPad2,5
Process: mobile [2958]
Path:
Identifier:
Version: 2.0.0.401
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-06-02 13:35:50.243 +0530
OS Version: iOS 7.0.6 (11B651)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0xef264ee9
Triggered by Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x3af9eb22 objc_msgSend + 2
1 UIFoundation 0x38384d5e -[NSParagraphStyle _deallocExtraData] + 54
2 UIFoundation 0x383858ca -[NSParagraphStyle dealloc] + 22
3 CoreFoundation 0x3073d650 CFRelease + 552
4 CoreFoundation 0x30749a1e -[__NSDictionaryM dealloc] + 130
5 libobjc.A.dylib 0x3afaeb06 objc_object::sidetable_release(bool) + 170
6 UIKit 0x3304be68 -[UILabel dealloc] + 116
7 UIKit 0x32f80402 -[UIView dealloc] + 362
8 UIKit 0x3305223a -[UIScrollView dealloc] + 830
9 UIKit 0x33051cb4 -[UIScrollView removeFromSuperview] + 60
10 UIKit 0x32f80402 -[UIView dealloc] + 362
11 UIKit 0x33199088 -[_UIModalItemContentView dealloc] + 116
12 UIKit 0x3323d432 -[_UIModalItemAlertContentView dealloc] + 70
13 libobjc.A.dylib 0x3afa0002 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 354
14 CoreFoundation 0x3074097c _CFAutoreleasePoolPop + 12
15 CoreFoundation 0x307d80dc __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
16 CoreFoundation 0x307d7cf2 __CFRunLoopDoTimer + 778
17 CoreFoundation 0x307d608e __CFRunLoopRun + 1206
18 CoreFoundation 0x30740c22 CFRunLoopRunSpecific + 518
19 CoreFoundation 0x30740a06 CFRunLoopRunInMode + 102
20 GraphicsServices 0x3543427e GSEventRunModal + 134
21 UIKit 0x32fe4044 UIApplicationMain + 1132
22 mobile 0x0005d2c2 main (main.m:15)
23 libdyld.dylib 0x3b4abab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x3b54f83c kevent64 + 24
1 libdispatch.dylib 0x3b490210 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3b48ff96 _dispatch_mgr_thread$VARIANT$mp + 34
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x3b54fa8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b54f888 mach_msg + 44
2 CoreFoundation 0x307d77be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x307d5ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x30740c22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x30740a06 CFRunLoopRunInMode + 102
6 WebCore 0x3894e266 RunWebThread(void*) + 414
7 libsystem_pthread.dylib 0x3b5cac1a _pthread_body + 138
8 libsystem_pthread.dylib 0x3b5cab8a _pthread_start + 98
9 libsystem_pthread.dylib 0x3b5c8c8c thread_start + 4
Thread 3:
0 libsystem_kernel.dylib 0x3b54fa8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b54f888 mach_msg + 44
2 CoreFoundation 0x307d77be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x307d5ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x30740c22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x30740a06 CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x2f7c3584 GenericRunLoopThread::Entry(void*) + 124
7 libAVFAudio.dylib 0x2f7b799c CAPThread::Entry(CAPThread*) + 176
8 libsystem_pthread.dylib 0x3b5cac1a _pthread_body + 138
9 libsystem_pthread.dylib 0x3b5cab8a _pthread_start + 98
10 libsystem_pthread.dylib 0x3b5c8c8c thread_start + 4
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x3b562440 __select + 20
1 CoreFoundation 0x307db680 __CFSocketManager + 480
2 libsystem_pthread.dylib 0x3b5cac1a _pthread_body + 138
3 libsystem_pthread.dylib 0x3b5cab8a _pthread_start + 98
4 libsystem_pthread.dylib 0x3b5c8c8c thread_start + 4
Thread 5 name: GCDAsyncSocket-CFStream
Thread 5:
0 libsystem_kernel.dylib 0x3b54fa8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b54f888 mach_msg + 44
2 CoreFoundation 0x307d77be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x307d5ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x30740c22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x30740a06 CFRunLoopRunInMode + 102
6 Foundation 0x3112e3d6 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x3117f30c -[NSRunLoop(NSRunLoop) run] + 76
8 mobile 0x000f6228 +[GCDAsyncSocket cfstreamThread] (GCDAsyncSocket.m:6741)
9 Foundation 0x311f0c82 __NSThread__main__ + 1058
10 libsystem_pthread.dylib 0x3b5cac1a _pthread_body + 138
11 libsystem_pthread.dylib 0x3b5cab8a _pthread_start + 98
12 libsystem_pthread.dylib 0x3b5c8c8c thread_start + 4
Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x3b54fa8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b54f888 mach_msg + 44
2 CoreFoundation 0x307d77be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x307d5ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x30740c22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x30740a06 CFRunLoopRunInMode + 102
6 Foundation 0x3117b2f2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 314
7 Foundation 0x311f0c82 __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x3b5cac1a _pthread_body + 138
9 libsystem_pthread.dylib 0x3b5cab8a _pthread_start + 98
10 libsystem_pthread.dylib 0x3b5c8c8c thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x3b54fa8c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b54f888 mach_msg + 44
2 CoreFoundation 0x307d77be __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x307d5ee4 __CFRunLoopRun + 780
4 CoreFoundation 0x30740c22 CFRunLoopRunSpecific + 518
5 CoreFoundation 0x30784736 CFRunLoopRun + 94
6 CoreMotion 0x30df7230 ___lldb_unnamed_function1404$$CoreMotion + 724
7 libsystem_pthread.dylib 0x3b5cac1a _pthread_body + 138
8 libsystem_pthread.dylib 0x3b5cab8a _pthread_start + 98
9 libsystem_pthread.dylib 0x3b5c8c8c thread_start + 4
Thread 8:
0 libsystem_kernel.dylib 0x3b562c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3b5c8dc6 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3b5c8c80 start_wqthread + 4
Thread 9:
0 libsystem_kernel.dylib 0x3b562c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3b5c8dc6 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3b5c8c80 start_wqthread + 4
Thread 10:
0 libsystem_kernel.dylib 0x3b562c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3b5c8dc6 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3b5c8c80 start_wqthread + 4
Thread 11:
0 libsystem_kernel.dylib 0x3b562440 __select + 20
1 ExternalAccessory 0x31119352 -[EAInputStream _readInputFromAccThread] + 342
2 Foundation 0x311f0c82 __NSThread__main__ + 1058
3 libsystem_pthread.dylib 0x3b5cac1a _pthread_body + 138
4 libsystem_pthread.dylib 0x3b5cab8a _pthread_start + 98
5 libsystem_pthread.dylib 0x3b5c8c8c thread_start + 4
Thread 12:
0 libsystem_kernel.dylib 0x3b562c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3b5c8dc6 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3b5c8c80 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0xef264ee9 r1: 0x33566b29 r2: 0x3cf673f0 r3: 0x00000001
r4: 0x160815a0 r5: 0x33566b29 r6: 0x0000002c r7: 0x27dc88ac
r8: 0x160815a4 r9: 0x158af438 r10: 0x14e8846c r11: 0x14e88430
ip: 0x3cf59864 sp: 0x27dc88a0 lr: 0x38384d63 pc: 0x3af9eb22
cpsr: 0x20000030
Your app crashes while a UILabel inside a UIScrollView inside an alert is deallocated. I'd suspect that either your app overwrites memory somewhere and this is just a symptom, or you are using some alert in a non-standard way, possibly changing a paragraph style somewhere in the alert in a way that's wrong.
First step would be to turn all reasonable warnings on in the compiler, use the static analyser to find problems, and fix all of them.

Resources