Strange crash when presenting view controller - ios

I get a strange crash when presenting a modal view controller on iOS 7, it only happens on iPhone 5C I haven't been able to repro on the iPhone 5 or 5s. I've attached the crash log below, as well as the code that presents the view controller. I used the presenting view controller as the transitioning delegate to have a custom fade in effect. Please let me know if you need any more information about this.
Code to present:
PresentedViewController *vc = [[PresentedViewController alloc] init];
vc.transitioningDelegate = self;
vc.modalPresentationStyle = UIModalPresentationCustom;
[self presentViewController:vc animated:YES completion:nil];
Crash Log:
Incident Identifier: 161D4D3E-146F-4CC6-A13C-66BF6305942F
CrashReporter Key: DCFCE3DE-6815-4EA6-85A5-AD5006E34125
Hardware Model: iPhone5,3
Process: AppName [10236]
Path: /Users/USER/AppName.app/AppName
Identifier: com.appname
Version: 4
Code Type: ARM
Parent Process: launchd [1]
Date/Time: 2014-09-02T20:31:52Z
OS Version: iPhone OS 7.0.4 (11B554a)
Report Version: 104
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0xb006dbcc
Crashed Thread: 0
Application Specific Information:
Selector name found in current argument registers: isHeaderFlaggedFPO
Thread 0 Crashed:
0 libobjc.A.dylib 0x395c277a lookUpImpOrForward + 46
1 libobjc.A.dylib 0x395bb02b _class_lookupMethodAndLoadCache3 + 32
2 libobjc.A.dylib 0x395badf9 _objc_msgSend_uncached + 22
3 CoreUI 0x3339bd0d -[CUIStructuredThemeStore renditionWithKey:] + 1050
4 CoreUI 0x333a50af -[CUINamedImage _renditionForSpecificKey:] + 168
5 CoreUI 0x333a50fd -[CUINamedImage image] + 18
6 UIKit 0x31a02c01 -[_UIAssetManager imageNamed:scale:idiom:subtype:cachingOptions:] + 258
7 UIKit 0x31a02af7 -[_UIAssetManager imageNamed:scale:idiom:subtype:] + 36
8 UIKit 0x31a02acd -[_UIAssetManager imageNamed:idiom:subtype:] + 42
9 UIKit 0x31a02a9b -[_UIAssetManager imageNamed:idiom:] + 44
10 UIKit 0x31d47ab1 -[UIImageNibPlaceholder initWithCoder:] + 286
11 UIKit 0x31ddd1d9 UINibDecoderDecodeObjectForValue + 738
12 UIKit 0x31ddceef -[UINibDecoder decodeObjectForKey:] + 88
13 UIKit 0x31cb61db -[UIImageView initWithCoder:] + 88
14 UIKit 0x31ddd1d9 UINibDecoderDecodeObjectForValue + 738
15 UIKit 0x31ddd179 UINibDecoderDecodeObjectForValue + 642
16 UIKit 0x31ddceef -[UINibDecoder decodeObjectForKey:] + 88
17 UIKit 0x31c7996d -[UIView initWithCoder:] + 650
18 UIKit 0x31ddd1d9 UINibDecoderDecodeObjectForValue + 738
19 UIKit 0x31ddd179 UINibDecoderDecodeObjectForValue + 642
20 UIKit 0x31ddceef -[UINibDecoder decodeObjectForKey:] + 88
21 UIKit 0x31c7996d -[UIView initWithCoder:] + 650
22 UIKit 0x31ddd1d9 UINibDecoderDecodeObjectForValue + 738
23 UIKit 0x31ddceef -[UINibDecoder decodeObjectForKey:] + 88
24 UIKit 0x31d46c1f -[UIRuntimeConnection initWithCoder:] + 148
25 UIKit 0x31ddd1d9 UINibDecoderDecodeObjectForValue + 738
26 UIKit 0x31ddd179 UINibDecoderDecodeObjectForValue + 642
27 UIKit 0x31ddceef -[UINibDecoder decodeObjectForKey:] + 88
28 UIKit 0x31d463f5 -[UINib instantiateWithOwner:options:] + 886
29 UIKit 0x31ca80fb -[UIViewController _loadViewFromNibNamed:bundle:] + 232
30 UIKit 0x31b09b59 -[UIViewController loadView] + 90
31 UIKit 0x319eb79d -[UIViewController loadViewIfRequired] + 70
32 UIKit 0x319eb719 -[UIViewController view] + 22
33 UIKit 0x31a955cf -[UIViewController shouldAutorotate] + 24
34 UIKit 0x31ad1c97 -[UIViewController _preferredInterfaceOrientationForPresentationInWindow:fromInterfaceOrientation:] + 248
35 UIKit 0x31ad05c5 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:] + 2058
36 UIKit 0x31acf631 -[UIViewController presentViewController:withTransition:completion:] + 4674
37 AppName 0x000c4b9d -[PresentingViewController storePurchaseSuccessWithType:andUser:] (PresentingViewController.m:221)
38 AppName 0x000c5179 __54-[PresentingViewController alertView:clickedButtonAtIndex:]_block_invoke (PresentingViewController.m:245)
39 AppName 0x00225687 -[RACSubscriber sendNext:] (RACSubscriber.m:73)
40 AppName 0x0020d447 -[RACPassthroughSubscriber sendNext:] (RACPassthroughSubscriber.m:74)
41 AppName 0x00225687 -[RACSubscriber sendNext:] (RACSubscriber.m:73)
42 AppName 0x0020eda1 __29-[RACReturnSignal subscribe:]_block_invoke (RACReturnSignal.m:85)
43 AppName 0x00225f15 -[RACSubscriptionScheduler schedule:] (RACSubscriptionScheduler.m:40)
44 AppName 0x0020ed37 -[RACReturnSignal subscribe:] (RACReturnSignal.m:84)
45 AppName 0x00220aa5 -[RACSignal(Subscription) subscribeNext:error:completed:] (RACSignal.m:302)
46 AppName 0x0021f2df __29-[RACSignal(RACStream) bind:]_block_invoke76 (RACSignal.m:139)
47 AppName 0x0021f521 __29-[RACSignal(RACStream) bind:]_block_invoke113 (RACSignal.m:165)
48 AppName 0x00225687 -[RACSubscriber sendNext:] (RACSubscriber.m:73)
49 AppName 0x0020d447 -[RACPassthroughSubscriber sendNext:] (RACPassthroughSubscriber.m:74)
50 AppName 0x0020d447 -[RACPassthroughSubscriber sendNext:] (RACPassthroughSubscriber.m:74)
51 AppName 0x00224ccd -[RACSubject enumerateSubscribersUsingBlock:] (RACSubject.m:85)
52 AppName 0x00224dad -[RACSubject sendNext:] (RACSubject.m:92)
53 AppName 0x0020e65d -[RACReplaySubject sendNext:] (RACReplaySubject.m:89)
54 AppName 0x0008fa3d __71-[AFURLConnectionOperation(RACSupport) rac_overrideHTTPCompletionBlock]_block_invoke (AFURLConnectionOperation+RACSupport.m:42)
55 libdispatch.dylib 0x39aa40c3 _dispatch_call_block_and_release + 8
56 libdispatch.dylib 0x39aa40af _dispatch_client_callout + 20
57 libdispatch.dylib 0x39aa69a9 _dispatch_main_queue_callback_4CF + 266
58 CoreFoundation 0x2f22d5b1 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 6
59 CoreFoundation 0x2f22be7d __CFRunLoopRun + 1306
60 CoreFoundation 0x2f196471 CFRunLoopRunSpecific + 522
61 CoreFoundation 0x2f196253 CFRunLoopRunInMode + 104
62 GraphicsServices 0x33ed02eb GSEventRunModal + 136
63 UIKit 0x31a4b845 UIApplicationMain + 1134
64 AppName 0x000ab367 main (main.m:16)
65 libdyld.dylib 0x39ab8ab7 start + 0

