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

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.

Related

App SIGABRT Crash

When I run my iOS app in Xcode & test it on my device (before submitting) it returns no errors and it works flawlessly. But when I test the app after the update to the app store, it crashes every time I open the app on my device. I get the following error in my crash log:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x2f9ecf06 __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3a183ce2 objc_exception_throw + 34
2 CoreData 0x2f72a694 -[NSPersistentStoreCoordinator initWithManagedObjectModel:] + 392
3 TapNotes 0x00015d3c -[AppDelegate persistentStoreCoordinator] (AppDelegate.m:104)
4 TapNotes 0x00015b48 -[AppDelegate managedObjectContext] (AppDelegate.m:73)
5 TapNotes 0x00016904 -[DeviceViewController managedObjectContext] (HomeViewController.m:22)
6 TapNotes 0x00016b04 -[DeviceViewController viewDidAppear:] (HomeViewController.m:51)
7 UIKit 0x32236d1e -[UIViewController _setViewAppearState:isAnimating:] + 434
8 UIKit 0x322e6052 -[UINavigationController viewDidAppear:] + 178
9 UIKit 0x32236d1e -[UIViewController _setViewAppearState:isAnimating:] + 434
10 UIKit 0x3229be7a -[UIViewController _executeAfterAppearanceBlock] + 50
11 UIKit 0x3229be04 _applyBlockToCFArrayCopiedToStack + 312
12 UIKit 0x32214b6e _afterCACommitHandler + 454
13 CoreFoundation 0x2f9b8034 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 16
14 CoreFoundation 0x2f9b59c2 __CFRunLoopDoObservers + 282
15 CoreFoundation 0x2f9b5d0e __CFRunLoopRun + 734
16 CoreFoundation 0x2f920764 CFRunLoopRunSpecific + 520
17 CoreFoundation 0x2f920546 CFRunLoopRunInMode + 102
18 GraphicsServices 0x3488d6ce GSEventRunModal + 134
19 UIKit 0x3227f88c UIApplicationMain + 1132
20 TapNotes 0x00016886 main (main.m:16)
21 libdyld.dylib 0x3a681ab2 tlv_initializer + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3a7381f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x3a7a07b2 pthread_kill + 54
2 libsystem_c.dylib 0x3a6e8ff4 abort + 72
3 libc++abi.dylib 0x39b3798a abort_message + 70
4 libc++abi.dylib 0x39b506e2 default_terminate_handler() + 250
5 libobjc.A.dylib 0x3a183f7a _objc_terminate() + 190
6 libc++abi.dylib 0x39b4e1b0 std::__terminate(void (*)()) + 76
7 libc++abi.dylib 0x39b4dd12 __cxa_rethrow + 98
8 libobjc.A.dylib 0x3a183e2a objc_exception_rethrow + 38
9 CoreFoundation 0x2f9207da CFRunLoopRunSpecific + 638
10 CoreFoundation 0x2f920546 CFRunLoopRunInMode + 102
11 GraphicsServices 0x3488d6ce GSEventRunModal + 134
12 UIKit 0x3227f88c UIApplicationMain + 1132
13 TapNotes 0x00016886 main (main.m:16)
14 libdyld.dylib 0x3a681ab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x3a725804 kevent64 + 24
1 libdispatch.dylib 0x3a674050 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3a66e2de _dispatch_mgr_thread + 34
Thread 2:
0 libsystem_kernel.dylib 0x3a738c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3a79dc1e _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3a79dad8 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x3a738c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x3a79dc1e _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x3a79dad8 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00002060
r4: 0x00000006 r5: 0x3c69418c r6: 0x00000000 r7: 0x27df2594
r8: 0x17e8d090 r9: 0x00000001 r10: 0x0000000c r11: 0x00000002
ip: 0x00000148 sp: 0x27df2588 lr: 0x3a7a07b7 pc: 0x3a7381f0
cpsr: 0x00000010
I have tried opening on multiple devices & the same thing occurs. What should I do to resvole this issue?
From the look of the log you probably have the default Core Data stack in your code, and in the update modified your object model. You then have problems with migration on an version update. There in the Core Data template there is a nice call to abort() in the
- (NSPersistentStoreCoordinator *)persistentStoreCoordinator
method. There is a nice long comment about how it shouldn't appear in production code and some ideas on migration. I'd take a look in that method and verify the abort() is gone.

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

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).

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.

