I am making an education app specifically designed for use in schools. When I started the project I didn't take into account how old many of the iPads in the school. Some of them are iOs 9.3.5 and these seem to be the troublesome ones. Because they are locked out I can't do much with them except read the error log but I don't see much info that would help me.
The crash seems to be a little random but always happens at view controller changes but some of them crash occasionally, others crash 100% of the time and others crash intermittantly. This is the code I use to change views:
let nextViewController = self.storyboard?.instantiateViewController(withIdentifier: "drawNotesViewController") as! drawNotesViewController
self.present(nextViewController, animated: true, completion: nil)
This is the crash report:
Incident Identifier: 9C9815CC-F932-4E28-AB1B-132B330430EE
CrashReporter Key: 344cf11c25d3ceced28918b31fcdb3a79aaea75e
Hardware Model: iPad2,5
Process: Reading Music Tests [847]
Path: /private/var/containers/Bundle/Application/4587C3D5-5A00-4B7C-9056-81BCB97A1B59/Reading Music Tests.app/Reading Music Tests
Identifier: ..
Version: 8 (0.9.7)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2018-10-17 09:40:28.28 +0100
Launch Time: 2018-10-17 09:31:59.59 +0100
OS Version: iOS 9.3.5 (13G36)
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000000000defe
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 Reading Music Tests 0x0014b9a4 0xfc000 + 326052
1 Reading Music Tests 0x0015eed4 0xfc000 + 405204
2 Reading Music Tests 0x0015e584 0xfc000 + 402820
3 Reading Music Tests 0x0015e7a8 0xfc000 + 403368
4 UIKit 0x2558ad8a -[UIViewController loadViewIfRequired] + 1026
5 UIKit 0x2558a970 -[UIViewController view] + 24
6 UIKit 0x25e1fec0 -[_UIFullscreenPresentationController _setPresentedViewController:] + 72
7 UIKit 0x258d6d00 -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 112
8 UIKit 0x258fa6e4 -[UIViewController _presentViewController:withAnimationController:completion:] + 3668
9 UIKit 0x258fcd24 __62-[UIViewController presentViewController:animated:completion:]_block_invoke + 336
10 UIKit 0x258fcf90 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 416
11 UIKit 0x25683db8 -[UIViewController presentViewController:animated:completion:] + 144
12 Reading Music Tests 0x0016a33e 0xfc000 + 451390
13 Reading Music Tests 0x0016a6ce 0xfc000 + 452302
14 UIKit 0x25af09ea _UIGestureRecognizerSendTargetActions + 142
15 UIKit 0x2572b84e _UIGestureRecognizerSendActions + 170
16 UIKit 0x255bcff0 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 1004
17 UIKit 0x25af1d4e ___UIGestureRecognizerUpdate_block_invoke898 + 62
18 UIKit 0x2557da56 _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 298
19 UIKit 0x2557a016 _UIGestureRecognizerUpdate + 2902
20 UIKit 0x255baec8 -[UIWindow _sendGesturesForEvent:] + 904
21 UIKit 0x255ba67a -[UIWindow sendEvent:] + 622
22 UIKit 0x2558b124 -[UIApplication sendEvent:] + 204
23 UIKit 0x255896d2 _UIApplicationHandleEventQueue + 5010
24 CoreFoundation 0x20fd1dfe __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
25 CoreFoundation 0x20fd19ec __CFRunLoopDoSources0 + 452
26 CoreFoundation 0x20fcfd5a __CFRunLoopRun + 794
27 CoreFoundation 0x20f1f228 CFRunLoopRunSpecific + 520
28 CoreFoundation 0x20f1f014 CFRunLoopRunInMode + 108
29 GraphicsServices 0x2250fac8 GSEventRunModal + 160
30 UIKit 0x255f3188 UIApplicationMain + 144
31 Reading Music Tests 0x00103a7e 0xfc000 + 31358
32 libdyld.dylib 0x20bc7872 start + 2
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x20c9c2f8 kevent_qos + 24
1 libdispatch.dylib 0x20b91d60 _dispatch_mgr_invoke + 256
2 libdispatch.dylib 0x20b91abe _dispatch_mgr_thread$VARIANT$mp + 38
Thread 2:
0 libsystem_kernel.dylib 0x20c9b864 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x20d41b34 _pthread_wqthread + 1036
2 libsystem_pthread.dylib 0x20d41718 start_wqthread + 8
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000002 r3: 0x00000202
r4: 0x155bf580 r5: 0x155bb5d0 r6: 0x00000000 r7: 0x002d9598
r8: 0x156cf8b0 r9: 0x155bf584 r10: 0x001b4158 r11: 0x00195912
ip: 0x00549d75 sp: 0x002d9530 lr: 0x0014b589 pc: 0x0014b9a4
cpsr: 0x60000030
Error Formulating Crash Report:
Failed while requesting activity/breadcrumb diagnostics
I hate just dumping crash reports on here and asking for help but I've been staring at it and can't work out what the error is. If there isn't a clear answer from the crash reports then I will go back to the project and see if I can see a pattern to what sets it off. So far all I know is it is intermittant which makes me concerned!
I discovered that it was a missing font that was not included in iOs until after 9.3.5. I have now learnt that those crash reports don't include enough info in this case so lesson learned!
Related
i got the problem with the App published in AppStore for a long time ago. The problem did appeared after update to iOS 8.0.2 and it seems to crash only on devices with iOS 8.0.2 by selecting UITableViewCell and pushing another UITableView. When a run the app in Simulator (iphone 6 with iOS 8.0) or on device (iphone 5s with iOS 8.0.2) i got no crashes!
Development with: Xcode Version 6.0.1 (6A317) and Simulator Version 8.0 (550.1)
This crash log i get from iphone 5s (myAppName and myCompanyName are placeholder):
Incident Identifier: 08332336-8EB8-46FE-A2EF-ABD2CE09881E
CrashReporter Key: 7ada6e35d37d8707ba1d6998b81491a622418c8e
Hardware Model: iPhone6,2
Process: myAppName [2629]
Path: /private/var/mobile/Containers/Bundle/Application/9C0AFA6C-8C2C-4A44-9DAA-27ABF1326EA1/myAppName.app/myAppName
Identifier: myCompanyName
Version: 3.0
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-10-08 17:40:14.116 +0200
Launch Time: 2014-10-08 17:40:12.799 +0200
OS Version: iOS 8.0.2 (12A405)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x24076e3f __exceptionPreprocess + 127
1 libobjc.A.dylib 0x31752c8b objc_exception_throw + 38
2 CoreFoundation 0x23f94ec3 -[__NSDictionaryM setObject:forKey:] + 850
3 myAppName 0x00043e23 0x3000 + 265763
4 myAppName 0x00043b3f 0x3000 + 265023
5 myAppName 0x00044339 0x3000 + 267065
6 UIKit 0x2761d1af __66-[UISectionRowData refreshWithSection:tableView:tableViewRowData:]_block_invoke + 514
7 UIKit 0x275e2bb3 -[UISectionRowData refreshWithSection:tableView:tableViewRowData:] + 4018
8 UIKit 0x275e1b41 -[UITableViewRowData rectForFooterInSection:heightCanBeGuessed:] + 328
9 UIKit 0x275e1981 -[UITableViewRowData heightForTable] + 56
10 UIKit 0x275e17b9 -[UITableView _updateContentSize] + 344
11 UIKit 0x275e7503 -[UITableView didMoveToWindow] + 70
12 UIKit 0x27511ff5 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1312
13 UIKit 0x27530da3 -[UIScrollView _didMoveFromWindow:toWindow:] + 50
14 UIKit 0x27511d65 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 656
15 UIKit 0x27511d65 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 656
16 UIKit 0x27511671 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 112
17 UIKit 0x2751158d -[UIView(Hierarchy) _postMovedFromSuperview:] + 428
18 UIKit 0x2751b9b3 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1434
19 UIKit 0x2751b413 -[UIView(Hierarchy) addSubview:] + 30
20 UIKit 0x275c74bf -[UINavigationTransitionView transition:fromView:toView:] + 478
21 UIKit 0x275c72db -[UINavigationTransitionView transition:toView:] + 26
22 UIKit 0x275beb67 -[UINavigationController _startTransition:fromViewController:toViewController:] + 2286
23 UIKit 0x275bdff3 -[UINavigationController _startDeferredTransitionIfNeeded:] + 578
24 UIKit 0x2759b1f7 -[UINavigationController pushViewController:transition:forceImmediate:] + 1506
25 UIKit 0x27807ba9 __54-[UINavigationController pushViewController:animated:]_block_invoke + 356
26 UIKit 0x2759ac03 -[UINavigationController pushViewController:animated:] + 494
27 myAppName 0x00006ea1 0x3000 + 16033
28 UIKit 0x2762b477 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 918
29 UIKit 0x276dcd7f -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 194
30 UIKit 0x2758ed0d _applyBlockToCFArrayCopiedToStack + 308
31 UIKit 0x2750ac4b _afterCACommitHandler + 458
32 CoreFoundation 0x2403d5cd __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20
33 CoreFoundation 0x2403ac8b __CFRunLoopDoObservers + 278
34 CoreFoundation 0x2403b093 __CFRunLoopRun + 914
35 CoreFoundation 0x23f89621 CFRunLoopRunSpecific + 476
36 CoreFoundation 0x23f89433 CFRunLoopRunInMode + 106
37 GraphicsServices 0x2b2f80a9 GSEventRunModal + 136
38 UIKit 0x27574359 UIApplicationMain + 1440
39 myAppName 0x00004df9 0x3000 + 7673
40 myAppName 0x00004d0c 0x3000 + 7436
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x31d98dfc __pthread_kill + 8
1 libsystem_pthread.dylib 0x31e16d33 pthread_kill + 59
2 libsystem_c.dylib 0x31d38905 abort + 73
3 libc++abi.dylib 0x310779c5 abort_message + 85
4 libc++abi.dylib 0x3109166d default_terminate_handler() + 265
5 libobjc.A.dylib 0x31752f23 _objc_terminate() + 191
6 libc++abi.dylib 0x3108ede1 std::__terminate(void (*)()) + 77
7 libc++abi.dylib 0x3108e8ab __cxa_rethrow + 99
8 libobjc.A.dylib 0x31752dcf objc_exception_rethrow + 39
9 CoreFoundation 0x23f896b9 CFRunLoopRunSpecific + 629
10 CoreFoundation 0x23f8942f CFRunLoopRunInMode + 103
11 GraphicsServices 0x2b2f80a5 GSEventRunModal + 133
12 UIKit 0x27574355 UIApplicationMain + 1437
13 myCompany 0x00004df5 0x3000 + 7669
14 myCompany 0x00004d08 0x3000 + 7432
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00000003
r4: 0x00000006 r5: 0x341bf9dc r6: 0x341ab840 r7: 0x001803f8
r8: 0x1764f6a0 r9: 0x00000000 r10: 0x341aa074 r11: 0x1764f6c4
ip: 0x00000148 sp: 0x001803ec lr: 0x31e16d37 pc: 0x31d98dfc
cpsr: 0x00000010
I think the problem can be on libraries which were updated with new iOS 8.0.2 or something like this.
I urgently need help to fix this issue!
I'm not sure its the same issue, but I also seeing some crashes coming from 8.0.2 and it has something to do with fonts.
For example I have this customization in my AppDelegate:
[[UILabel appearance] setFont:[UIFont fontWithName:#"HelveticaNeue-CondensedBold" size:14.0]];
Which lead to those crashes.
My app was rejected to a crash on launch. But tried to run it on a device by installing the app via itunes and testflight, I also implemented crashlytics in my app, but still I can't find the source of crash. What should I do?
We found your app crashed on launch so we were unable to review it.
Please revise your app and test it on a device to ensure it will
launch without crashing, and that it runs as expected, before
resubmitting.
Please see the attached crash logs.
For discrete code-level questions, you may wish to consult with Apple
Developer Technical Support. If you have crash logs, symbolicate the
crash logs before contacting Apple Developer Technical Support.
If you have difficulty reproducing this issue, please try testing the
workflow as described in Testing Workflow with Xcode's Archive
feature.
EDIT:
I tried to symbolicate the crash log and I saw that it crashes on thread 0 index 0 which is the getAllContacts function. I'm not sure what's the problem. here's the code:
- (NSMutableArray *)getAllContacts{
ABAddressBookRef addressBook = ABAddressBookCreate( );
CFArrayRef allPeople = ABAddressBookCopyArrayOfAllPeople( addressBook );
CFIndex nPeople = ABAddressBookGetPersonCount( addressBook );
NSMutableArray *contact = [[NSMutableArray alloc] init];
for ( int i = 0; i < nPeople; i++ )
{
ABRecordRef ref = CFArrayGetValueAtIndex( allPeople, i );
NSString *firstName = CFBridgingRelease(ABRecordCopyValue(ref, kABPersonFirstNameProperty));
NSString *lastName = CFBridgingRelease(ABRecordCopyValue(ref, kABPersonLastNameProperty));
if(lastName == nil && firstName != nil){
[contact addObject:[NSString stringWithFormat:#"%#", firstName]];
}
else if(lastName != nil && firstName == nil){
[contact addObject:[NSString stringWithFormat:#"%#", lastName]];
}
else{
[contact addObject:[NSString stringWithFormat:#"%# %#", firstName, lastName]];
}
}
CFRelease(addressBook);
CFRelease(allPeople);
NSLog(#"All Contacts: %#", contact);
return contact;
}
Here is the crash log after symbolication:
{"bundleID":"com.axon.undotext","app_name":"Undo Text","bug_type":"109","name":"Undo Text","os_version":"iPhone OS 7.1.1 (11D201)","version":"1.5 (1.0)"}
Incident Identifier: CDEE9887-DE46-4C7B-93D9-6F5B64C30448
CrashReporter Key: 814350e202fe6bd49117983388396d3d1b870da1
Hardware Model: xxx
Process: Undo Text [3268]
Path: /var/mobile/Applications/1F7938ED-7911-4838-8F79-26039EF3E386/Undo Text.app/Undo Text
Identifier: com.axon.undotext
Version: 1.5 (1.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-06-12 13:43:03.567 -0700
OS Version: iOS 7.1.1 (11D201)
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000000000defe
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 CoreFoundation 0x2eb0b3c5 CFRelease + 1137
1 Undo Text 0x00035897 -[ContactsManager getAllContacts] (ContactsManager.m:58)
2 Undo Text 0x00028d59 -[ViewController setupView] (ViewController.m:123)
3 Undo Text 0x00028901 -[ViewController viewDidLoad] (ViewController.m:65)
4 UIKit 0x3140ea4f -[UIViewController loadViewIfRequired] + 515
5 UIKit 0x3140e80d -[UIViewController view] + 21
6 UIKit 0x31485c39 -[UIClientRotationContext initWithClient:toOrientation:duration:andWindow:] + 385
7 UIKit 0x3148459d -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 1197
8 UIKit 0x314840e3 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 43
9 UIKit 0x3148406b -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 91
10 UIKit 0x31484003 -[UIWindow _setRotatableViewOrientation:duration:force:] + 39
11 UIKit 0x3147c67d __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke + 105
12 UIKit 0x31410695 -[UIWindow _updateToInterfaceOrientation:duration:force:] + 381
13 UIKit 0x31483d55 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 693
14 UIKit 0x31483825 -[UIViewController _tryBecomeRootViewControllerInWindow:] + 157
15 UIKit 0x31415611 -[UIWindow addRootViewControllerViewIfPossible] + 457
16 UIKit 0x31412dd5 -[UIWindow _setHidden:forced:] + 301
17 UIKit 0x3147ca4d -[UIWindow makeKeyAndVisible] + 57
18 UIKit 0x314796e1 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1817
19 UIKit 0x31473cc5 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 717
20 UIKit 0x3140fc93 -[UIApplication handleEvent:withNewEvent:] + 3547
21 UIKit 0x3140edf5 -[UIApplication sendEvent:] + 69
22 UIKit 0x31473401 _UIApplicationHandleEvent + 613
23 GraphicsServices 0x33a46b53 _PurpleEventCallback + 607
24 GraphicsServices 0x33a4673b PurpleEventCallback + 31
25 CoreFoundation 0x2eba5845 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 33
26 CoreFoundation 0x2eba57df __CFRunLoopDoSource1 + 343
27 CoreFoundation 0x2eba3fab __CFRunLoopRun + 1403
28 CoreFoundation 0x2eb0e765 CFRunLoopRunSpecific + 521
29 CoreFoundation 0x2eb0e547 CFRunLoopRunInMode + 103
30 UIKit 0x31472627 -[UIApplication _run] + 759
31 UIKit 0x3146d88d UIApplicationMain + 1133
32 Undo Text 0x0004deff main (main.m:16)
33 Undo Text 0x00027764 start + 36
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x39d52804 kevent64 + 24
1 libdispatch.dylib 0x39ca1051 _dispatch_mgr_invoke + 229
2 libdispatch.dylib 0x39c9b2df _dispatch_mgr_thread + 35
Thread 2:
0 libsystem_kernel.dylib 0x39d65c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39dcac1f _pthread_wqthread + 307
2 libsystem_pthread.dylib 0x39dcaad8 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x39d65c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39dcac1f _pthread_wqthread + 307
2 libsystem_pthread.dylib 0x39dcaad8 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x39f720f8 r2: 0x00000003 r3: 0x00000002
r4: 0x00000000 r5: 0x16e85070 r6: 0x00000000 r7: 0x00177300
r8: 0x00000144 r9: 0x3ba52e30 r10: 0x16e69890 r11: 0x31a3841a
ip: 0x2eb0af55 sp: 0x001772c0 lr: 0x0003589b pc: 0x2eb0b3c4
cpsr: 0x60000030
From CFRelease docs:
If cf is NULL, this will cause a runtime error and your application
will crash.
You need to check addressBook and allPeople to make sure they're not coming back as NULL. Apple is probably testing your app on a device with an empty address book, which is returning NULL, and is then getting passed to CFRelease, making your app crash.
Looks like your app is crashing while rotating, are you sure you properly tested this?
Especially starting your app while device is in landscape vs portrait.
Also something that can induce weird behaviors is starting an app with device rotated BUT with orientation locked.
And test on an actual device, not simulator, in rare cases you have different behaviors.
Also as others stated, learn to symbolicate, that would give you exact line where your code is crashing.
We migrated an iOS 6 app to iOS 7 without altering anything in particular beyond some minor adjustments. We tested the app on the 3, 4, 4S and 5S iPhones and reported no problem.
Now two users are reporting that the app crashes upon startup. I advised one of them to remove the app altogether and install again which resulted in the app running smoothly.
He forwarded the crash log to me but it's a little cryptic. Can anyone help me pinpoint the issue?
EDIT: Symbolicated crash log
Incident Identifier: 687B278C-313F-4533-81E8-0003428A3362
CrashReporter Key: b25d61923c16e6a67af8ea7bf81643ba93f4d1ea
Hardware Model: iPhone4,1
Process: RunControl [3488]
Path: /var/mobile/Applications/DB78DB79-2AB2-4ADD-89C8-BACDBB6BCCF3/RunControl.app/RunControl
Identifier: com.gsddl.RunControl
Version: 1.5 (1.5)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-03-10 09:49:34.065 +0100
OS Version: iOS 7.0.6 (11B651)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 3
Last Exception Backtrace:
0 CoreFoundation 0x2dbbbf46 __exceptionPreprocess + 126
1 libobjc.A.dylib 0x37f4b6aa objc_exception_throw + 34
2 CoreFoundation 0x2dbbbe88 +[NSException raise:format:] + 100
3 Foundation 0x2e4dd448 -[NSString stringByAppendingString:] + 84
4 RunControl 0x000b2302 -[RunControlAppDelegate downloadData] (RunControlAppDelegate.m:297)
5 Foundation 0x2e59fc82 __NSThread__main__ + 1058
6 libsystem_pthread.dylib 0x38572c18 _pthread_body + 136
7 libsystem_pthread.dylib 0x38572b8a _pthread_start + 98
8 libsystem_pthread.dylib 0x38570c8c thread_start + 4
Thread 0:
0 libsystem_kernel.dylib 0x38509014 0x384f7000 + 73748
1 libsystem_pthread.dylib 0x38572a74 pthread_create + 156
2 Foundation 0x2e50fb00 -[NSThread start] + 284
3 RunControl 0x000b20c4 -[RunControlAppDelegate initData] (RunControlAppDelegate.m:274)
4 RunControl 0x000b0f58 -[RunControlAppDelegate application:didFinishLaunchingWithOptions:] (RunControlAppDelegate.m:32)
5 UIKit 0x3039f2fa -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 270
6 UIKit 0x3039ed4a -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1386
7 UIKit 0x3039934e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 710
8 UIKit 0x3033441a -[UIApplication handleEvent:withNewEvent:] + 3126
9 UIKit 0x3033371c -[UIApplication sendEvent:] + 68
10 UIKit 0x30398b38 _UIApplicationHandleEvent + 660
11 GraphicsServices 0x327cf70a _PurpleEventCallback + 606
12 GraphicsServices 0x327cf2f2 PurpleEventCallback + 30
13 CoreFoundation 0x2db869dc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
14 CoreFoundation 0x2db86976 __CFRunLoopDoSource1 + 342
15 CoreFoundation 0x2db8514a __CFRunLoopRun + 1394
16 CoreFoundation 0x2daefc22 CFRunLoopRunSpecific + 518
17 CoreFoundation 0x2daefa06 CFRunLoopRunInMode + 102
18 UIKit 0x30397dd4 -[UIApplication _run] + 756
19 UIKit 0x30393044 UIApplicationMain + 1132
20 RunControl 0x000b0f1a main (main.m:16)
21 RunControl 0x000b0edc start + 36
Thread 1:
0 libsystem_kernel.dylib 0x384f783c 0x384f7000 + 2108
1 libdispatch.dylib 0x38442e08 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3843239e _dispatch_mgr_thread$VARIANT$up + 34
Thread 2:
0 libsystem_kernel.dylib 0x3850ac7c 0x384f7000 + 81020
1 libsystem_pthread.dylib 0x38570dc6 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38570c80 start_wqthread + 4
Thread 3 Crashed:
0 libsystem_kernel.dylib 0x3850a1fc 0x384f7000 + 78332
1 libsystem_pthread.dylib 0x38573a2e pthread_kill + 54
2 libsystem_c.dylib 0x384baff8 abort + 72
3 libc++abi.dylib 0x377e9cd2 abort_message + 70
4 libc++abi.dylib 0x378026e0 default_terminate_handler() + 248
5 libobjc.A.dylib 0x37f4b91e _objc_terminate() + 190
6 libc++abi.dylib 0x378001c4 std::__terminate(void (*)()) + 76
7 libc++abi.dylib 0x377ffa18 __cxa_throw + 112
8 libobjc.A.dylib 0x37f4b77e objc_exception_throw + 246
9 CoreFoundation 0x2dbbbe88 +[NSException raise:format:] + 100
10 Foundation 0x2e4dd448 -[NSString stringByAppendingString:] + 84
11 RunControl 0x000b2302 -[RunControlAppDelegate downloadData] (RunControlAppDelegate.m:297)
12 Foundation 0x2e59fc82 __NSThread__main__ + 1058
13 libsystem_pthread.dylib 0x38572c1a _pthread_body + 138
14 libsystem_pthread.dylib 0x38572b8a _pthread_start + 98
15 libsystem_pthread.dylib 0x38570c8c thread_start + 4
Thread 3 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00002060
r4: 0x00000006 r5: 0x026f1000 r6: 0x00000000 r7: 0x026effb4
r8: 0x16dbd9d0 r9: 0x00000001 r10: 0x16d52ce0 r11: 0x00000000
ip: 0x00000148 sp: 0x026effa8 lr: 0x38573a33 pc: 0x3850a1fc
cpsr: 0x00000010
And RunControlAppDelegate.m (around 297):
[295] - (void) downloadData {
[296] NSString *stringURL = [config valueForKey:#"Users"];
[297] NSURL *url = [NSURL URLWithString:[self.URL stringByAppendingString:stringURL]];
[298] NSData *urlData = [NSData dataWithContentsOfURL:url];
...
I would venture to guess your update included 64 bit update iOS7 + iPhone5 and your data might be formatted with incorrect formatter:
ie: [NSString stringWithFormat:#"Some foo %d"];
This might work with 32 bit int but it will fail on a 64 bit platform.
Are there any warnings when you compile your binary?
The reference to stringURL was indeed nil which resulted in the crash. This was due to a silly race condition.
There is no method from my app referenced in this crash report, and I have not been able to reproduce it. Several of my users are having the same crash. I can't find any tableview cells with a scrollview or any place where I use a spring. Where could this crash be coming from?
Incident Identifier: 748D4582-3868-42BD-BF98-B3B47895954D
CrashReporter Key: F7F44964-E877-4C7A-881C-91EBC4261080
Hardware Model: iPhone5,1
Process: MyApp [2415]
Path: /Users/USER/MyApp.app/MyApp
Identifier: com.mycom.myapp
Version: 1.5.1
Code Type: ARM
Parent Process: launchd [1]
Date/Time: 2013-11-21 05:30:47 +0000
OS Version: iPhone OS 7.0.4 (11B554a)
Report Version: 104
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x5000000c
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x3921fb66 objc_msgSend + 5
1 UIKit 0x3177e315 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:] + 409
2 UIKit 0x317266cd -[UITableView _updateVisibleCellsNow:] + 1800
3 UIKit 0x31719f75 -[UITableView _visibleCells] + 24
4 UIKit 0x31783f13 -[UITableView indexPathForCell:] + 26
5 UIKit 0x31782289 -[UITableViewCell _canDoSeparatorLayout] + 64
6 UIKit 0x31781e19 -[UITableViewCell _updateSeparatorContent] + 56
7 UIKit 0x31844a3b -[UITableViewCell _updateViewsForDeleteButton] + 218
8 UIKit 0x3171c673 -[UITableViewCellScrollView setContentOffset:] + 186
9 UIKit 0x31880561 __43-[UITableViewCell _animateSwipeCancelation]_block_invoke + 81
10 UIKit 0x31681113 +[UIView _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 490
11 UIKit 0x317a66ef +[UIView _animateUsing WithDuration:delay:options:mass:stiffness:damping:initialVelocity:animations:start:completion:] + 166
12 UIKit 0x317a663f +[UIView _animateUsingSpringWithDuration:delay:options:mass:stiffness:damping:initialVelocity:animations:completion:] + 90
13 UIKit 0x318804bf -[UITableViewCell _animateSwipeCancelation] + 278
14 UIKit 0x31850639 -[UITableView _endSwipeToDeleteRowDidDelete:] + 216
15 UIKit 0x31901873 -[UITableView willMoveToSuperview:] + 62
16 UIKit 0x318e1913 __UIViewWillBeRemovedFromSuperview + 151
17 UIKit 0x3164a091 -[UIView removeFromSuperview] + 56
18 UIKit 0x3171e431 -[UIScrollView removeFromSuperview] + 64
19 UIKit 0x3164c9b3 -[UIView dealloc] + 366
20 libobjc.A.dylib 0x39221023 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 359
21 CoreFoundation 0x2edfb1c9 _CFAutoreleasePoolPop + 16
22 CoreFoundation 0x2ee90e83 __CFRunLoopRun + 1315
23 CoreFoundation 0x2edfb471 CFRunLoopRunSpecific + 524
24 CoreFoundation 0x2edfb253 CFRunLoopRunInMode + 106
25 GraphicsServices 0x33b352eb GSEventRunModal + 138
26 UIKit 0x316b0845 UIApplicationMain + 1136
27 MyApp 0x000e810b main (main.m:5)
28 libdyld.dylib 0x3971dab7 start + 3
Thread 1:
0 libsystem_kernel.dylib 0x397c1838 kevent64 + 24
1 libdispatch.dylib 0x3970a623 _dispatch_mgr_thread + 39
Thread 2:
0 libsystem_kernel.dylib 0x397d4c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39838cc4 start_wqthread + 8
Thread 3:
0 libsystem_kernel.dylib 0x397d4c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39838cc4 start_wqthread + 8
Thread 4:
0 libsystem_kernel.dylib 0x397d4c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39838cc4 start_wqthread + 8
Thread 5:
0 libsystem_kernel.dylib 0x397c1a84 mach_msg_trap + 20
1 CoreFoundation 0x2ee92559 __CFRunLoopServiceMachPort + 157
2 CoreFoundation 0x2ee90c79 __CFRunLoopRun + 793
3 CoreFoundation 0x2edfb471 CFRunLoopRunSpecific + 524
4 CoreFoundation 0x2ee3f0db CFRunLoopRun + 98
5 CoreMotion 0x2f4b3369 CLSF_thorntonUpdate_6x6 + 57225
6 libsystem_pthread.dylib 0x3983ac5d _pthread_body + 141
7 libsystem_pthread.dylib 0x3983abcf _pthread_start + 102
8 libsystem_pthread.dylib 0x39838cd0 thread_start + 8
Thread 0 crashed with ARM Thread State:
pc: 0x3921fb66 r7: 0x27d21618 sp: 0x27d215f4 r0: 0x17f82270
r1: 0x31c343d7 r2: 0x189d9e00 r3: 0x17d46730 r4: 0x189d9e00
r5: 0x00000338 r6: 0x17e0e340 r8: 0x39e43294 r9: 0x50000000
r10: 0x17d46730 r11: 0x000001d0 ip: 0x39d3e220 lr: 0x3177e315
cpsr: 0x20000030
This is what I can see looking at the crash report:
The crash is caused bei SIGSEGV in objc_msgSend. This means the app is trying to send a message to an object that is invalid. This means you have at least one memory problem in your app (somewhere).
It looks like the problem happens when trying to delete a row in a tableView using the swipe to delete gesture, see -[UITableView _endSwipeToDeleteRowDidDelete:] showing up in the stack trace and additional hints above like -[UITableViewCell _animateSwipeCancelation], -[UITableViewCell _updateViewsForDeleteButton].
So it might be worth a try checking this use case in all table views in your app.
In addition use the Analyze feature of Xcode and fix all warnings it shows and also try running your app with Enable Zombie Objects set. There a lots of websites and also answers here on SO explaining how to do that.
my app was rejected for a crash that i didn't notice on the simulator.
Here are the logs, (already imported on XCode > Organizer ) can someone help me with this?
Incident Identifier: 88AD655D-3540-419C-A883-EFCEEB8CFE16
CrashReporter Key: 6b6d313765323bdd8ad35c9b99c487d423fd70ab
Hardware Model: iPad2,2
Process: MyApp [7983]
Path: /var/mobile/Applications/F9B518BA-1F72-449C-B584-45E77ECB9CB8/MyApp.app/MyApp
Identifier: MyApp
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2011-09-21 17:14:13.004 -0700
OS Version: iPhone OS 4.3.5 (8L1)
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 0x361eda1c 0x361dc000 + 72220
1 libsystem_c.dylib 0x322df3b4 0x322ac000 + 209844
2 libsystem_c.dylib 0x322d7bf8 0x322ac000 + 179192
3 libstdc++.6.dylib 0x32729a64 0x326e5000 + 281188
4 libobjc.A.dylib 0x336b606c 0x336b0000 + 24684
5 libstdc++.6.dylib 0x32727e36 0x326e5000 + 273974
6 libstdc++.6.dylib 0x32727e8a 0x326e5000 + 274058
7 libstdc++.6.dylib 0x32727f5a 0x326e5000 + 274266
8 libobjc.A.dylib 0x336b4c84 0x336b0000 + 19588
9 CoreFoundation 0x35b4848a +[NSException raise:format:arguments:] + 62
10 CoreFoundation 0x35b484c4 +[NSException raise:format:] + 28
11 UIKit 0x32a51a4c -[UINib instantiateWithOwner:options:] + 1104
12 UIKit 0x32a52e02 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 86
13 UIKit 0x329cc5e2 -[UIViewController _loadViewFromNibNamed:bundle:] + 30
14 UIKit 0x32999f9e -[UIViewController loadView] + 74
15 UIKit 0x328e1b1e -[UITableViewController loadView] + 46
16 UIKit 0x3287eeb8 -[UIViewController view] + 24
17 UIKit 0x3288d5e8 -[UIViewController contentScrollView] + 16
18 UIKit 0x3288d458 -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 24
19 UIKit 0x3288d356 -[UINavigationController _layoutViewController:] + 18
20 UIKit 0x3288ce2e -[UINavigationController _startTransition:fromViewController:toViewController:] + 374
21 UIKit 0x3288cc3c -[UINavigationController _startDeferredTransitionIfNeeded] + 176
22 UIKit 0x3288cb80 -[UINavigationController viewWillLayoutSubviews] + 8
23 UIKit 0x3288cb1c -[UILayoutContainerView layoutSubviews] + 132
24 UIKit 0x3284d5f4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 20
25 CoreFoundation 0x35ab5efc -[NSObject(NSObject) performSelector:withObject:] + 16
26 QuartzCore 0x309ffbae -[CALayer layoutSublayers] + 114
27 QuartzCore 0x309ff966 CALayerLayoutIfNeeded + 178
28 QuartzCore 0x30a051be CA::Context::commit_transaction(CA::Transaction*) + 206
29 QuartzCore 0x30a04fd0 CA::Transaction::commit() + 184
30 QuartzCore 0x309fe04e CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 50
31 CoreFoundation 0x35b1fa2e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 10
32 CoreFoundation 0x35b2145e __CFRunLoopDoObservers + 406
33 CoreFoundation 0x35b22754 __CFRunLoopRun + 848
34 CoreFoundation 0x35ab2ebc CFRunLoopRunSpecific + 224
35 CoreFoundation 0x35ab2dc4 CFRunLoopRunInMode + 52
36 GraphicsServices 0x308a7418 GSEventRunModal + 108
37 GraphicsServices 0x308a74c4 GSEventRun + 56
38 UIKit 0x32876d62 -[UIApplication _run] + 398
39 UIKit 0x32874800 UIApplicationMain + 664
40 MyApp 0x00002622 0x1000 + 5666
41 MyApp 0x000025ec 0x1000 + 5612
Thread 1:
0 libsystem_kernel.dylib 0x361ee3ec 0x361dc000 + 74732
1 libsystem_c.dylib 0x322e06d8 0x322ac000 + 214744
2 libsystem_c.dylib 0x322e0bbc 0x322ac000 + 215996
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x361eefbc 0x361dc000 + 77756
1 libdispatch.dylib 0x31d33ed4 _dispatch_mgr_invoke + 744
2 libdispatch.dylib 0x31d34f3a _dispatch_queue_invoke + 70
3 libdispatch.dylib 0x31d344ec _dispatch_worker_thread2 + 228
4 libsystem_c.dylib 0x322e058a 0x322ac000 + 214410
5 libsystem_c.dylib 0x322e0bbc 0x322ac000 + 215996
Thread 3:
0 libsystem_kernel.dylib 0x361ee3ec 0x361dc000 + 74732
1 libsystem_c.dylib 0x322e06d8 0x322ac000 + 214744
2 libsystem_c.dylib 0x322e0bbc 0x322ac000 + 215996
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x361ebc00 0x361dc000 + 64512
1 libsystem_kernel.dylib 0x361eb758 0x361dc000 + 63320
2 CoreFoundation 0x35b202b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x35b22562 __CFRunLoopRun + 350
4 CoreFoundation 0x35ab2ebc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x35ab2dc4 CFRunLoopRunInMode + 52
6 WebCore 0x35d8327e _ZL12RunWebThreadPv + 382
7 libsystem_c.dylib 0x322df30a 0x322ac000 + 209674
8 libsystem_c.dylib 0x322e0bb4 0x322ac000 + 215988
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x3f42b48c r5: 0x00000006 r6: 0x0054f56c r7: 0x2fdfd3e8
r8: 0x3f1b2964 r9: 0x00000065 r10: 0x00537f10 r11: 0x368d9d97
ip: 0x00000148 sp: 0x2fdfd3dc lr: 0x322df3bb pc: 0x361eda1c
cpsr: 0x000f0010
Apple said
We found that your app crashed on iPad 2 running iOS 4.3.5, which is
not in compliance with the App Store Review Guidelines.
Specifically, we noticed that your app crashes when selecting the
"Favorites" tab.
But to me, Favorites Tab works fine (even if i don't have an iPad, i work through the simulator)
Thanks
This appears to be the same problem with the SDK bug in 4.3.5 related to the method loadNibNamed.
See the accepted answer to this question for temporary resolution until Apple release a fix: UIImageView initWithCoder - unrecognized selector sent to instance... iOS 5 beta SDK
The question relates to iOS 5 beta. However, I believe it is the same ongoing problem.