Related

migrated project from xcode 8 to xcode 9 crash on launcher screen

Everything was working fine on xcode 7.3.1, Than I have to add braintree 3ds sdk which is supported on xcode 8. So, I migrated the code to xcode 8 and than xcode 9. Now, build working fine on below IOS 11 but on ios 11 and above app is crashing before opening new main screen. I am new to Ios please help.
it's crashing on this line :
let vc = storyboard?.instantiateViewController(withIdentifier: "KbNav") as! KabNavigationController
2018-08-30 12:25:52.730641+0500 Kab[2970:32711] *** Assertion failure in
-[_UINavigationBarVisualProviderModernIOS _contentViewFittingHeight],
/BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-
3698.33.6/_UINavigationBarVisualProviderModernIOS.m:569
2018-08-30 12:25:52.769549+0500 Kab[2970:32711] *** Terminating app due
to uncaught exception 'NSInternalInconsistencyException', reason: 'Sigh.
Contentview size is zero.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000115da712b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000114d50f41 objc_exception_throw + 48
2 CoreFoundation 0x0000000115dac2f2 +[NSException raise:format:arguments:] + 98
3 Foundation 0x00000001147f1d69 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
4 UIKit 0x00000001131382f5 -[_UINavigationBarVisualProviderModernIOS _contentViewFittingHeight] + 265
5 UIKit 0x0000000112eb65e0 -[UINavigationItem _desiredHeightForBarMetrics:defaultHeightBlock:] + 90
6 UIKit 0x000000011313afa1 -[_UINavigationBarVisualProviderModernIOS heightRangeFittingWidth:] + 412
7 UIKit 0x000000011264a0ed -[UINavigationBar _heightRangeForNavigationItem:fittingWidth:] + 210
8 UIKit 0x0000000112726a98 -[UINavigationController _intrinsicNavigationBarHeightRangeForViewController:] + 187
9 UIKit 0x00000001127269b6 -[UINavigationController _preferredHeightForHidingNavigationBarForViewController:] + 628
10 UIKit 0x000000011271688f -[UINavigationController _positionNavigationBarHidden:edge:initialOffset:] + 356
11 UIKit 0x0000000112716cf8 -[UINavigationController _positionNavigationBarHidden:edge:] + 388
12 UIKit 0x000000011271e555 -[UINavigationController loadView] + 243
13 UIKit 0x00000001126e105c -[UIViewController loadViewIfRequired] + 195
14 UIKit 0x00000001126e18b9 -[UIViewController view] + 27
15 Kab 0x000000010f00faea -[SlideNavigationController setEnableShadow:] + 74
16 Kab 0x000000010f00d494 -[SlideNavigationController setup] + 244
17 Kab 0x000000010f00d1d1 -[SlideNavigationController initWithCoder:] + 145
18 Kab 0x000000010f20e1d6 _T08Kab0A20NavigationControllerCACSgSo7NSCoderC5coder_tcfc + 214
19 Kab 0x000000010f20e29f _T08Kab0A20NavigationControllerCACSgSo7NSCoderC5coder_tcfcTo + 47
20 UIKit 0x00000001129ca4c8 -[UIClassSwapper initWithCoder:] + 246
21 UIKit 0x0000000112c1f109 UINibDecoderDecodeObjectForValue + 704
22 UIKit 0x0000000112c1ee3e -[UINibDecoder decodeObjectForKey:] + 89
23 UIKit 0x000000011264675a -[UINavigationBar initWithCoder:] + 753
24 UIKit 0x0000000112c1f109 UINibDecoderDecodeObjectForValue + 704
25 UIKit 0x0000000112c1ee3e -[UINibDecoder decodeObjectForKey:] + 89
26 UIKit 0x0000000112eb15f2 -[UINavigationItem initWithCoder:] + 1018
27 UIKit 0x0000000112c1f109 UINibDecoderDecodeObjectForValue + 704
28 UIKit 0x0000000112c1ee3e -[UINibDecoder decodeObjectForKey:] + 89
29 UIKit 0x00000001126dc053 -[UIViewController initWithCoder:] + 432
30 Kab 0x000000010f29a6a8 _T08Kab18HomeViewControllerCACSgSo7NSCoderC5coder_tcfc + 7704
31 Kab 0x000000010f29a77f _T08Kab18HomeViewControllerCACSgSo7NSCoderC5coder_tcfcTo + 47
32 UIKit 0x00000001129ca4c8 -[UIClassSwapper initWithCoder:] + 246
33 UIKit 0x0000000112c1f109 UINibDecoderDecodeObjectForValue + 704
34 UIKit 0x0000000112c1ee3e -[UINibDecoder decodeObjectForKey:] + 89
35 UIKit 0x00000001129ca194 -[UIRuntimeConnection initWithCoder:] + 178
36 UIKit 0x00000001129ca8d0 -[UIRuntimeEventConnection initWithCoder:] + 59
37 UIKit 0x0000000112c1f109 UINibDecoderDecodeObjectForValue + 704
38 UIKit 0x0000000112c1f2a7 UINibDecoderDecodeObjectForValue + 1118
39 UIKit 0x0000000112c1ee3e -[UINibDecoder decodeObjectForKey:] + 89
40 UIKit 0x00000001129c9391 -[UINib instantiateWithOwner:options:] + 1262
41 UIKit 0x0000000112e59fc2 -[UIStoryboard instantiateViewControllerWithIdentifier:] + 181
42 Kab 0x000000010f135a7b _T08Kabr24LaunchTourViewControllerC4skipyyXlF + 219
43 Kab 0x000000010f136118 _T08Kab24LaunchTourViewControllerC4skipyyXlFTo + 56
44 UIKit 0x000000011253a972 -[UIApplication sendAction:to:from:forEvent:] + 83
45 UIKit 0x00000001126b9c3c -[UIControl sendAction:to:forEvent:] + 67
46 UIKit 0x00000001126b9f59 -[UIControl _sendActionsForEvents:withEvent:] + 450
47 UIKit 0x00000001126b8e86 -[UIControl touchesEnded:withEvent:] + 618
48 UIKit 0x00000001125b0807 -[UIWindow _sendTouchesForEvent:] + 2807
49 UIKit 0x00000001125b1f2a -[UIWindow sendEvent:] + 4124
50 UIKit 0x0000000112555365 -[UIApplication sendEvent:] + 352
51 UIKit 0x0000000112ea1a1d __dispatchPreprocessedEventFromEventQueue + 2809
52 UIKit 0x0000000112ea4672 __handleEventQueueInternal + 5957
53 CoreFoundation 0x0000000115d4a101 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
54 CoreFoundation 0x0000000115de9f71 __CFRunLoopDoSource0 + 81
55 CoreFoundation 0x0000000115d2ea19 __CFRunLoopDoSources0 + 185
56 CoreFoundation 0x0000000115d2dfff __CFRunLoopRun + 1279
57 CoreFoundation 0x0000000115d2d889 CFRunLoopRunSpecific + 409
58 GraphicsServices 0x0000000118d049c6 GSEventRunModal + 62
59 UIKit 0x00000001125395d6 UIApplicationMain + 159
60 Kab 0x000000010f191137 main + 55
61 libdyld.dylib 0x0000000117112d81 start + 1
62 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
KbNavigationController
class KabNavigationController: SlideNavigationController {
var menuItems: [(id: String, image: String, text: String)] = []
override func viewDidLoad() {
self.leftMenu = self.storyboard?.instantiateViewController(withIdentifier: "MenuViewController")
navigationBar.barTintColor = Theme.DarkGray
navigationBar.tintColor = Theme.White
navigationBar.barStyle = UIBarStyle.black
// Popup Navigation Bar
STPopupNavigationBar.appearance().isHidden = true
}
}
I have searched and debug my code alot keep in mind always enable exception break points to trigger exactly which line causing the crash. You can learn it from this Exception Breakpoint in Xcode . I found my solution here https://github.com/aryaxt/iOS-Slide-Menu/issues/250.
move these two lines from setup function to viewWillLayoutSubviews of Slide Menu.
//moved this from the `setup` function:
self.enableShadow = YES;
self.enableSwipeGesture = YES;

