Unable to understand Apple Crash Log with -[NSObject(NSObject) doesNotRecognizeSelector:] - ios

This is very weird, I can run my app in a simulator, iPhone 4S and iPhone 5 using Xcode 5 (5A1413) without any problems but when I submitted the app to iTunes store was rejected and this log was provided from Apple.
This is the message I got from Apple:
We found that your app crashed on iPhone 5s running iOS 7.0.2, which is not in compliance with the App Store Review Guidelines.
I confess I am clueless, can you please help me to understand this crash log:
Incident Identifier: 17461001-CE5D-451F-9BD5-FF513B76B03E
CrashReporter Key: 298a52ed29ad5cd48b1f745f998491771bd584a6
Hardware Model: iPhone5,1
Process: HomeClubBanesco [485]
Path: /var/mobile/Applications/6C36584D-E12D-4BDB-995A-B1652CDA9E48/HomeClubBanesco.app/HomeClubBanesco
Identifier: com.3pixelsmedia.HomeClubBanesco
Version: 2 (1.1)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-10-10 23:21:28.291 -0430
OS Version: iOS 7.0.2 (11A501)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x31462e86 __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3b75d6c2 objc_exception_throw + 34
2 CoreFoundation 0x314667b2 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
3 CoreFoundation 0x314650b2 ___forwarding___ + 702
4 CoreFoundation 0x313b3e94 __forwarding_prep_0___ + 20
5 Foundation 0x31e05e78 -[_NSPlaceholderData initWithData:] + 124
6 HomeClubBanesco 0x00106b76 -[HCBAppDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:] (HCBAppDelegate.m:315)
7 UIKit 0x33efe45a _UIXXRemoteNotificationRegistrationSucceeded + 146
8 UIKit 0x33efefc4 _XRemoteNotificationRegistrationSucceeded + 88
9 AppSupport 0x34c73b32 migHelperRecievePortCallout + 186
10 CoreFoundation 0x3142d77a __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
11 CoreFoundation 0x3142d716 __CFRunLoopDoSource1 + 342
12 CoreFoundation 0x3142bee2 __CFRunLoopRun + 1402
13 CoreFoundation 0x3139653c CFRunLoopRunSpecific + 520
14 CoreFoundation 0x3139631e CFRunLoopRunInMode + 102
15 GraphicsServices 0x360cd2e6 GSEventRunModal + 134
16 UIKit 0x33c4d1e0 UIApplicationMain + 1132
17 HomeClubBanesco 0x00105812 main (main.m:17)
18 libdyld.dylib 0x3bc56ab2 tlv_initializer + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3bd0d1fc __pthread_kill + 8
1 libsystem_pthread.dylib 0x3bd74a4e pthread_kill + 54
2 libsystem_c.dylib 0x3bcbe028 abort + 72
3 libc++abi.dylib 0x3b10c98a abort_message + 70
4 libc++abi.dylib 0x3b1256e2 default_terminate_handler() + 250
5 libobjc.A.dylib 0x3b75d936 _objc_terminate() + 190
6 libc++abi.dylib 0x3b1231b0 std::__terminate(void (*)()) + 76
7 libc++abi.dylib 0x3b122d12 __cxa_rethrow + 98
8 libobjc.A.dylib 0x3b75d80a objc_exception_rethrow + 38
9 CoreFoundation 0x313965b2 CFRunLoopRunSpecific + 638
10 CoreFoundation 0x3139631e CFRunLoopRunInMode + 102
11 GraphicsServices 0x360cd2e6 GSEventRunModal + 134
12 UIKit 0x33c4d1e0 UIApplicationMain + 1132
13 HomeClubBanesco 0x00105812 main (main.m:17)
14 libdyld.dylib 0x3bc56ab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x3bcfa838 kevent64 + 24
1 libdispatch.dylib 0x3bc490d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3bc4363e _dispatch_mgr_thread + 34
Thread 2:
0 libsystem_kernel.dylib 0x3bd0dc7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3bd71e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3bd71cc0 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x3bd0dc7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3bd71e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3bd71cc0 start_wqthread + 4
Thread 4:
0 libsystem_kernel.dylib 0x3bcfaa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3bcfa87c mach_msg + 36
2 CoreFoundation 0x3142d55c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x3142bc7c __CFRunLoopRun + 788
4 CoreFoundation 0x3139653c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x313da1a6 CFRunLoopRun + 94
6 CoreMotion 0x31a4e394 ___lldb_unnamed_function1407$$CoreMotion + 724
7 libsystem_pthread.dylib 0x3bd73c5a _pthread_body + 138
8 libsystem_pthread.dylib 0x3bd73bca _pthread_start + 98
9 libsystem_pthread.dylib 0x3bd71ccc thread_start + 4
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x3bcfaa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3bcfa87c mach_msg + 36
2 CoreFoundation 0x3142d55c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x3142bc7c __CFRunLoopRun + 788
4 CoreFoundation 0x3139653c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x3139631e CFRunLoopRunInMode + 102
6 Foundation 0x31dd164c +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
7 Foundation 0x31e46dc2 __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x3bd73c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x3bd73bca _pthread_start + 98
10 libsystem_pthread.dylib 0x3bd71ccc thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x3bd0dc7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3bd71e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3bd71cc0 start_wqthread + 4
Thread 7:
0 libsystem_kernel.dylib 0x3bd0dc7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3bd71e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3bd71cc0 start_wqthread + 4
Thread 8:
0 libsystem_kernel.dylib 0x3bd0dc7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3bd71e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3bd71cc0 start_wqthread + 4
Thread 9 name: com.apple.CFSocket.private
Thread 9:
0 libsystem_kernel.dylib 0x3bd0d440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x3143145e __CFSocketManager + 482
2 libsystem_pthread.dylib 0x3bd73c5a _pthread_body + 138
3 libsystem_pthread.dylib 0x3bd73bca _pthread_start + 98
4 libsystem_pthread.dylib 0x3bd71ccc thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00002060
r4: 0x00000006 r5: 0x3db3a18c r6: 0x00000000 r7: 0x27d03584
r8: 0x15e958a0 r9: 0x00000001 r10: 0x31f15124 r11: 0x00000000
ip: 0x00000148 sp: 0x27d03578 lr: 0x3bd74a53 pc: 0x3bd0d1fc
cpsr: 0x00000010
Updated to show the broken method
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
NSLog(#"Usuario SI Acepto las notificaciones");
[self setDToken:deviceToken];
NSData *myToken = [[NSData alloc] initWithData:[[NSUserDefaults standardUserDefaults] objectForKey:HCBDeviceTokenPrefKey]];
if (![myToken isEqualToData:deviceToken]) {
NSLog(#"Token no coincide");
[[NSUserDefaults standardUserDefaults] setObject:deviceToken forKey:HCBDeviceTokenPrefKey];
// Debo actualizar los datos en la db.
if (![[[NSUserDefaults standardUserDefaults] objectForKey:HCBUserIDPrefKey] isEqualToString:#"1"]) {
NSString *urlString = [NSString stringWithFormat:#"http://cmx.3pixelsmedia.com/homeclub/?l=iphone&updateDeviceID&deviceToken=%#&userID=%#",
deviceToken,
[[NSUserDefaults standardUserDefaults] objectForKey:HCBUserIDPrefKey]];
NSLog(#"urlString : %#",urlString);
}
}
NSLog(#"Device Token : %#",myToken);
}

During app review, your app received a EXC_CRASH (SIGABRT) exception. That means the code running in your app detected a fault and so it asked the Operating System to terminate your process, which is does via a SIGABRT signal.
The origin of the abort was that the Objective-C runtime detected a doesNotRecognizeSelector problem when dispatching a method request, as seen in the exception backtrace
2 CoreFoundation 0x314667b2 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
The code that gave rise to this is:
NSData *myToken = [[NSData alloc] initWithData:[[NSUserDefaults standardUserDefaults] objectForKey:HCBDeviceTokenPrefKey]];
That is because NSData will assume the user defaults has NSData result for the device token.
If it does not get an appropriate NSData object it will send an -[_NSPlaceholderData initWithData:] constructor message to an object that does not know about this private implementation class for NSData
Just to double-check the following test code proves this experimentally:
NSData *myToken = [[NSData alloc] initWithData:[[NSUserDefaults standardUserDefaults] objectForKey:#"SomeKey"]];
NSLog(#"My data is %# - ok since we can handle a nil", myToken);
id stringProperty = #"Some string";
NSData *problemToken = [[NSData alloc] initWithData:stringProperty];
NSLog(#"My data is %# - we have probably crashed by now", problemToken);
Taking a step back, it is important to understand crashes can often occur not due to your code itself, but instead the environment your code is running in.
Two factors are different between your working and failing case.
Your app locally may have from a prior run setup its user defaults with a NSData token.
Your app local testing may be using a Debug version which has been configured (in terms of defaults) differently from your Release version (which will have been sent to Apple).
Things to try:
In simulator, erase contents and settings and re-try your app.
In Xcode (Schema settings) change your deployment version from Debug to Release.
Put in code which tests the type of the value come from User Defaults for key HCBUserIDPrefKey. Ensure that it is NSData (also check for nil).

Related

iOS Crash log - no application code

We are getting a crash on a device, with a weird crash log that does not contain any of our application's code in it. Any idea what could be causing this?
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000e0000010
Triggered by Thread: 5
Thread 0:
0 libsystem_kernel.dylib 0x3a773a50 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a773849 mach_msg + 37
2 CoreFoundation 0x2f5c6625 __CFRunLoopServiceMachPort + 153
3 CoreFoundation 0x2f5c4d8b __CFRunLoopRun + 859
4 CoreFoundation 0x2f52f765 CFRunLoopRunSpecific + 521
5 CoreFoundation 0x2f52f547 CFRunLoopRunInMode + 103
6 GraphicsServices 0x344666cf GSEventRunModal + 135
7 UIKit 0x31e8e88d UIApplicationMain + 1133
8 MyApp 0x0002ae4b main (main.m:15)
9 MyApp 0x0001ff44 start + 36
Thread 1:
0 libsystem_kernel.dylib 0x3a773804 kevent64 + 24
1 libdispatch.dylib 0x3a6c2051 _dispatch_mgr_invoke + 229
2 libdispatch.dylib 0x3a6bc2df _dispatch_mgr_thread + 35
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x3a773a50 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a773849 mach_msg + 37
2 CoreFoundation 0x2f5c6625 __CFRunLoopServiceMachPort + 153
3 CoreFoundation 0x2f5c4d45 __CFRunLoopRun + 789
4 CoreFoundation 0x2f52f765 CFRunLoopRunSpecific + 521
5 CoreFoundation 0x2f52f547 CFRunLoopRunInMode + 103
6 Foundation 0x2ff6f23d +[NSURLConnection(Loader) _resourceLoadLoop:] + 317
7 Foundation 0x2ffe4a0b __NSThread__main__ + 1059
8 libsystem_pthread.dylib 0x3a7ed957 _pthread_body + 139
9 libsystem_pthread.dylib 0x3a7ed8c7 _pthread_start + 99
10 libsystem_pthread.dylib 0x3a7ebae4 thread_start + 4
Thread 3:
0 libsystem_kernel.dylib 0x3a786c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3a7ebc1f _pthread_wqthread + 307
2 libsystem_pthread.dylib 0x3a7ebad8 start_wqthread + 4
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x3a786434 __select + 20
1 CoreFoundation 0x2f5ca51f __CFSocketManager + 483
2 libsystem_pthread.dylib 0x3a7ed957 _pthread_body + 139
3 libsystem_pthread.dylib 0x3a7ed8c7 _pthread_start + 99
4 libsystem_pthread.dylib 0x3a7ebae4 thread_start + 4
Thread 5 Crashed:
0 libobjc.A.dylib 0x3a1e066b objc_release + 11
1 libobjc.A.dylib 0x3a1e10cf (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 355
2 libobjc.A.dylib 0x3a1e1b49 (anonymous namespace)::AutoreleasePoolPage::tls_dealloc(void*) + 37
3 libsystem_pthread.dylib 0x3a7ec6cf _pthread_tsd_cleanup + 163
4 libsystem_pthread.dylib 0x3a7ec44f _pthread_exit + 83
5 libsystem_pthread.dylib 0x3a7ed1b5 pthread_exit + 25
6 Foundation 0x2ff386ff +[NSThread exit] + 7
7 Foundation 0x2ffe4a29 __NSThread__main__ + 1089
8 libsystem_pthread.dylib 0x3a7ed957 _pthread_body + 139
9 libsystem_pthread.dylib 0x3a7ed8c7 _pthread_start + 99
10 libsystem_pthread.dylib 0x3a7ebae4 thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x3a786c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3a7ebc1f _pthread_wqthread + 307
2 libsystem_pthread.dylib 0x3a7ebad8 start_wqthread + 4
Thread 7:
0 libsystem_kernel.dylib 0x3a786c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3a7ebc1f _pthread_wqthread + 307
2 libsystem_pthread.dylib 0x3a7ebad8 start_wqthread + 4
Thread 5 crashed with ARM Thread State (32-bit):
r0: 0x156ba550 r1: 0xe0000000 r2: 0x00000001 r3: 0x15b9d028
r4: 0x15b9d000 r5: 0x0679d0a4 r6: 0xa3a3a3a3 r7: 0x0679cd5c
r8: 0x15b9d028 r9: 0x9a001683 r10: 0x00000000 r11: 0x3c473a30
ip: 0x3a96f7b0 sp: 0x0679cb2c lr: 0x3a1e10d3 pc: 0x3a1e066a
cpsr: 0x20000030
We ran a check for Zombie objects but could not find any. Help much appreciated.
We were able to reproduce the issue and discovered that this is a memory issue on iPad Airs. We found that, for some reason, iOS on these iPad Air is trying to free up invalid memory addresses, or addresses that were previously freed up. We are now able to replicate on demand on iPad Airs, but do not see the same issue on other iPads.

[NSPlaceholderString initWithString:]: nil argument on jail break device

I tried with many search with the above title and also do as many advice of my search but cannot solved the problem. My app got crash when I build on the iPad which had jail break. But with the device not jail break it worked. Call the below function is the reason for crash:
-(void)btnLoginPressed:(id)sender {
[[MoboAccesstoken ActiveAccessToken] setMoboAccessTokenDelegate:self];
if (![[MoboAccesstoken ActiveAccessToken]isOpened]){
[MoboSDK openActiveSessionWithCompletion:^(NSDictionary *data) {
NSLog(#"data: %#", data);
}];
}
}
and the stack trace is:
2014-06-05 13:11:39.749 g1[1687:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSPlaceholderString initWithString:]: nil argument'
*** First throw call stack:
(0x355e988f 0x3320d259 0x355e9789 0x355e97ab 0x3499d4c9 0x71af33 0x71cb3f 0x71b893 0x71c8bf 0x1ae2f9 0x2c619f 0x4054ef 0x15dea3 0xca883 0xcf5ab 0x558dcd 0x6a73cd 0x2a5a9f 0x30399f 0x4ba2bb 0x4ba365 0x4ab929 0x4abd4b 0x4abd71 0x2c50fd 0x334c47 0x32d0392b 0x32d03319 0x32ce9695 0x32ce8f3b 0x332db22b 0x355bd523 0x355bd4c5 0x355bc313 0x3553f4a5 0x3553f36d 0x332da439 0x32d17cd5 0xa1167 0x99de8)
terminate called throwing an exception
The image of crash log:
Incident Identifier: 0F14065E-394E-43C4-8B6C-007CF55EDAEA
CrashReporter Key: 975f6d2f7ff682cc1bad50cfed0e860f0502f830
Hardware Model: iPad1,1
Process: TestMoboSDK-Client [294]
Path: /var/mobile/Applications/077E9D1E-0594-45F1-8A23-154B630B8FDB/TestMoboSDK-Client.app/TestMoboSDK-Client
Identifier: TestMoboSDK-Client
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-06-05 18:38:04.276 +0700
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x357d688f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x333fa259 objc_exception_throw + 32
2 CoreFoundation 0x357d6789 +[NSException raise:format:arguments:] + 100
3 CoreFoundation 0x357d67ab +[NSException raise:format:] + 34
4 Foundation 0x34b8a4c9 -[NSPlaceholderString initWithString:] + 92
5 TestMoboSDK-Client 0x000f4921 0xe8000 + 51489
6 TestMoboSDK-Client 0x000f05c1 0xe8000 + 34241
7 TestMoboSDK-Client 0x000f4283 0xe8000 + 49795
8 UIKit 0x3310360b _UIXXRemoteNotificationRegistrationSucceeded + 146
9 UIKit 0x331040dd _XRemoteNotificationRegistrationSucceeded + 116
10 AppSupport 0x33ce5af9 migHelperRecievePortCallout + 148
11 CoreFoundation 0x357aa523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38
12 CoreFoundation 0x357aa4c5 __CFRunLoopDoSource1 + 140
13 CoreFoundation 0x357a9313 __CFRunLoopRun + 1370
14 CoreFoundation 0x3572c4a5 CFRunLoopRunSpecific + 300
15 CoreFoundation 0x3572c36d CFRunLoopRunInMode + 104
16 GraphicsServices 0x334c7439 GSEventRunModal + 136
17 UIKit 0x32f04cd5 UIApplicationMain + 1080
18 TestMoboSDK-Client 0x000f6c0f 0xe8000 + 60431
19 TestMoboSDK-Client 0x000ee008 0xe8000 + 24584
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3584c32c __pthread_kill + 8
1 libsystem_c.dylib 0x34a34208 pthread_kill + 48
2 libsystem_c.dylib 0x34a2d298 abort + 88
3 libc++abi.dylib 0x35044f64 abort_message + 40
4 libc++abi.dylib 0x35042346 default_terminate() + 18
5 libobjc.A.dylib 0x333fa350 _objc_terminate + 140
6 libc++abi.dylib 0x350423be safe_handler_caller(void (*)()) + 70
7 libc++abi.dylib 0x3504244a std::terminate() + 14
8 libc++abi.dylib 0x3504381e __cxa_rethrow + 82
9 libobjc.A.dylib 0x333fa2a2 objc_exception_rethrow + 6
10 CoreFoundation 0x3572c506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x3572c366 CFRunLoopRunInMode + 98
12 GraphicsServices 0x334c7432 GSEventRunModal + 130
13 UIKit 0x32f04cce UIApplicationMain + 1074
14 TestMoboSDK-Client 0x000f6c08 0xe8000 + 60424
15 TestMoboSDK-Client 0x000ee000 0xe8000 + 24576
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x3583c3a8 kevent + 24
1 libdispatch.dylib 0x33b6fea4 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x33b6fbc2 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x3584ccd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x349eff36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x349efcc8 start_wqthread + 0
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x3584c0d8 __psynch_mutexwait + 24
1 libsystem_c.dylib 0x349e9674 pthread_mutex_lock + 376
2 WebCore 0x373cf4e8 _WebTryThreadLock(bool) + 208
3 WebCore 0x373cf7ec WebRunLoopLock(__CFRunLoopObserver*, unsigned long, void*) + 24
4 CoreFoundation 0x357aab14 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 12
5 CoreFoundation 0x357a8d50 __CFRunLoopDoObservers + 252
6 CoreFoundation 0x357a916a __CFRunLoopRun + 946
7 CoreFoundation 0x3572c49e CFRunLoopRunSpecific + 294
8 CoreFoundation 0x3572c366 CFRunLoopRunInMode + 98
9 WebCore 0x37472c9c RunWebThread(void*) + 396
10 libsystem_c.dylib 0x349f572e _pthread_start + 314
11 libsystem_c.dylib 0x349f55e8 thread_start + 0
Thread 4:
0 libsystem_kernel.dylib 0x3584ccd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x349eff36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x349efcc8 start_wqthread + 0
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x3583c004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3583c1fa mach_msg + 50
2 CoreFoundation 0x357aa3ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x357a9124 __CFRunLoopRun + 876
4 CoreFoundation 0x3572c49e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x3572c366 CFRunLoopRunInMode + 98
6 Foundation 0x34b71bb2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
7 Foundation 0x34b71a7a -[NSThread main] + 66
8 Foundation 0x34c0558a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x349f572e _pthread_start + 314
10 libsystem_c.dylib 0x349f55e8 thread_start + 0
Thread 6:
0 libsystem_kernel.dylib 0x3584ccd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x349eff36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x349efcc8 start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3f0f8d98 r6: 0x00000002 r7: 0x2fee39a8
r8: 0x00000000 r9: 0x35045a4a r10: 0x0014a888 r11: 0x333f4f69
ip: 0x00000148 sp: 0x2fee399c lr: 0x34a3420f pc: 0x3584c32c
cpsr: 0x00000010
Edit:
The crash only happen on iPad(jail break) 5.1.1. With iPad(jail break) 7.0.4 or 6. -> it worked.*
Reason: When I call openActiveSessionWithCompletion function,I do many actions to collect the info to make a url link. It included the action: get UUIDString .And with iOS 5.1 the result when get UUIDString is a NULL string. So that, it's reason for app crash when I call the command: uuid_String = [[NSString alloc]initWithString:[[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString]];. initWithString: this function when push a NULL string will make app crash.
This is wrong:
uuid_String = [[NSString alloc]initWithString:[[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString]]
Just do this:
uuid_String = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];
As for why it returns nil, probably because advertising is disabled on the device. Users are allowed to opt out of tracking.
Check the documentation and beware iOS 5 and 7 have different behaviour.

Apple rejected app because of crash I cannot reproduce [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 9 years ago.
Improve this question
My app was rejected because of a crash on iPad, but I am unable to reproduce it. What should I do?
We found that your app crashed on iPad running iOS 7.0.4, which is
not in compliance with the App Store Review Guidelines.
Your app crashed when we launch the app.
This occurred when your app was used:
On Wi-Fi
We have attached detailed crash logs to help troubleshoot this issue. For information on how to symbolicate and read a crash log,
please see Tech Note TN2151 Understanding and Analyzing iPhone OS
Application Crash Reports.
If you have difficulty reproducing this issue, please try testing the workflow as described in Testing Workflow with Xcode's
Archive feature.
For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. Please be sure to prepare any
symbolicated crash logs, screenshots, or steps to reproduce the issues
for when the DTS engineer follows up.
2.10
Also, we found that your app crashed on iPad, which doesn't meet the requirements for running on iPad, as required by the App Store
Review Guidelines.
This is the Crash Report.
Incident Identifier: BE08340B-BD3C-4834-A4B8-DEE44FDB8CF9
CrashReporter Key: c9a77ef4dcc63290176c21a5175ca5807a28eca5
Hardware Model: xxx
Process: Lottery [670]
Path: /var/mobile/Applications/470EA3B5-E92D-48AB-8DAD-66B4FB6F3950/Lottery.app/Lottery
Identifier: CaiwangClient
Version: 1.0.0 (1.0.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-01-26 09:14:30.717 -0800
OS Version: iOS 7.0.4 (11B554a)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
(0x2d9bee83 0x381656c7 0x2d9beb89 0x2e37ae3f 0x2e2e0139 0xd5b3d 0xd52c9 0xca485 0x2e3a2e4b 0x2d989f1f 0x2d9893e7 0x2d987bd7 0x2d8f2471 0x2d8f2253 0x326002eb 0x301a7845 0xdf37f 0x3865eab7)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x387151fc __pthread_kill + 8
1 libsystem_pthread.dylib 0x3877ca4f pthread_kill + 55
2 libsystem_c.dylib 0x386c6029 abort + 73
3 libc++abi.dylib 0x37b1498b abort_message + 71
4 libc++abi.dylib 0x37b2d6e3 default_terminate_handler() + 251
5 libobjc.A.dylib 0x38165937 _objc_terminate() + 191
6 libc++abi.dylib 0x37b2b1b1 std::__terminate(void (*)()) + 77
7 libc++abi.dylib 0x37b2ad13 __cxa_rethrow + 99
8 libobjc.A.dylib 0x3816580b objc_exception_rethrow + 39
9 CoreFoundation 0x2d8f24e3 CFRunLoopRunSpecific + 639
10 CoreFoundation 0x2d8f224f CFRunLoopRunInMode + 103
11 GraphicsServices 0x326002e7 GSEventRunModal + 135
12 UIKit 0x301a7841 UIApplicationMain + 1133
13 Lottery 0x000df37b 0x98000 + 291707
14 libdyld.dylib 0x3865eab5 start + 1
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x38702838 kevent64 + 24
1 libdispatch.dylib 0x386510d1 _dispatch_mgr_invoke + 229
2 libdispatch.dylib 0x3864b61f _dispatch_mgr_thread + 35
Thread 2:
0 libsystem_kernel.dylib 0x38715c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38779e07 _pthread_wqthread + 307
2 libsystem_pthread.dylib 0x38779cc0 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x38702a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3870287d mach_msg + 37
2 CoreFoundation 0x2d989555 __CFRunLoopServiceMachPort + 153
3 CoreFoundation 0x2d987c75 __CFRunLoopRun + 789
4 CoreFoundation 0x2d8f246d CFRunLoopRunSpecific + 521
5 CoreFoundation 0x2d8f224f CFRunLoopRunInMode + 103
6 Lottery 0x000d312f 0x98000 + 241967
7 Foundation 0x2e3a2c33 __NSThread__main__ + 1059
8 libsystem_pthread.dylib 0x3877bc5b _pthread_body + 139
9 libsystem_pthread.dylib 0x3877bbcb _pthread_start + 99
10 libsystem_pthread.dylib 0x38779ccc thread_start + 4
Thread 4 name: com.apple.NSURLConnectionLoader
Thread 4:
0 libsystem_kernel.dylib 0x38702a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3870287d mach_msg + 37
2 CoreFoundation 0x2d989555 __CFRunLoopServiceMachPort + 153
3 CoreFoundation 0x2d987c75 __CFRunLoopRun + 789
4 CoreFoundation 0x2d8f246d CFRunLoopRunSpecific + 521
5 CoreFoundation 0x2d8f224f CFRunLoopRunInMode + 103
6 Foundation 0x2e32d4bd +[NSURLConnection(Loader) _resourceLoadLoop:] + 317
7 Foundation 0x2e3a2c33 __NSThread__main__ + 1059
8 libsystem_pthread.dylib 0x3877bc5b _pthread_body + 139
9 libsystem_pthread.dylib 0x3877bbcb _pthread_start + 99
10 libsystem_pthread.dylib 0x38779ccc thread_start + 4
Thread 5 name: Dispatch queue: com.apple.root.default-priority
Thread 5:
0 libsystem_kernel.dylib 0x38702ad4 semaphore_wait_trap + 8
1 libdispatch.dylib 0x3864fde1 _dispatch_semaphore_wait_slow + 173
2 libxpc.dylib 0x3878a0d7 xpc_connection_send_message_with_reply_sync + 151
3 SystemConfiguration 0x3011d35b _reach_server_target_remove + 91
4 SystemConfiguration 0x3011d2cb __SCNetworkReachabilityServer_targetRemove + 39
5 SystemConfiguration 0x30104311 __SCNetworkReachabilityDeallocate + 93
6 CoreFoundation 0x2d8eee2d CFRelease + 465
7 libdispatch.dylib 0x3864f7d5 _dispatch_root_queue_drain + 221
8 libdispatch.dylib 0x3864f9c1 _dispatch_worker_thread2 + 53
9 libsystem_pthread.dylib 0x38779dfd _pthread_wqthread + 297
10 libsystem_pthread.dylib 0x38779cc0 start_wqthread + 4
Thread 6 name: com.apple.CFSocket.private
Thread 6:
0 libsystem_kernel.dylib 0x38715440 __select + 20
1 CoreFoundation 0x2d98d457 __CFSocketManager + 483
2 libsystem_pthread.dylib 0x3877bc5b _pthread_body + 139
3 libsystem_pthread.dylib 0x3877bbcb _pthread_start + 99
4 libsystem_pthread.dylib 0x38779ccc thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00002060
r4: 0x00000006 r5: 0x3a2e618c r6: 0x00000000 r7: 0x27d6b594
r8: 0x14d6f380 r9: 0x00000001 r10: 0x00000000 r11: 0x001058cc
ip: 0x00000148 sp: 0x27d6b588 lr: 0x3877ca53 pc: 0x387151fc
cpsr: 0x00000010

Crash Report - iOS - View Controller Related?

Can anyone help me understand a crash report? This is the first time I have ever had to deal with one since iOS App developing in 8 months.
I know it is something to do with dismissing a view controller that is causing it, but I have made no changes to the code regarding this but all of a sudden it is starting to cause problems. Any guidance on where to start would be amazing.
Date/Time: 2013-03-10 14:56:06.091 +0000
OS Version: iOS 6.1.2 (10B146)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x3afee5b6 objc_msgSend + 22
1 AVFoundation 0x3247f752 -[AVAudioPlayer(AVAudioPlayerPriv) finishedPlaying:] + 74
2 Foundation 0x33c700f0 __NSThreadPerformPerform + 456
3 CoreFoundation 0x3332e680 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
4 CoreFoundation 0x3332dee4 __CFRunLoopDoSources0 + 208
5 CoreFoundation 0x3332ccb2 __CFRunLoopRun + 642
6 CoreFoundation 0x3329feb8 CFRunLoopRunSpecific + 352
7 CoreFoundation 0x3329fd44 CFRunLoopRunInMode + 100
8 GraphicsServices 0x36e612e6 GSEventRunModal + 70
9 UIKit 0x351b52fc UIApplicationMain + 1116
10 iWhovian 0x000391fe main (main.m:15)
11 iWhovian 0x0002f56c start + 36
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x3b4e1648 kevent64 + 24
1 libdispatch.dylib 0x3b41a4ec _dispatch_mgr_invoke + 792
2 libdispatch.dylib 0x3b40cdf4 _dispatch_mgr_thread$VARIANT$up + 32
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x3b4e0eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b4e1048 mach_msg + 36
2 CoreFoundation 0x3332e040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x3332cd9e __CFRunLoopRun + 878
4 CoreFoundation 0x3329feb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x3329fd44 CFRunLoopRunInMode + 100
6 WebCore 0x39294500 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3b44a30e _pthread_start + 306
8 libsystem_c.dylib 0x3b44a1d4 thread_start + 4
Thread 3:
0 libsystem_kernel.dylib 0x3b4f108c __psynch_cvwait + 24
1 libsystem_c.dylib 0x3b442d2a _pthread_cond_wait + 642
2 libsystem_c.dylib 0x3b44cf14 pthread_cond_wait + 36
3 Foundation 0x33bec4d2 -[NSCondition wait] + 190
4 iWhovian 0x0006ef90 -[PFCommandCache runLoop] (PFCommandCache.m:491)
5 Foundation 0x33c6fe80 __NSThread__main__ + 968
6 libsystem_c.dylib 0x3b44a30e _pthread_start + 306
7 libsystem_c.dylib 0x3b44a1d4 thread_start + 4
Thread 4 name: AQClient
Thread 4:
0 libsystem_kernel.dylib 0x3b4e0eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3b4e1048 mach_msg + 36
2 CoreFoundation 0x3332e040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x3332cd9e __CFRunLoopRun + 878
4 CoreFoundation 0x3329feb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x3329fd44 CFRunLoopRunInMode + 100
6 AudioToolbox 0x32d816fe GenericRunLoopThread::Entry(void*) + 134
7 AudioToolbox 0x32d62882 CAPThread::Entry(CAPThread*) + 294
8 libsystem_c.dylib 0x3b44a30e _pthread_start + 306
9 libsystem_c.dylib 0x3b44a1d4 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x3b4f1d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3b43fcf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3b43fa12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3b43f8a0 start_wqthread + 4
Thread 6 name: Dispatch queue: com.apple.NSXPCConnection.m-user.com.apple.gamed
Thread 6:
0 libobjc.A.dylib 0x3afee5b0 objc_msgSend + 16
1 CoreFoundation 0x332b0fdc -[__NSSetI member:] + 140
2 CoreFoundation 0x332b0f44 -[NSSet containsObject:] + 28
3 Foundation 0x33c08978 -[NSCoder _validateAllowedClass:forKey:allowingInvocations:] + 124
4 Foundation 0x33c08402 _decodeObjectStuff + 282
5 Foundation 0x33c08200 -[NSXPCDecoder decodeObjectOfClasses:forKey:] + 76
6 GameKit 0x33e2f8fa -[GKInternalRepresentation initWithCoder:] + 238
7 Foundation 0x33c086f2 _decodeObjectStuff + 1034
8 Foundation 0x33d1fda8 -[NSXPCDecoder _decodeArrayOfObjectsForKey:] + 532
9 Foundation 0x33bf4ebc -[NSArray(NSArray) initWithCoder:] + 784
10 Foundation 0x33c086f2 _decodeObjectStuff + 1034
11 Foundation 0x33c08200 -[NSXPCDecoder decodeObjectOfClasses:forKey:] + 76
12 GameKit 0x33e2f8fa -[GKInternalRepresentation initWithCoder:] + 238
13 Foundation 0x33c086f2 _decodeObjectStuff + 1034
14 Foundation 0x33c08200 -[NSXPCDecoder decodeObjectOfClasses:forKey:] + 76
15 Foundation 0x33c09fe8 _walkAndDecodeData + 1708
16 Foundation 0x33c0988c decodeInvocationArguments + 1368
17 Foundation 0x33c08fc8 -[NSXPCDecoder decodeInvocation] + 860
18 Foundation 0x33c08630 _decodeObjectStuff + 840
19 Foundation 0x33c08200 -[NSXPCDecoder decodeObjectOfClasses:forKey:] + 76
20 Foundation 0x33c07c04 -[NSXPCConnection _decodeAndInvokeReplyBlockWithData:] + 548
21 Foundation 0x33d1eedc __message_handler_block_invoke_0 + 32
22 libdispatch.dylib 0x3b40b11c _dispatch_call_block_and_release + 8
23 libdispatch.dylib 0x3b40a996 _dispatch_queue_drain$VARIANT$up + 142
24 libdispatch.dylib 0x3b40a890 _dispatch_queue_invoke$VARIANT$up + 32
25 libdispatch.dylib 0x3b419212 _dispatch_root_queue_drain + 190
26 libdispatch.dylib 0x3b4193b4 _dispatch_worker_thread2 + 80
27 libsystem_c.dylib 0x3b43fa0e _pthread_wqthread + 358
28 libsystem_c.dylib 0x3b43f8a0 start_wqthread + 4
Thread 7:
0 libsystem_kernel.dylib 0x3b4f1d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3b43fcf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3b43fa12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3b43f8a0 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x208a4ef0 r1: 0x38e042ae r2: 0x33f0ac6c r3: 0x00000008
r4: 0x20747372 r5: 0x2089ac70 r6: 0x33f0ac6c r7: 0x2fdd2df8
r8: 0x3b667530 r9: 0x0e3810ab r10: 0x00000000 r11: 0x1fd4dd90
ip: 0x3b5734ac sp: 0x2fdd2de0 lr: 0x3247f757 pc: 0x3afee5b6
cpsr: 0x20070030
I ran into this one a while ago. The problem can be fixed by setting the AVAudioPlayer instance's delegate to nil in your view controller's dealloc method. Unless you do this, the audio player tries to make one last call to its delegate to let it know that is is done playing. But if the delegate has been deallocated, you get this crash.
- (void)dealloc {
_myPlayer.delegate = nil; // _myPlayer is your AVAudioPlayer instance
[super dealloc]; // Only is you are not using ARC
}
You're most likely trying to access an object, that hast been deallocated. Have a look at
Debugging EXC_BAD_ACCESS Error in Xcode using Instruments (Archived)
to see how you can track it down.

Crash while integrating Brad Larson's GPUImage

Im trying to integrate Brad Larson's GPUImage framework to my project. The sample code works fine. After I've intergrated, it builds fine but Im facing crash while running it. It crashes at AVCaptureVideoDataOutputSampleBufferDelegate method,
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection;
Particularly at
runOnMainQueueWithoutDeadlocking block. I tried to find out the crash area but couldn't find it even after some few hours of time on seeing the crash log too. I didnt get any idea about the crash. Below is the crash log of Im getting on it. Can some one point me out the issue in it? I also have a doubt that, can I use to continue the queue in name com.sunsetlakesoftware.GPUImage.processingQueue?
Date/Time: 2012-06-19 17:46:28.449 +0530
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xb00566c0
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x344faf78 objc_msgSend + 16
1 GPUTest 0x0017d16a __74-[GPUImageVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:]_block_invoke_0118 (GPUImageVideoCamera.m:415)
2 libdispatch.dylib 0x35b03b24 _dispatch_barrier_sync_f_slow_invoke + 72
3 libdispatch.dylib 0x35b02e8a _dispatch_main_queue_callback_4CF$VARIANT$up + 190
4 CoreFoundation 0x3247d2a6 __CFRunLoopRun + 1262
5 CoreFoundation 0x3240049e CFRunLoopRunSpecific + 294
6 CoreFoundation 0x32400366 CFRunLoopRunInMode + 98
7 GraphicsServices 0x31557432 GSEventRunModal + 130
8 UIKit 0x31effcce UIApplicationMain + 1074
9 GPUTest 0x000b0714 main (main.m:10)
10 GPUTest 0x000b06cc start + 32
Thread 1 name: Dispatch queue: com.sunsetlakesoftware.GPUImage.processingQueue
Thread 1:
0 libsystem_kernel.dylib 0x35b4b054 semaphore_wait_trap + 8
1 libdispatch.dylib 0x35b0447e _dispatch_thread_semaphore_wait$VARIANT$up + 6
2 libdispatch.dylib 0x35b0265e _dispatch_barrier_sync_f_slow + 82
3 libdispatch.dylib 0x35b025dc dispatch_barrier_sync_f$VARIANT$up + 16
4 libdispatch.dylib 0x35b02238 dispatch_sync_f$VARIANT$up + 12
5 libdispatch.dylib 0x35b028ee _dispatch_sync_slow + 46
6 libdispatch.dylib 0x35b028ae dispatch_sync$VARIANT$up + 18
7 GPUTest 0x00172796 runOnMainQueueWithoutDeadlocking (GPUImageOutput.m:13)
8 GPUTest 0x0017d0a6 -[GPUImageVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:] (GPUImageVideoCamera.m:414)
9 AVFoundation 0x32dd0244 __74-[AVCaptureVideoDataOutput _AVCaptureVideoDataOutput_VideoDataBecameReady]_block_invoke_0 + 220
10 libdispatch.dylib 0x35af7c52 _dispatch_call_block_and_release + 6
11 libdispatch.dylib 0x35b02ca4 _dispatch_queue_drain + 268
12 libdispatch.dylib 0x35b02b12 _dispatch_queue_invoke$VARIANT$up + 30
13 libdispatch.dylib 0x35b03784 _dispatch_worker_thread2 + 208
14 libsystem_c.dylib 0x30d40df4 _pthread_wqthread + 288
15 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 2:
0 libsystem_kernel.dylib 0x35b5bcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x30d40f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 3 name: Dispatch queue: com.apple.libdispatch-manager
Thread 3:
0 libsystem_kernel.dylib 0x35b4b3a8 kevent + 24
1 libdispatch.dylib 0x35b03ea4 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x35b03bc2 _dispatch_mgr_thread + 30
Thread 4:
0 libsystem_kernel.dylib 0x35b5bcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x30d40f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x35b5bcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x30d40f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 6 name: WebThread
Thread 6:
0 libsystem_kernel.dylib 0x35b4b004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x35b4b1fa mach_msg + 50
2 CoreFoundation 0x3247e3ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x3247d124 __CFRunLoopRun + 876
4 CoreFoundation 0x3240049e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x32400366 CFRunLoopRunInMode + 98
6 WebCore 0x35c1dc9c _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x30d4672e _pthread_start + 314
8 libsystem_c.dylib 0x30d465e8 thread_start + 0
Thread 7 name: com.apple.coremedia.player.async
Thread 7:
0 libsystem_kernel.dylib 0x35b5b068 __psynch_cvwait + 24
1 libsystem_c.dylib 0x30d46a46 _pthread_cond_wait + 634
2 libsystem_c.dylib 0x30d467c2 pthread_cond_wait + 34
3 CoreMedia 0x32ec3868 FigSemaphoreWaitRelative + 268
4 MediaToolbox 0x309fb3e6 fpa_AsyncMovieControlThread + 22
5 CoreMedia 0x32ee28b4 figThreadMain + 168
6 libsystem_c.dylib 0x30d4672e _pthread_start + 314
7 libsystem_c.dylib 0x30d465e8 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00541c20 r1: 0x00190b4f r2: 0x0056f240 r3: 0x00190b4f
r4: 0xb00566b8 r5: 0x00000000 r6: 0x00000000 r7: 0x2feace34
r8: 0x2feace4c r9: 0x000642d3 r10: 0x2feace4c r11: 0x3e47dde0
ip: 0x3f3c22c8 sp: 0x2feace24 lr: 0x0017d171 pc: 0x344faf78
cpsr: 0x20000030
Finally, I found the solution. I just replaced the compiler flag of the AppDelegate in target's compile sources which is set for the purpose of ARC.
i.e. I removed the -fno-objc-arc flag and replaced it by -fobjc-arc flag for the AppDelegate class which caused the crash.

Resources