Accepted AppStore app crash on every device

Just released this morning an app that I tested on all possible devices and simulators, but when I downloaded it from the store the application crashes at startup. I have tested it on many devices and iOS versions, but the result is the same:
Incident Identifier: B34024C9-9F00-4E57-B3AB-068CFFC55119
CrashReporter Key: 81ac2324b459bfeeb1a13c007d9d04e59e6efaf2
Hardware Model: iPhone4,1
Process: iMatematica [9546]
Path: /var/mobile/Applications/CFFA51F9-52F9-4555-8C5B-1B2DDF5E2D5B/iMatematica.app/iMatematica
Identifier: iMatematica
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-08-04 07:24:08.703 +0200
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x35eb532c __pthread_kill + 8
1 libsystem_c.dylib 0x32a01208 pthread_kill + 48
2 libsystem_c.dylib 0x329fa298 abort + 88
3 iMatematica 0x0007eee0 0x1000 + 515808
4 CoreFoundation 0x355ff950 __handleUncaughtException + 68
5 libobjc.A.dylib 0x379a633e _objc_terminate + 122
6 libc++abi.dylib 0x359b53be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x359b544a std::terminate() + 14
8 libc++abi.dylib 0x359b681e __cxa_rethrow + 82
9 libobjc.A.dylib 0x379a62a2 objc_exception_rethrow + 6
10 CoreFoundation 0x35555506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x35555366 CFRunLoopRunInMode + 98
12 UIKit 0x33064864 -[UIApplication _run] + 544
13 UIKit 0x33061cce UIApplicationMain + 1074
14 iMatematica 0x00009a88 main (main.m:18)
15 iMatematica 0x000039b0 0x1000 + 10672
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x35ea53a8 kevent + 24
1 libdispatch.dylib 0x3448ff04 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x3448fc22 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x35eb5cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x329bcf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x329bccc8 start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x35eb5cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x329bcf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x329bccc8 start_wqthread + 0
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x35ea5004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x35ea51fa mach_msg + 50
2 CoreFoundation 0x355d33ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x355d2124 __CFRunLoopRun + 876
4 CoreFoundation 0x3555549e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x35555366 CFRunLoopRunInMode + 98
6 WebCore 0x31454c9c _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x329c272e _pthread_start + 314
8 libsystem_c.dylib 0x329c25e8 thread_start + 0
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x35ea5004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x35ea51fa mach_msg + 50
2 CoreFoundation 0x355d33ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x355d2124 __CFRunLoopRun + 876
4 CoreFoundation 0x3555549e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x35555366 CFRunLoopRunInMode + 98
6 Foundation 0x3508ebb2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
7 Foundation 0x3508ea7a -[NSThread main] + 66
8 Foundation 0x3512258a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x329c272e _pthread_start + 314
10 libsystem_c.dylib 0x329c25e8 thread_start + 0
Thread 6:
0 libsystem_kernel.dylib 0x35eb5cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x329bcf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x329bccc8 start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3ec0cd98 r6: 0x00000002 r7: 0x2fdff9c0
r8: 0x3f02bce0 r9: 0x00000000 r10: 0x0021f0a0 r11: 0x33410c0d
ip: 0x00000148 sp: 0x2fdff9b4 lr: 0x32a0120f pc: 0x35eb532c
cpsr: 0x00000010
The problem is only happening to me or is the same as last month: that is a problem of apple server that sign apps?
I solved the problem: changing the language from Italian (my native language) to English, the application works properly. This explains why the AppReview Team has not noticed the crash, and was due to a missing localization in a xib file: "Could not load NIB bundle: 'NSBundle (loaded)' with name 'MasterViewController'"