Crash in presenting a view controller

My application crashes while trying to present a view controller. It only seems to happen in the device but not in the simulator.
Also do I need to disable the breakpoints before archiving the build for TestFlight?
Here is the crash log:
Incident Identifier: E8E38296-EB9E-47FD-AC91-DC6231A32CE2
Beta Identifier: C0074033-1ABA-4888-9906-B0E709FDC0D5
Hardware Model: iPhone10,6
Process: Darb [6943]
Path: /private/var/containers/Bundle/Application/134E7292-FC58-4A08-9C73-E5B27C8BE5D2/Darb.app/Darb
Identifier: com.dot.Darb
Version: 7 (3.6.14)
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.dot.Darb [2421]
Date/Time: 2018-07-23 10:51:48.2281 +0400
Launch Time: 2018-07-23 10:51:44.0025 +0400
OS Version: iPhone OS 11.2.6 (15D100)
Baseband Version: 1.03.06
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x183c2b164 __exceptionPreprocess + 124 (NSException.m:166)
1 libobjc.A.dylib 0x182e74528 objc_exception_throw + 56 (objc-exception.mm:521)
2 CoreFoundation 0x183c2ae2c -[NSException raise] + 12 (NSException.m:98)
3 Foundation 0x184542630 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 272 (NSKeyValueCoding.m:418)
4 UIKit 0x18d551134 -[UIViewController setValue:forKey:] + 104 (UIViewController.m:1275)
5 UIKit 0x18d779224 -[UIRuntimeOutletConnection connect] + 124 (UIRuntimeOutletConnection.m:17)
6 CoreFoundation 0x183b37d14 -[NSArray makeObjectsPerformSelector:] + 284 (NSArray.m:497)
7 UIKit 0x18d777c18 -[UINib instantiateWithOwner:options:] + 1696 (UINib.m:0)
8 UIKit 0x18d554be0 -[UIViewController _loadViewFromNibNamed:bundle:] + 372 (UIViewController.m:2866)
9 UIKit 0x18d3028e8 -[UIViewController loadView] + 176 (UIViewController.m:2995)
10 UIKit 0x18d1e56a8 -[UIViewController loadViewIfRequired] + 184 (UIViewController.m:3094)
11 UIKit 0x18d1e55d8 -[UIViewController view] + 28 (UIViewController.m:3155)
12 UIKit 0x18dd8ed24 -[_UIFullscreenPresentationController _setPresentedViewController:] + 92 (_UIFullscreenPresentationController.m:232)
13 UIKit 0x18d52da18 -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 140 (UIPresentationController.m:81)
14 UIKit 0x18d55e84c -[UIViewController _presentViewController:withAnimationController:completion:] + 2676 (UIViewController.m:7081)
15 UIKit 0x18d56188c __63-[UIViewController _presentViewController:animated:completion:]_block_invoke_2 + 68 (UIViewController.m:7543)
16 UIKit 0x18d1f392c +[UIView(Animation) performWithoutAnimation:] + 104 (UIView.m:11877)
17 UIKit 0x18d5617e0 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke + 220 (UIViewController.m:7541)
18 UIKit 0x18d561ca0 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 528 (UIViewController.m:7621)
19 UIKit 0x18d5616bc -[UIViewController _presentViewController:animated:completion:] + 188 (UIViewController.m:7552)
20 UIKit 0x18d2c32d0 -[UIViewController presentViewController:animated:completion:] + 160 (UIViewController.m:7565)
21 Darb 0x1025fdd7c MainViewController.viewDidLoad() + 5940 (MainViewController.swift:320)
22 Darb 0x1025ff3c0 #objc MainViewController.viewDidLoad() + 28 (MainViewController.swift:0)
23 UIKit 0x18d1e5a00 -[UIViewController loadViewIfRequired] + 1040 (UIViewController.m:3133)
24 UIKit 0x18d28ceb8 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 76 (UINavigationController.m:6345)
25 UIKit 0x18d28c358 -[UINavigationController _startTransition:fromViewController:toViewController:] + 196 (UINavigationController.m:6380)
26 UIKit 0x18d28bd5c -[UINavigationController _startDeferredTransitionIfNeeded:] + 1168 (UINavigationController.m:6601)
27 UIKit 0x18d28b7d8 -[UINavigationController __viewWillLayoutSubviews] + 164 (UINavigationController.m:6872)
28 UIKit 0x18d28b6d8 -[UILayoutContainerView layoutSubviews] + 188 (UILayoutContainerView.m:87)
29 UIKit 0x18d1e2e18 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1276 (UIView.m:15124)
30 QuartzCore 0x187c6f948 -[CALayer layoutSublayers] + 184 (CALayer.mm:9302)
31 QuartzCore 0x187c73ad0 CA::Layer::layout_if_needed(CA::Transaction*) + 332 (CALayer.mm:9182)
32 QuartzCore 0x187be031c CA::Context::commit_transaction(CA::Transaction*) + 336 (CALayer.mm:2416)
33 QuartzCore 0x187c07b40 CA::Transaction::commit() + 540 (CATransactionInternal.mm:425)
34 UIKit 0x18d45eb6c __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 140 (UIApplication.m:9904)
35 CoreFoundation 0x183bd3590 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20 (CFRunLoop.c:1840)
36 CoreFoundation 0x183bd2e60 __CFRunLoopDoBlocks + 288 (CFRunLoop.c:1881)
37 CoreFoundation 0x183bd0b70 __CFRunLoopRun + 1068 (CFRunLoop.c:2922)
38 CoreFoundation 0x183af0c58 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
39 GraphicsServices 0x18599cf84 GSEventRunModal + 100 (GSEvent.c:2245)
40 UIKit 0x18d2495c4 UIApplicationMain + 236 (UIApplication.m:3956)
41 Darb 0x1025b1064 main + 56 (AppDelegate.swift:19)
42 libdyld.dylib 0x18361056c start + 4
Could some one please look into the logs and point me in the right direction?
following is the code which crash log points to
let lastLaunch = Foundation.UserDefaults.standard.double(forKey: "lastLaunch")
let lastLaunchDate = Date(timeIntervalSince1970: lastLaunch)
let lastLaunchIsToday = Calendar.current.isDateInToday(lastLaunchDate)
if !lastLaunchIsToday {
// Show the GIF
let zayedVC: ZayedVideoViewController = self.storyboard?.instantiateViewController(withIdentifier: "ZayedVC") as! ZayedVideoViewController
zayedVC.providesPresentationContextTransitionStyle = true
zayedVC.definesPresentationContext = true
zayedVC.isModalInPopover = true
zayedVC.modalPresentationStyle = .overFullScreen
self.navigationController?.present(zayedVC, animated: false, completion: nil)
}
Foundation.UserDefaults.standard.set(Date().timeIntervalSince1970, forKey: "lastLaunch")
Alright,
I have managed to solve the problem,the issue i had is the broken outlet connection.
I have removed it from the storyboard and it worked fine

app crashing in ipa file only,not crashed when installed with xcode to device

I am stuck in a very weird situation.When i create an IPA and install it in to any device, its crashing at one fixed point.But when i install directly from xcode to device, it works perfectly fine and no crashes.Tried almost every possible solution available, deleting the build folder, cleaning, removing files and adding them again etc..
Below is the crash log for refernce. Any help would be appreciated THanks
Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note:
EXC_CORPSE_NOTIFY Triggered by Thread: 0
Application Specific Information: abort() called
Filtered syslog: None found
Last Exception Backtrace:
0 CoreFoundation 0x185e681c0 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x1848a055c objc_exception_throw + 56
2 CoreFoundation 0x185e68108 +[NSException raise:format:] + 116
3 Foundation 0x1868565ac -[NSString rangeOfString:options:range:locale:] + 352
4 Foundation 0x186949f5c -[NSString containsString:] + 68
5 TM iSwift 0x100157528 -[KossexViewController tableView:heightForHeaderInSection:] (KossexViewController.m:1373)
6 UIKit 0x18bd90b20 -[UITableView _delegateWantsHeaderForSection:] + 528
7 UIKit 0x18bd8f7b0 -[UISectionRowData refreshWithSection:tableView:tableViewRowData:] + 208
8 UIKit 0x18c180b7c -[UITableViewRowData _ensureSectionOffsetIsValidForSection:] + 348
9 UIKit 0x18bd8f61c -[UITableViewRowData rectForFooterInSection:heightCanBeGuessed:] + 576
10 UIKit 0x18bd8f380 -[UITableViewRowData heightForTable] + 60
11 UIKit 0x18bd8f1b4 -[UITableView _updateContentSize] + 220
12 UIKit 0x18bfed6f0 -[UITableView _rebuildGeometry] + 44
13 UIKit 0x18bd94b64 -[UITableView didMoveToWindow] + 140
14 UIKit 0x18bcadc1c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1544
15 UIKit 0x18bcd1714 -[UIScrollView _didMoveFromWindow:toWindow:] + 92
16 UIKit 0x18bcacd90 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 156
17 UIKit 0x18bcacbe8 -[UIView(Hierarchy) _postMovedFromSuperview:] + 792
18 UIKit 0x18bcb8ad0 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1788
19 UIKit 0x18bcb83bc -[UIView(Hierarchy) addSubview:] + 828
20 TM iSwift 0x100152428 __34-[KossexViewController createBody]_block_invoke (KossexViewController.m:397)
21 libdispatch.dylib 0x184cf1200 _dispatch_call_block_and_release + 24
22 libdispatch.dylib 0x184cf11c0 _dispatch_client_callout + 16
23 libdispatch.dylib 0x184cf5d6c _dispatch_main_queue_callback_4CF + 1000
24 CoreFoundation 0x185e15f2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
25 CoreFoundation 0x185e13b18 __CFRunLoopRun + 1660
26 CoreFoundation 0x185d42048 CFRunLoopRunSpecific + 444
27 GraphicsServices 0x1877c5198 GSEventRunModal + 180
28 UIKit 0x18bd1c628 -[UIApplication _run] + 684
29 UIKit 0x18bd17360 UIApplicationMain + 208
30 TM iSwift 0x1001384c0 main (main.m:18)
31 libdyld.dylib 0x184d245b8 start + 4
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000184e36014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000184efd460 pthread_kill + 112
2 libsystem_c.dylib 0x0000000184daa3f4 abort + 140
3 libc++abi.dylib 0x00000001848752d4 __cxa_bad_cast + 0
4 libc++abi.dylib 0x0000000184892cc0 default_unexpected_handler() + 0
5 libobjc.A.dylib 0x00000001848a0844 _objc_terminate() + 124
6 libc++abi.dylib 0x000000018488f66c std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x000000018488ef84 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 0
8 libobjc.A.dylib 0x00000001848a0690 _objc_exception_destructor(void*) + 0
9 CoreFoundation 0x0000000185e68108 -[NSException initWithCoder:] + 0
10 Foundation 0x00000001868565ac -[NSString rangeOfString:options:range:locale:] + 352
11 Foundation 0x0000000186949f5c -[NSString containsString:] + 68
12 TM iSwift 0x0000000100157528 -[KossexViewController tableView:heightForHeaderInSection:] (KossexViewController.m:1373)
13 UIKit 0x000000018bd90b20 -[UITableView _delegateWantsHeaderForSection:] + 528
14 UIKit 0x000000018bd8f7b0 -[UISectionRowData refreshWithSection:tableView:tableViewRowData:] + 208
15 UIKit 0x000000018c180b7c -[UITableViewRowData _ensureSectionOffsetIsValidForSection:] + 348
16 UIKit 0x000000018bd8f61c -[UITableViewRowData rectForFooterInSection:heightCanBeGuessed:] + 576
17 UIKit 0x000000018bd8f380 -[UITableViewRowData heightForTable] + 60
18 UIKit 0x000000018bd8f1b4 -[UITableView _updateContentSize] + 220
19 UIKit 0x000000018bfed6f0 -[UITableView _rebuildGeometry] + 44
20 UIKit 0x000000018bd94b64 -[UITableView didMoveToWindow] + 140
21 UIKit 0x000000018bcadc1c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1544
22 UIKit 0x000000018bcd1714 -[UIScrollView _didMoveFromWindow:toWindow:] + 92
23 UIKit 0x000000018bcacd90 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 156
24 UIKit 0x000000018bcacbe8 -[UIView(Hierarchy) _postMovedFromSuperview:] + 792
25 UIKit 0x000000018bcb8ad0 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1788
26 UIKit 0x000000018bcb83bc -[UIView(Hierarchy) addSubview:] + 828
27 TM iSwift 0x0000000100152428 __34-[KossexViewController createBody]_block_invoke (KossexViewController.m:397)
28 libdispatch.dylib 0x0000000184cf1200 _dispatch_call_block_and_release + 24
29 libdispatch.dylib 0x0000000184cf11c0 _dispatch_client_callout + 16
30 libdispatch.dylib 0x0000000184cf5d6c _dispatch_main_queue_callback_4CF + 1000
31 CoreFoundation 0x0000000185e15f2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
32 CoreFoundation 0x0000000185e13b18 __CFRunLoopRun + 1660
33 CoreFoundation 0x0000000185d42048 CFRunLoopRunSpecific + 444
34 GraphicsServices 0x00000001877c5198 GSEventRunModal + 180
35 UIKit 0x000000018bd1c628 -[UIApplication _run] + 684
36 UIKit 0x000000018bd17360 UIApplicationMain + 208
37 TM iSwift 0x00000001001384c0 main (main.m:18)
38 libdyld.dylib 0x0000000184d245b8 start + 4
please see on these lines
(i) [KossexViewController tableView:heightForHeaderInSection:] (KossexViewController.m:1373
(ii) [KossexViewController createBody]_block_invoke (KossexViewController.m:397
if everythink is perfect then edit your scheme from debug to release mode.

UIPageVIewController sendChildViewAppearAnimated crash

[UIPageViewController _sendChildViewWill:appear:animated:] + 290
There's nothing in the stack trace from my app. What's causing this crash?
0
libobjc.A.dylib
objc_msgSend + 5
countByEnumeratingWithState:objects:count:
1
UIKit
-[UIPageViewController _sendChildViewWill:appear:animated:] + 290
2
UIKit
-[UIPageViewController viewDidAppear:] + 68
3
UIKit
-[UIViewController _setViewAppearState:isAnimating:] + 410
4
CoreFoundation
__53-[__NSArrayI enumerateObjectsWithOptions:usingBlock:]_block_invoke + 52
5
CoreFoundation
-[__NSArrayI enumerateObjectsWithOptions:usingBlock:] + 220
6
UIKit
-[UIViewController _setViewAppearState:isAnimating:] + 724
7
UIKit
-[UIViewController _endAppearanceTransition:] + 264
8
UIKit
-[UIWindowController transitionViewDidComplete:fromView:toView:removeFromView:] + 1714
9
UIKit
__101-[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:]_block_invoke293 + 170
10
UIKit
-[_UIViewControllerTransitionContext completeTransition:] + 74
11
UIKit
-[UITransitionView notifyDidCompleteTransition:] + 288
12
UIKit
-[UITransitionView _didCompleteTransition:] + 944
13
UIKit
-[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 178
14
UIKit
-[UIViewAnimationState animationDidStop:finished:] + 70
15
QuartzCore
CA::Layer::run_animation_callbacks(void*) + 232
16 libdispatch.dylib
_dispatch_client_callout + 22
23 UIKit
UIApplicationMain + 1136
24
main.m line 14

App crashes at gpus_ReturnNotPermittedKillClient

I am seeing new crashes specific to app running on iOS 8. Couldn't figure out what the issue is, couldn't reproduce the issue. Happens at App StartUp, and App doesn't call OpenGL ES functions directly.
InitialViewController viewDidAppear method line # 92 I initiate a segue from storyboard by: [self performSegueWithIdentifier:segueIdentifier sender:self]; where self is InitialViewController class.
Stacktrace:
Thread: Unknown Name (Crashed)
0 libGPUSupportMercury.dylib 0x28c5c8fe gpus_ReturnNotPermittedKillClient + 10
1 libGPUSupportMercury.dylib 0x28c5d249 gldCreateContext + 206
2 GLEngine 0x248a093b gliCreateContextWithShared + 600
3 OpenGLES 0x2497cab3 -[EAGLContext initWithAPI:properties:] + 404
4 CoreImage 0x225ecb8b ___ZN2CI11can_use_gpuEv_block_invoke + 140
5 libdispatch.dylib 0x2fbb98b7 _dispatch_client_callout + 20
6 libdispatch.dylib 0x2fbba4fb dispatch_once_f + 60
7 CoreImage 0x225ecafb _ZN2CI11can_use_gpuEv + 96
8 CoreImage 0x2256ac79 +[CIContext contextWithOptions:] + 186
9 CoreUI 0x27bdc837 CreateSharedCIContext + 76
10 libsystem_pthread.dylib 0x2fd1ddcf __pthread_once_handler + 48
11 libsystem_platform.dylib 0x2fd16867 _os_once + 40
12 libsystem_pthread.dylib 0x2fd1bf8b pthread_once + 48
13 CoreUI 0x27bdc7d9 +[CUIShapeEffectStack sharedCIContext] + 26
14 CoreUI 0x27be3af7 -[CUICatalog imageByStylingImage:stylePresetName:styleConfiguration:foregroundColor:scale:] + 80
15 UIKit 0x256c89db -[UIImage _imageWithStylePresets:withTintColor:] + 540
16 UIKit 0x25456875 -[UIImageView _setImageViewContents:] + 1074
17 UIKit 0x25455fb5 +[UIView(Animation) performWithoutAnimation:] + 70
18 UIKit 0x25747db9 -[UIImageView _updateImageViewForOldImage:newImage:] + 674
19 UIKit 0x254559c7 -[UIImageView setImage:] + 264
20 UIKit 0x254f01b1 -[UINavigationBar _updateBackIndicatorImage] + 346
21 UIKit 0x254d4143 -[UINavigationBar layoutSubviews] + 2480
22 UIKit 0x25446b37 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 512
23 QuartzCore 0x24e6eccd -[CALayer layoutSublayers] + 134
24 QuartzCore 0x24e6a6b5 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 358
25 UIKit 0x25459183 -[UIView(Hierarchy) layoutBelowIfNeeded] + 136
26 UIKit 0x25455fb5 +[UIView(Animation) performWithoutAnimation:] + 70
27 UIKit 0x254d2fc5 -[UINavigationController _positionNavigationBarHidden:edge:initialOffset:] + 786
28 UIKit 0x254d2c63 -[UINavigationController _positionNavigationBarHidden:edge:] + 200
29 UIKit 0x254cf875 -[UINavigationController loadView] + 246
30 UIKit 0x254493d9 -[UIViewController loadViewIfRequired] + 66
31 UIKit 0x2544935d -[UIViewController view] + 22
32 UIKit 0x254f1faf -[UIViewController shouldAutorotate] + 24
33 UIKit 0x2552bbd7 -[UIViewController _preferredInterfaceOrientationForPresentationInWindow:fromInterfaceOrientation:] + 248
34 UIKit 0x2552a2b9 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:] + 2118
35 UIKit 0x2572be1f -[UIViewController _windowControllerBasedPresentViewController:withTransition:completion:] + 4896
36 UIKit 0x2572c4ab __62-[UIViewController presentViewController:animated:completion:]_block_invoke + 256
37 UIKit 0x25529243 -[UIViewController presentViewController:animated:completion:] + 192
38 UIKit 0x2572c63f -[UIViewController presentModalViewController:animated:] + 28
39 MyAppName 0x00082901 -[InitialViewController viewDidAppear:] (InitialViewController.m:92)
40 UIKit 0x2545ed5f -[UIViewController _setViewAppearState:isAnimating:] + 500
41 UIKit 0x254c322f -[UIViewController _executeAfterAppearanceBlock] + 52
42 UIKit 0x254c31bd _applyBlockToCFArrayCopiedToStack + 306
43 UIKit 0x2543f127 _afterCACommitHandler + 484
44 CoreFoundation 0x21f725cd __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
45 CoreFoundation 0x21f6fc8b __CFRunLoopDoObservers + 276
46 CoreFoundation 0x21f70093 __CFRunLoopRun + 912
47 CoreFoundation 0x21ebe621 CFRunLoopRunSpecific + 474
48 CoreFoundation 0x21ebe433 CFRunLoopRunInMode + 104
49 GraphicsServices 0x2926c0a9 GSEventRunModal + 134
50 UIKit 0x254a8809 UIApplicationMain + 1438
51 MyAppName 0x00074329 main (main.m:36)
52 libdyld.dylib 0x2fbd9aaf start + 0
Can someone please help me find what the root cause for this issue is.
Application will be terminated if it attempts to execute OpenGL ES commands in the background.
https://developer.apple.com/library/ios/qa/qa1766/_index.html

Resources