App Store crash report

My app got rejected from store and saying it's crashing. But we cannot reproduce the crash, not with simulator nor the devices. And looking at the crash report doesn't mean much. Any help or tips would be greatly appreciated. Here's the first crash report:
Date/Time: 2011-04-28 19:14:10.181 -0700
OS Version: iPhone OS 4.3.2 (8H7)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x624f7473
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x33b2b72a prepareForMethodLookup + 10
1 libobjc.A.dylib 0x33b27876 lookUpMethod + 34
2 libobjc.A.dylib 0x33b24ffa _class_lookupMethodAndLoadCache + 6
3 libobjc.A.dylib 0x33b24ce4 objc_msgSend_uncached + 20
4 UIKit 0x358b5ec2 -[UIApplication sendAction:to:from:forEvent:] + 78
5 UIKit 0x358b5e62 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
6 UIKit 0x358b5e34 -[UIControl sendAction:to:forEvent:] + 32
7 UIKit 0x358b5b86 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 350
8 UIKit 0x358b641c -[UIControl touchesEnded:withEvent:] + 336
9 UIKit 0x3589b52e _UIGestureRecognizerSortAndSendDelayedTouches + 2194
10 UIKit 0x3589abfa _UIGestureRecognizerUpdateObserver + 690
11 CoreFoundation 0x3039ca2e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 10
12 CoreFoundation 0x3039e45e __CFRunLoopDoObservers + 406
13 CoreFoundation 0x3039f754 __CFRunLoopRun + 848
14 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
15 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
16 GraphicsServices 0x35571418 GSEventRunModal + 108
17 GraphicsServices 0x355714c4 GSEventRun + 56
18 UIKit 0x358c7d62 -[UIApplication _run] + 398
19 UIKit 0x358c5800 UIApplicationMain + 664
20 MyApp 0x0000206e main (main.m:14)
21 MyApp 0x00002038 0x1000 + 4152
Thread 1:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x36100fbc kevent + 24
1 libdispatch.dylib 0x33d0b032 _dispatch_mgr_invoke + 706
2 libdispatch.dylib 0x33d0c03a _dispatch_queue_invoke + 86
3 libdispatch.dylib 0x33d0b5ea _dispatch_worker_thread2 + 186
4 libsystem_c.dylib 0x33e0a58a _pthread_wqthread + 258
5 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x360fdc00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x360fd758 mach_msg + 44
2 CoreFoundation 0x3039d2b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3039f562 __CFRunLoopRun + 350
4 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
6 WebCore 0x34c2627e RunWebThread(void*) + 382
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 5 name: com.apple.coremedia.player.async
Thread 5:
0 libsystem_kernel.dylib 0x360ffd18 __semwait_signal + 24
1 libsystem_c.dylib 0x33e30860 _pthread_cond_wait + 756
2 libsystem_c.dylib 0x33dd7eb2 pthread_cond_wait + 26
3 CoreMedia 0x3661d8f4 WaitOnCondition + 4
4 CoreMedia 0x3661d83a FigSemaphoreWaitRelative + 66
5 MediaToolbox 0x324a9a64 fpa_AsyncMovieControlThread + 48
6 CoreMedia 0x3663b4dc figThreadMain + 156
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x3662562e r1: 0x3665003c r2: 0x00000001 r3: 0x624f7473
r4: 0x001aa690 r5: 0x3662562e r6: 0x00000001 r7: 0x2fdfe57c
r8: 0x3662562e r9: 0x3edb2a18 r10: 0x001c36c0 r11: 0x001c36c0
ip: 0x345b6ff5 sp: 0x2fdfe570 lr: 0x345b987d pc: 0x345bd72a
cpsr: 0x600f0030
And the 2nd one:
Date/Time: 2011-04-28 19:14:03.591 -0700
OS Version: iPhone OS 4.3.2 (8H7)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x360ffa1c __pthread_kill + 8
1 libsystem_c.dylib 0x33e093b4 pthread_kill + 52
2 libsystem_c.dylib 0x33e01bf8 abort + 72
3 libstdc++.6.dylib 0x363fca64 __gnu_cxx::__verbose_terminate_handler() + 376
4 libobjc.A.dylib 0x33b2806c _objc_terminate + 104
5 libstdc++.6.dylib 0x363fae36 __cxxabiv1::__terminate(void (*)()) + 46
6 libstdc++.6.dylib 0x363fae8a std::terminate() + 10
7 libstdc++.6.dylib 0x363faf5a __cxa_throw + 78
8 libobjc.A.dylib 0x33b26c84 objc_exception_throw + 64
9 CoreFoundation 0x303c91b8 -[NSObject(NSObject) doesNotRecognizeSelector:] + 96
10 CoreFoundation 0x303c8642 ___forwarding___ + 502
11 CoreFoundation 0x3033f178 _CF_forwarding_prep_0 + 40
12 CoreFoundation 0x3033556a -[NSObject(NSObject) performSelector:withObject:withObject:] + 18
13 UIKit 0x358b5ec2 -[UIApplication sendAction:to:from:forEvent:] + 78
14 UIKit 0x358b5e62 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
15 UIKit 0x358b5e34 -[UIControl sendAction:to:forEvent:] + 32
16 UIKit 0x358b5b86 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 350
17 UIKit 0x358b5834 -[UIControl touchesBegan:withEvent:] + 180
18 UIKit 0x358b4baa -[UIWindow _sendTouchesForEvent:] + 294
19 UIKit 0x358b4568 -[UIWindow sendEvent:] + 256
20 UIKit 0x3589d30c -[UIApplication sendEvent:] + 292
21 UIKit 0x3589cc4c _UIApplicationHandleEvent + 5084
22 GraphicsServices 0x35571e70 PurpleEventCallback + 660
23 CoreFoundation 0x3039ca90 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
24 CoreFoundation 0x3039e838 __CFRunLoopDoSource1 + 160
25 CoreFoundation 0x3039f606 __CFRunLoopRun + 514
26 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
27 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
28 GraphicsServices 0x35571418 GSEventRunModal + 108
29 GraphicsServices 0x355714c4 GSEventRun + 56
30 UIKit 0x358c7d62 -[UIApplication _run] + 398
31 UIKit 0x358c5800 UIApplicationMain + 664
32 MyApp 0x0000206e main (main.m:14)
33 MyApp 0x00002038 0x1000 + 4152
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x36100fbc kevent + 24
1 libdispatch.dylib 0x33d0b032 _dispatch_mgr_invoke + 706
2 libdispatch.dylib 0x33d0c03a _dispatch_queue_invoke + 86
3 libdispatch.dylib 0x33d0b5ea _dispatch_worker_thread2 + 186
4 libsystem_c.dylib 0x33e0a58a _pthread_wqthread + 258
5 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 2:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x360fdc00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x360fd758 mach_msg + 44
2 CoreFoundation 0x3039d2b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3039f562 __CFRunLoopRun + 350
4 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
6 WebCore 0x34c2627e RunWebThread(void*) + 382
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 4 name: com.apple.coremedia.player.async
Thread 4:
0 libsystem_kernel.dylib 0x360ffd18 __semwait_signal + 24
1 libsystem_c.dylib 0x33e30860 _pthread_cond_wait + 756
2 libsystem_c.dylib 0x33dd7eb2 pthread_cond_wait + 26
3 CoreMedia 0x3661d8f4 WaitOnCondition + 4
4 CoreMedia 0x3661d83a FigSemaphoreWaitRelative + 66
5 MediaToolbox 0x324a9a64 fpa_AsyncMovieControlThread + 48
6 CoreMedia 0x3663b4dc figThreadMain + 156
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 5:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x3ee4648c r5: 0x00000006 r6: 0x001f1dac r7: 0x2fdfe0d4
r8: 0x0001d6cc r9: 0x00000065 r10: 0x001befb0 r11: 0x00000000
ip: 0x00000148 sp: 0x2fdfe0c8 lr: 0x3489b3bb pc: 0x36b91a1c
cpsr: 0x000f0010
The last one:
Date/Time: 2011-04-28 19:13:44.770 -0700
OS Version: iPhone OS 4.3.2 (8H7)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x624f7473
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x33b2b72a prepareForMethodLookup + 10
1 libobjc.A.dylib 0x33b27876 lookUpMethod + 34
2 libobjc.A.dylib 0x33b24ffa _class_lookupMethodAndLoadCache + 6
3 libobjc.A.dylib 0x33b24ce4 objc_msgSend_uncached + 20
4 UIKit 0x358b5ec2 -[UIApplication sendAction:to:from:forEvent:] + 78
5 UIKit 0x358b5e62 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
6 UIKit 0x358b5e34 -[UIControl sendAction:to:forEvent:] + 32
7 UIKit 0x358b5b86 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 350
8 UIKit 0x358b641c -[UIControl touchesEnded:withEvent:] + 336
9 UIKit 0x3589b52e _UIGestureRecognizerSortAndSendDelayedTouches + 2194
10 UIKit 0x3589abfa _UIGestureRecognizerUpdateObserver + 690
11 CoreFoundation 0x3039ca2e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 10
12 CoreFoundation 0x3039e45e __CFRunLoopDoObservers + 406
13 CoreFoundation 0x3039f754 __CFRunLoopRun + 848
14 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
15 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
16 GraphicsServices 0x35571418 GSEventRunModal + 108
17 GraphicsServices 0x355714c4 GSEventRun + 56
18 UIKit 0x358c7d62 -[UIApplication _run] + 398
19 UIKit 0x358c5800 UIApplicationMain + 664
20 MyApp 0x0000206e main (main.m:14)
21 MyApp 0x00002038 0x1000 + 4152
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x36100fbc kevent + 24
1 libdispatch.dylib 0x33d0b032 _dispatch_mgr_invoke + 706
2 libdispatch.dylib 0x33d0c03a _dispatch_queue_invoke + 86
3 libdispatch.dylib 0x33d0b5ea _dispatch_worker_thread2 + 186
4 libsystem_c.dylib 0x33e0a58a _pthread_wqthread + 258
5 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x360fdc00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x360fd758 mach_msg + 44
2 CoreFoundation 0x3039d2b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3039f562 __CFRunLoopRun + 350
4 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
6 WebCore 0x34c2627e RunWebThread(void*) + 382
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 3 name: com.apple.coremedia.player.async
Thread 3:
0 libsystem_kernel.dylib 0x360ffd18 __semwait_signal + 24
1 libsystem_c.dylib 0x33e30860 _pthread_cond_wait + 756
2 libsystem_c.dylib 0x33dd7eb2 pthread_cond_wait + 26
3 CoreMedia 0x3661d8f4 WaitOnCondition + 4
4 CoreMedia 0x3661d83a FigSemaphoreWaitRelative + 66
5 MediaToolbox 0x324a9a64 fpa_AsyncMovieControlThread + 48
6 CoreMedia 0x3663b4dc figThreadMain + 156
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x3662562e r1: 0x3665003c r2: 0x00000001 r3: 0x624f7473
r4: 0x00180af0 r5: 0x3662562e r6: 0x00000001 r7: 0x2fdfe57c
r8: 0x3662562e r9: 0x3edb2a18 r10: 0x0019b7c0 r11: 0x0019b7c0
ip: 0x345b6ff5 sp: 0x2fdfe570 lr: 0x345b987d pc: 0x345bd72a
cpsr: 0x600f0030
Does your app compile without any warnings?
If not, I'd suggest you tackle those first.

Resources