NSInternalInconsistencyException - Containerview is required - ios

I am still fairly new to objective-c and I am looking for some help figuring a crash on my App.
In my storyboard I basically have a containerview which is using an embed segue to display a UITableView. Basically everything has been working fine for months, but now I am getting this crash whenever the AddPOIViewController is accessed (view does not appear). The builds without warnings or errors. Any help would be greatly appreciated.
* Assertion failure in -[UIStoryboardEmbedSegue perform], /SourceCache/UIKit_Sim/UIKit-2903.23/UIStoryboardEmbedSegue.m:18
* thread #1: tid = 0xd9c7c2, 0x0202988a libobjc.A.dylibobjc_exception_throw, queue = 'com.apple.main-thread, stop reason = breakpoint 1.1
frame #0: 0x0202988a libobjc.A.dylibobjc_exception_throw
frame #1: 0x02afe448 CoreFoundation+[NSException raise:format:arguments:] + 136
frame #2: 0x019fcfee Foundation-[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116
frame #3: 0x01225438 UIKit-[UIStoryboardEmbedSegue perform] + 154
frame #4: 0x010bf07e UIKit-[UIStoryboardSegueTemplate _perform:] + 174
frame #5: 0x010bf0f9 UIKit-[UIStoryboardSegueTemplate perform:] + 115
frame #6: 0x00c9e2bd UIKit-[UIViewController loadViewIfRequired] + 605
frame #7: 0x00c9e5b4 UIKit-[UIViewController view] + 35
frame #8: 0x00cadab9 UIKit-[UIViewController shouldAutorotate] + 36
frame #9: 0x00cade01 UIKit-[UIViewController _preferredInterfaceOrientationForPresentationInWindow:fromInterfaceOrientation:] + 297
frame #10: 0x00f325e5 UIKit-[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:] + 2330
frame #11: 0x00caa0fc UIKit-[UIViewController presentViewController:withTransition:completion:] + 6433
frame #12: 0x00caa61f UIKit-[UIViewController presentViewController:animated:completion:] + 130
frame #13: 0x00caa65f UIKit-[UIViewController presentModalViewController:animated:] + 56
frame #14: 0x010cee16 UIKit-[UIStoryboardModalSegue perform] + 271
frame #15: 0x010bf07e UIKit-[UIStoryboardSegueTemplate _perform:] + 174
frame #16: 0x010bf0f9 UIKit-[UIStoryboardSegueTemplate perform:] + 115
frame #17: 0x0203b874 libobjc.A.dylib-[NSObject performSelector:withObject:withObject:] + 77
frame #18: 0x00b8c0c2 UIKit-[UIApplication sendAction:to:from:forEvent:] + 108
frame #19: 0x00e60c9b UIKit-[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 139
frame #20: 0x0203b874 libobjc.A.dylib-[NSObject performSelector:withObject:withObject:] + 77
frame #21: 0x00b8c0c2 UIKit-[UIApplication sendAction:to:from:forEvent:] + 108
frame #22: 0x00b8c04e UIKit-[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
frame #23: 0x00c840c1 UIKit-[UIControl sendAction:to:forEvent:] + 66
frame #24: 0x00c84484 UIKit-[UIControl _sendActionsForEvents:withEvent:] + 577
frame #25: 0x00c83733 UIKit-[UIControl touchesEnded:withEvent:] + 641
frame #26: 0x00bc951d UIKit-[UIWindow sendTouchesForEvent:] + 852
frame #27: 0x00bca184 UIKit-[UIWindow sendEvent:] + 1232
frame #28: 0x00b9de86 UIKit-[UIApplication sendEvent:] + 242
frame #29: 0x00b8818f UIKit_UIApplicationHandleEventQueue + 11421
frame #30: 0x02a8783f CoreFoundation_CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
frame #31: 0x02a871cb CoreFoundation__CFRunLoopDoSources0 + 235
frame #32: 0x02aa429e CoreFoundation__CFRunLoopRun + 910
frame #33: 0x02aa3ac3 CoreFoundationCFRunLoopRunSpecific + 467
frame #34: 0x02aa38db CoreFoundationCFRunLoopRunInMode + 123
frame #35: 0x03a759e2 GraphicsServicesGSEventRunModal + 192
frame #36: 0x03a75809 GraphicsServicesGSEventRun + 104
frame #37: 0x00b8ad3b UIKitUIApplicationMain + 1225
frame #38: 0x0000206d Pawclub.camain(argc=1, argv=0xbfffeed4) + 141 at main.m:16
2013-11-18 12:56:41.093 Pawclub.ca[70486:70b] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'containerView is required.'
** First throw call stack:
(
0 CoreFoundation 0x02afe5e4 exceptionPreprocess + 180
1 libobjc.A.dylib 0x020298b6 objc_exception_throw + 44
2 CoreFoundation 0x02afe448 +[NSException raise:format:arguments:] + 136
3 Foundation 0x019fcfee -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116
4 UIKit 0x01225438 -[UIStoryboardEmbedSegue perform] + 154
5 UIKit 0x010bf07e -[UIStoryboardSegueTemplate _perform:] + 174
6 UIKit 0x010bf0f9 -[UIStoryboardSegueTemplate perform:] + 115
7 UIKit 0x00c9e2bd -[UIViewController loadViewIfRequired] + 605
8 UIKit 0x00c9e5b4 -[UIViewController view] + 35
9 UIKit 0x00cadab9 -[UIViewController shouldAutorotate] + 36
10 UIKit 0x00cade01 -[UIViewController _preferredInterfaceOrientationForPresentationInWindow:fromInterfaceOrientation:] + 297
11 UIKit 0x00f325e5 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:] + 2330
12 UIKit 0x00caa0fc -[UIViewController presentViewController:withTransition:completion:] + 6433
13 UIKit 0x00caa61f -[UIViewController presentViewController:animated:completion:] + 130
14 UIKit 0x00caa65f -[UIViewController presentModalViewController:animated:] + 56
15 UIKit 0x010cee16 -[UIStoryboardModalSegue perform] + 271
16 UIKit 0x010bf07e -[UIStoryboardSegueTemplate _perform:] + 174
17 UIKit 0x010bf0f9 -[UIStoryboardSegueTemplate perform:] + 115
18 libobjc.A.dylib 0x0203b874 -[NSObject performSelector:withObject:withObject:] + 77
19 UIKit 0x00b8c0c2 -[UIApplication sendAction:to:from:forEvent:] + 108
20 UIKit 0x00e60c9b -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 139
21 libobjc.A.dylib 0x0203b874 -[NSObject performSelector:withObject:withObject:] + 77
22 UIKit 0x00b8c0c2 -[UIApplication sendAction:to:from:forEvent:] + 108
23 UIKit 0x00b8c04e -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
24 UIKit 0x00c840c1 -[UIControl sendAction:to:forEvent:] + 66
25 UIKit 0x00c84484 -[UIControl _sendActionsForEvents:withEvent:] + 577
26 UIKit 0x00c83733 -[UIControl touchesEnded:withEvent:] + 641
27 UIKit 0x00bc951d -[UIWindow _sendTouchesForEvent:] + 852
28 UIKit 0x00bca184 -[UIWindow sendEvent:] + 1232
29 UIKit 0x00b9de86 -[UIApplication sendEvent:] + 242
30 UIKit 0x00b8818f _UIApplicationHandleEventQueue + 11421
31 CoreFoundation 0x02a8783f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 15
32 CoreFoundation 0x02a871cb __CFRunLoopDoSources0 + 235
33 CoreFoundation 0x02aa429e __CFRunLoopRun + 910
34 CoreFoundation 0x02aa3ac3 CFRunLoopRunSpecific + 467
35 CoreFoundation 0x02aa38db CFRunLoopRunInMode + 123
36 GraphicsServices 0x03a759e2 GSEventRunModal + 192
37 GraphicsServices 0x03a75809 GSEventRun + 104
38 UIKit 0x00b8ad3b UIApplicationMain + 1225
39 Pawclub.ca 0x0000206d main + 141
40 libdyld.dylib 0x0251070d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Program ended with exit code: 0

Try to set breakpoints and find the exact line that crashes?

Sounds like the segue is being run more than once. Either your calling perform segue or some other actions is trying to call it again while it's active. There's an internal assertion being hit.
Just don't do that ;)

Related

SIGSEGV SEGV_MAPERR crash, only iOS 9.2.1

my app crash only iOS 9.2.1
The rest of devices okay. Crash in arbitrary places. Please help me =) I use crittercism. I am new to programming, tell me the right way please. Name SIGSEGV Reason SEGV_MAPERR
0 libobjc.A.dylib 0x0000000180d09bdc objc_msgSend + 24
1 UIKit 0x000000018696a654 -[UINibStringIDTable lookupKey:identifier:] + 128
2 UIKit 0x000000018696614c -[UINibDecoder containsValueForKey:] + 44
3 UIKit 0x0000000186698a8c -[UIScrollView initWithCoder:] + 1396
4 UIKit 0x0000000186b99b00 -[UICollectionView initWithCoder:] + 72
5 UIKit 0x000000018696667c UINibDecoderDecodeObjectForValue + 668
6 UIKit 0x00000001869663c4 -[UINibDecoder decodeObjectForKey:] + 332
7 UIKit 0x000000018684615c -[UIRuntimeConnection initWithCoder:] + 184
8 UIKit 0x000000018696667c UINibDecoderDecodeObjectForValue + 668
9 UIKit 0x00000001869667f4 UINibDecoderDecodeObjectForValue + 1044
10 UIKit 0x00000001869663c4 -[UINibDecoder decodeObjectForKey:] + 332
11 UIKit 0x0000000186845490 -[UINib instantiateWithOwner:options:] + 1216
12 UIKit 0x00000001866ef33c -[UIViewController _loadViewFromNibNamed:bundle:] + 372
13 UIKit 0x00000001864b8250 -[UIViewController loadView] + 172
14 UIKit 0x000000018637bd6c -[UIViewController loadViewIfRequired] + 140
15 UIKit 0x000000018643bda8 -[UINavigationController _layoutViewController:] + 68
16 UIKit 0x000000018643bc80 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 412
17 UIKit 0x000000018643aec8 -[UINavigationController _startTransition:fromViewController:toViewController:] + 140
18 UIKit 0x000000018643aa6c -[UINavigationController _startDeferredTransitionIfNeeded:] + 864
19 UIKit 0x000000018643a694 -[UINavigationController __viewWillLayoutSubviews] + 56
20 UIKit 0x000000018643a5fc -[UILayoutContainerView layoutSubviews] + 204
21 UIKit 0x0000000186377778 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 652
22 QuartzCore 0x0000000183d86b2c -[CALayer layoutSublayers] + 144
23 QuartzCore 0x0000000183d81738 CA::Layer::layout_if_needed() + 288
24 QuartzCore 0x0000000183d815f8 CA::Layer::layout_and_display_if_needed() + 28
25 QuartzCore 0x0000000183d80c94 CA::Context::commit_transaction() + 248
26 QuartzCore 0x0000000183d809dc CA::Transaction::commit() + 508
27 QuartzCore 0x0000000183d7a0cc CA::Transaction::observer_callback() + 76
28 CoreFoundation 0x0000000181640588 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28
29 CoreFoundation 0x000000018163e32c __CFRunLoopDoObservers + 368
30 CoreFoundation 0x000000018163e75c __CFRunLoopRun + 924
31 CoreFoundation 0x000000018156d680 CFRunLoopRunSpecific + 380
32 GraphicsServices 0x0000000182a7c088 GSEventRunModal + 176
33 UIKit 0x00000001863e4d90 UIApplicationMain + 200
! 34 keep-app 0x0000000100060350 main (main.m:14)
35 libdyld.dylib 0x000000018110e8b8 start + 0
Name SIGSEGV Reason SEGV_MAPERR
0 libobjc.A.dylib 0x0000000180d09bdc objc_msgSend + 24
1 libcache.dylib 0x0000000181062b5c _entry_get_optionally_checking_collisions + 48
2 libcache.dylib 0x0000000181060dd0 _entry_table_resize + 304
3 libcache.dylib 0x0000000181061a9c cache_set_and_retain + 848
4 CoreFoundation 0x00000001815bb470 -[NSCache setObject:forKey:cost:] + 264
5 CoreUI 0x00000001861a2854 -[CUIStructuredThemeStore _canGetRenditionWithKey:isFPO:lookForSubstitutions:] + 856
6 CoreUI 0x00000001861c4d5c -[CUICatalog _resolvedRenditionKeyFromThemeRef:withBaseKey:scaleFactor:deviceIdiom:deviceSubtype:sizeClassHorizontal:sizeClassVertical:memoryClass:graphicsClass:graphicsFallBackOrder:] + 920
7 CoreUI 0x00000001861c40fc -[CUICatalog namedLookupWithName:scaleFactor:deviceIdiom:deviceSubtype:sizeClassHorizontal:sizeClassVertical:] + 144
8 UIKit 0x0000000186bd9994 __98-[_UIAssetManager imageNamed:scale:idiom:subtype:cachingOptions:sizeClassPair:attachCatalogImage:]_block_invoke + 420
9 UIKit 0x0000000186bd9734 -[_UIAssetManager imageNamed:scale:idiom:subtype:cachingOptions:sizeClassPair:attachCatalogImage:] + 208
10 UIKit 0x0000000186bd9f18 -[_UIAssetManager imageNamed:withTrait:] + 524
11 UIKit 0x0000000186773c5c _UIImageWithNameAndTraitCollection + 92
12 UIKit 0x0000000186396220 _UIImageWithName + 44
13 UIKit 0x00000001865d7650 -[UISlider createThumbViewNeue] + 160
14 UIKit 0x00000001865d6dec -[UISlider _initSubviews] + 68
15 UIKit 0x00000001865d69c8 -[UISlider layoutSubviews] + 136
16 UIKit 0x0000000186377778 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 652
17 QuartzCore 0x0000000183d86b2c -[CALayer layoutSublayers] + 144
18 QuartzCore 0x0000000183d81738 CA::Layer::layout_if_needed() + 288
19 UIKit 0x000000018638e454 -[UIView(Hierarchy) layoutBelowIfNeeded] + 920
20 UIKit 0x000000018643c20c -[UINavigationController _layoutViewController:] + 1192
21 UIKit 0x0000000186439be4 -[UINavigationController _layoutTopViewController] + 224
22 UIKit 0x00000001864527dc -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 724
23 UIKit 0x00000001864524c8 -[UINavigationTransitionView _notifyDelegateTransitionDidStopWithContext:] + 412
24 UIKit 0x00000001864521d0 -[UINavigationTransitionView _cleanupTransition] + 740
25 UIKit 0x00000001863b6e90 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 308
26 UIKit 0x00000001863b510c +[UIViewAnimationState popAnimationState] + 320
27 UIKit 0x0000000186445cec -[UINavigationTransitionView transition:fromView:toView:] + 1788
28 UIKit 0x000000018643b8c0 -[UINavigationController _startTransition:fromViewController:toViewController:] + 2692
29 UIKit 0x000000018643aa6c -[UINavigationController _startDeferredTransitionIfNeeded:] + 864
30 UIKit 0x000000018643a694 -[UINavigationController __viewWillLayoutSubviews] + 56
31 UIKit 0x000000018643a5fc -[UILayoutContainerView layoutSubviews] + 204
32 UIKit 0x0000000186377778 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 652
33 QuartzCore 0x0000000183d86b2c -[CALayer layoutSublayers] + 144
34 QuartzCore 0x0000000183d81738 CA::Layer::layout_if_needed() + 288
35 QuartzCore 0x0000000183d815f8 CA::Layer::layout_and_display_if_needed() + 28
36 QuartzCore 0x0000000183d80c94 CA::Context::commit_transaction() + 248
37 QuartzCore 0x0000000183d809dc CA::Transaction::commit() + 508
38 QuartzCore 0x0000000183d7a0cc CA::Transaction::observer_callback() + 76
39 CoreFoundation 0x0000000181640588 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28
40 CoreFoundation 0x000000018163e32c __CFRunLoopDoObservers + 368
41 CoreFoundation 0x000000018163e75c __CFRunLoopRun + 924
42 CoreFoundation 0x000000018156d680 CFRunLoopRunSpecific + 380
43 GraphicsServices 0x0000000182a7c088 GSEventRunModal + 176
44 UIKit 0x00000001863e4d90 UIApplicationMain + 200
! 45 keep-app 0x00000001000b4350 main (main.m:14)
46 libdyld.dylib 0x000000018110e8b8 start + 0
Name SIGSEGV Reason SEGV_MAPERR
0 libsystem_malloc.dylib 0x0000000181257be8 szone_free + 2940
1 CoreFoundation 0x00000001815699a4 CFRelease + 1084
2 CoreUI 0x00000001861a240c -[CUIStructuredThemeStore renditionWithKey:usingKeySignature:] + 1596
3 CoreUI 0x00000001861c435c -[CUICatalog _storageRefForRendition:representsODRContent:] + 100
4 CoreUI 0x00000001861c4124 -[CUICatalog namedLookupWithName:scaleFactor:deviceIdiom:deviceSubtype:sizeClassHorizontal:sizeClassVertical:] + 184
5 UIKit 0x0000000186bd9994 __98-[_UIAssetManager imageNamed:scale:idiom:subtype:cachingOptions:sizeClassPair:attachCatalogImage:]_block_invoke + 420
6 UIKit 0x0000000186bd9734 -[_UIAssetManager imageNamed:scale:idiom:subtype:cachingOptions:sizeClassPair:attachCatalogImage:] + 208
7 UIKit 0x0000000186cec584 -[UIImageAsset imageWithTraitCollection:] + 400
8 UIKit 0x000000018672b058 -[UIImageView _resolveImageForTrait:] + 456
9 UIKit 0x000000018672a928 -[UIImageView _didMoveFromWindow:toWindow:] + 208
10 UIKit 0x0000000186376d7c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 756
11 UIKit 0x0000000186376310 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 148
12 Foundation 0x0000000181fa9500 -[NSISEngine withBehaviors:performModifications:] + 164
13 UIKit 0x0000000186376194 -[UIView(Hierarchy) _postMovedFromSuperview:] + 528
14 UIKit 0x0000000186383b80 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1780
15 UIKit 0x0000000186575600 -[_UIParallaxDimmingView didMoveToWindow] + 176
16 UIKit 0x000000018637705c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1492
17 UIKit 0x0000000186376d7c -[UIView(Internal) _didMoveFromWindow:toWindow:] + 756
18 UIKit 0x0000000186376310 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 148
19 Foundation 0x0000000181fa9500 -[NSISEngine withBehaviors:performModifications:] + 164
20 UIKit 0x0000000186376194 -[UIView(Hierarchy) _postMovedFromSuperview:] + 528
21 UIKit 0x0000000186383b80 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1780
22 UIKit 0x0000000186615db4 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke_2 + 1652
23 UIKit 0x000000018638a964 +[UIView(Animation) performWithoutAnimation:] + 76
24 UIKit 0x0000000186575118 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke + 256
25 UIKit 0x0000000186690840 +[UIView(Internal) _performBlockDelayingTriggeringResponderEvents:] + 216
26 UIKit 0x0000000186574c90 -[_UINavigationParallaxTransition animateTransition:] + 1056
27 UIKit 0x000000018652e6a0 -[UINavigationController _startCustomTransition:] + 3540
28 UIKit 0x000000018643a9b8 -[UINavigationController _startDeferredTransitionIfNeeded:] + 684
29 UIKit 0x000000018643a694 -[UINavigationController __viewWillLayoutSubviews] + 56
30 UIKit 0x000000018643a5fc -[UILayoutContainerView layoutSubviews] + 204
31 UIKit 0x0000000186377778 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 652
32 QuartzCore 0x0000000183d86b2c -[CALayer layoutSublayers] + 144
33 QuartzCore 0x0000000183d81738 CA::Layer::layout_if_needed() + 288
34 QuartzCore 0x0000000183d815f8 CA::Layer::layout_and_display_if_needed() + 28
35 QuartzCore 0x0000000183d80c94 CA::Context::commit_transaction() + 248
36 QuartzCore 0x0000000183d809dc CA::Transaction::commit() + 508
37 QuartzCore 0x0000000183d7a0cc CA::Transaction::observer_callback() + 76
38 CoreFoundation 0x0000000181640588 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28
39 CoreFoundation 0x000000018163e32c __CFRunLoopDoObservers + 368
40 CoreFoundation 0x000000018163e75c __CFRunLoopRun + 924
41 CoreFoundation 0x000000018156d680 CFRunLoopRunSpecific + 380
42 GraphicsServices 0x0000000182a7c088 GSEventRunModal + 176
43 UIKit 0x00000001863e4d90 UIApplicationMain + 200
! 44 keep-app 0x00000001000c0350 main (main.m:14)
45 libdyld.dylib 0x000000018110e8b8 start + 0
Unfortunately I do not have access to this device iOS 9.2.1. in the simulator and my device is working fine iOS 10.2
A SIGSEGV is an error / signal caused by an invalid memory reference or a segmentation fault. Seems like the app is trying to access an array element out of bounds or trying to use too much memory.
The way to fix this issue is to find out what the exception may be by making it happen on another device (or simulator), or getting the full console logs from that device. An easy way to do this might be to set exception breakpoints to see where the original exception that triggered the SIGSEGV is located.

11DB Terminating app due to uncaught exception 'NSInternalInconsistencyException'

I a rookie in OBjective C. I am writing a login feature in Xcode. But it crashes. Seeking for help!
2016-02-06 03:14:09.331 Login[3466:392205] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'ViewController''
* First throw call stack:
(
0 CoreFoundation 0x0000000101b81f45 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x00000001015fbdeb objc_exception_throw + 48
2 CoreFoundation 0x0000000101b81e7d +[NSException raise:format:] + 205
3 UIKit 0x00000001022e4eff -[UINib instantiateWithOwner:options:] + 499
4 UIKit 0x00000001020bfc16 -[UIViewController _loadViewFromNibNamed:bundle:] + 381
5 UIKit 0x00000001020c0542 -[UIViewController loadView] + 178
6 UIKit 0x00000001020c08a0 -[UIViewController loadViewIfRequired] + 138
7 UIKit 0x00000001020c1013 -[UIViewController view] + 27
8 UIKit 0x0000000101f9a51c -[UIWindow addRootViewControllerViewIfPossible] + 61
9 UIKit 0x0000000101f9ac05 -[UIWindow _setHidden:forced:] + 282
10 UIKit 0x0000000101fac4a5 -[UIWindow makeKeyAndVisible] + 42
11 UIKit 0x0000000101f26396 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4131
12 UIKit 0x0000000101f2c9c3 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1750
13 UIKit 0x0000000101f29ba3 -[UIApplication workspaceDidEndTransaction:] + 188
14 FrontBoardServices 0x00000001048d9784 -[FBSSerialQueue _performNext] + 192
15 FrontBoardServices 0x00000001048d9af2 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
16 CoreFoundation 0x0000000101aae011 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
17 CoreFoundation 0x0000000101aa3f3c __CFRunLoopDoSources0 + 556
18 CoreFoundation 0x0000000101aa33f3 __CFRunLoopRun + 867
19 CoreFoundation 0x0000000101aa2e08 CFRunLoopRunSpecific + 488
20 UIKit 0x0000000101f294f5 -[UIApplication _run] + 402
21 UIKit 0x0000000101f2e30d UIApplicationMain + 171
22 Login 0x00000001010fd33f main + 111
23 libdyld.dylib 0x00000001042a592d start + 1
24 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) bt
* thread #1: tid = 0x5fc0d, 0x00000001045db286 libsystem_kernel.dylib__pthread_kill + 10, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
frame #0: 0x00000001045db286 libsystem_kernel.dylib__pthread_kill + 10
frame #1: 0x00000001045a49f9 libsystem_pthread.dylibpthread_kill + 90
frame #2: 0x000000010434ca44 libsystem_c.dylibabort + 129
frame #3: 0x000000010414a051 libc++abi.dylibabort_message + 257
frame #4: 0x000000010416fac9 libc++abi.dylibdefault_terminate_handler() + 267
frame #5: 0x00000001015fc046 libobjc.A.dylib_objc_terminate() + 103
frame #6: 0x000000010416d26e libc++abi.dylibstd::__terminate(void (*)()) + 8
frame #7: 0x000000010416cef9 libc++abi.dylib__cxa_rethrow + 99
frame #8: 0x00000001015fbf5e libobjc.A.dylibobjc_exception_rethrow + 40
frame #9: 0x0000000101aa2ec4 CoreFoundationCFRunLoopRunSpecific + 676
frame #10: 0x0000000101f294f5 UIKit-[UIApplication _run] + 402
frame #11: 0x0000000101f2e30d UIKitUIApplicationMain + 171
* frame #12: 0x00000001010fd33f Loginmain(argc=1, argv=0x00007fff5eb02650) + 111 at main.m:14
frame #13: 0x00000001042a592d libdyld.dylib`start + 1
(lldb)
To fix the problem,in Two ways:
Option-1
regarding the nib name. Check the nib name spelling, it's correct, case sensitive.
Option-2
if option -1 does not work try this
Open XCode Target
Go to the "Build phases" tab
Click the "Copy bundle resources" section
Click the add button
Add the missing Nib file
then works fine

Random crashes in IOS

I have this app in the app store, which according to Crashalitics, its %92-%95 stable. I made a similar app for Android and its around 98% stable. I am trying to get the stability up - but I don't see how. All the bugs I am seeing in the IOS version are not touching my code.
I see random bugs, that are not reproducible, and when they do are very random. Each happens 1-10 times, but I have a list of ... ~30 different items.
The app is pretty simple - a mostly linear storyboard (a few jumps, but no loops). The only project I am using which is not Apple's code is InAppSettingsKit, and most of the app is just maps which shows some items. The project is using ARC and currently compiled using XCode6 (but XCode5 showed the same symptoms).
How can I find these crashes? Is this in an inherent problem of IOS7-8? I do see some apps just closing up when I use the IPhone, and friends to tell me that IOS is not that stable, but ... I just think I am doing something wrong.
IOS8 70% IOS7 30%
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x36444f66 objc_msgSend + 5
1 UIKit 0x2c160b35 -[UIScrollView(UIScrollViewInternal) _delegateScrollViewAnimationEnded] + 52
2 UIKit 0x2c160ac1 -[UIScrollView(UIScrollViewInternal) _scrollViewAnimationEnded:finished:] + 184
3 UIKit 0x2c20a5e5 -[UIAnimator stopAnimation:] + 476
4 UIKit 0x2c209fb9 -[UIAnimator(Static) _advanceAnimationsOfType:withTimestamp:] + 304
5 UIKit 0x2c209e85 -[UIAnimator(Static) _LCDHeartbeatCallback:] + 52
6 QuartzCore 0x2bae4aeb CA::Display::DisplayLinkItem::dispatch() + 98
7 QuartzCore 0x2bae4953 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 366
8 IOMobileFramebuffer 0x303c482f IOMobileFramebufferVsyncNotifyFunc + 90
9 IOKit 0x29af01ed IODispatchCalloutFromCFMessage + 256
10 CoreFoundation 0x28b7c3a5 __CFMachPortPerform + 132
11 CoreFoundation 0x28b8c7f3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
12 CoreFoundation 0x28b8c78f __CFRunLoopDoSource1 + 346
13 CoreFoundation 0x28b8adb1 __CFRunLoopRun + 1608
14 CoreFoundation 0x28ad7b31 CFRunLoopRunSpecific + 476
15 CoreFoundation 0x28ad7943 CFRunLoopRunInMode + 106
16 GraphicsServices 0x2feb7051 GSEventRunModal + 136
17 UIKit 0x2c0cd6f1 UIApplicationMain + 1440
18 --------------- 0x000c8833 main (main.m:16)
IOS7 - 8 times
Thread : Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x2e23ef83 __exceptionPreprocess + 130
1 libobjc.A.dylib 0x389efccf objc_exception_throw + 38
2 CoreFoundation 0x2e242917 -[NSObject(NSObject) doesNotRecognizeSelector:] + 202
3 CoreFoundation 0x2e241203 ___forwarding___ + 706
4 CoreFoundation 0x2e190768 _CF_forwarding_prep_0 + 24
5 VectorKit 0x35ec6911 -[VKMapCanvas initShouldRasterize:contentScale:inBackground:] + 476
6 VectorKit 0x35ec620f -[VKMapView initWithGlobe:shouldRasterize:inBackground:] + 230
7 MapKit 0x2f3d980b -[MKBasicMapView initWithFrame:andGlobe:shouldRasterize:] + 322
8 MapKit 0x2f40cd77 -[MKMapView _commonInitAndEnableLoading:fromIB:gestureRecognizerHostView:showsAttribution:] + 878
9 MapKit 0x2f40d86b -[MKMapView initWithCoder:] + 134
10 UIKit 0x30e70169 UINibDecoderDecodeObjectForValue + 740
11 UIKit 0x30e6fe7f -[UINibDecoder decodeObjectForKey:] + 90
12 UIKit 0x30dcb5ff -[UIRuntimeConnection initWithCoder:] + 150
13 UIKit 0x30e70169 UINibDecoderDecodeObjectForValue + 740
14 UIKit 0x30e70109 UINibDecoderDecodeObjectForValue + 644
15 UIKit 0x30e6fe7f -[UINibDecoder decodeObjectForKey:] + 90
16 UIKit 0x30dcadd1 -[UINib instantiateWithOwner:options:] + 888
17 UIKit 0x30d2360b -[UIViewController _loadViewFromNibNamed:bundle:] + 234
18 UIKit 0x30b7fbcd -[UIViewController loadView] + 92
19 UIKit 0x30a602ed -[UIViewController loadViewIfRequired] + 72
20 UIKit 0x30a60269 -[UIViewController view] + 24
21 UIKit 0x30b0a14b -[UINavigationController _startTransition:fromViewController:toViewController:] + 198
22 UIKit 0x30b09dfd -[UINavigationController _startDeferredTransitionIfNeeded:] + 572
23 UIKit 0x30b09b6d -[UINavigationController __viewWillLayoutSubviews] + 44
24 UIKit 0x30b09b05 -[UILayoutContainerView layoutSubviews] + 184
25 UIKit 0x30a5bd59 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 380
26 QuartzCore 0x306d962b -[CALayer layoutSublayers] + 142
27 QuartzCore 0x306d4e3b CA::Layer::layout_if_needed(CA::Transaction*) + 350
28 QuartzCore 0x30703cdd -[CALayer layoutIfNeeded] + 140
29 UIKit 0x30ad8163 -[UIViewController window:setupWithInterfaceOrientation:] + 242
30 UIKit 0x30ad6783 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 3498
31 UIKit 0x30ad59d3 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 46
32 UIKit 0x30ad595b -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 94
33 UIKit 0x30ad58f3 -[UIWindow _setRotatableViewOrientation:duration:force:] + 42
34 UIKit 0x30acdf69 __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke + 108
35 UIKit 0x30a62107 -[UIWindow _updateToInterfaceOrientation:duration:force:] + 382
36 UIKit 0x30ad5641 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 696
37 UIKit 0x30ad5105 -[UIViewController _tryBecomeRootViewControllerInWindow:] + 164
38 UIKit 0x30a67045 -[UIWindow addRootViewControllerViewIfPossible] + 460
39 UIKit 0x30a64827 -[UIWindow _setHidden:forced:] + 302
40 UIKit 0x30ace33d -[UIWindow makeKeyAndVisible] + 60
41 UIKit 0x30acafad -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1820
42 UIKit 0x30ac556b -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 714
43 UIKit 0x30a616e9 -[UIApplication handleEvent:withNewEvent:] + 3540
44 UIKit 0x30a60851 -[UIApplication sendEvent:] + 72
45 UIKit 0x30ac4ca9 _UIApplicationHandleEvent + 616
46 GraphicsServices 0x33079aed _PurpleEventCallback + 608
47 GraphicsServices 0x330796d7 PurpleEventCallback + 34
48 CoreFoundation 0x2e209a67 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
49 CoreFoundation 0x2e209a03 __CFRunLoopDoSource1 + 346
50 CoreFoundation 0x2e2081d7 __CFRunLoopRun + 1398
51 CoreFoundation 0x2e172ebf CFRunLoopRunSpecific + 522
52 CoreFoundation 0x2e172ca3 CFRunLoopRunInMode + 106
53 UIKit 0x30ac3ed1 -[UIApplication _run] + 760
54 UIKit 0x30abf14d UIApplicationMain + 1136
55 --------------- 0x000ef833 main (main.m:16)
56 libdyld.dylib 0x38efcab7 start + 2
Another (IOS 6.1.6)
vThread : Fatal Exception: NSGenericException
0 CoreFoundation 0x31eaf2a3 __exceptionPreprocess + 162
1 libobjc.A.dylib 0x39b0b97f objc_exception_throw + 30
2 UIKit 0x3404d30f -[UIStoryboardPushSegue perform] + 1118
3 UIKit 0x33da20c5 -[UIApplication sendAction:to:from:forEvent:] + 72
4 UIKit 0x33da214d -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 120
5 UIKit 0x33da20c5 -[UIApplication sendAction:to:from:forEvent:] + 72
6 UIKit 0x33da2077 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 30
7 UIKit 0x33da2055 -[UIControl sendAction:to:forEvent:] + 44
8 UIKit 0x33da190b -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 502
9 UIKit 0x33da1e01 -[UIControl touchesEnded:withEvent:] + 488
10 UIKit 0x33cca5f1 -[UIWindow _sendTouchesForEvent:] + 524
11 UIKit 0x33cb7801 -[UIApplication sendEvent:] + 380
12 UIKit 0x33cb711b _UIApplicationHandleEvent + 6154
13 GraphicsServices 0x359735a3 _PurpleEventCallback + 590
14 GraphicsServices 0x359731d3 PurpleEventCallback + 34
15 CoreFoundation 0x31e84173 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
16 CoreFoundation 0x31e84117 __CFRunLoopDoSource1 + 138
17 CoreFoundation 0x31e82f99 __CFRunLoopRun + 1384
18 CoreFoundation 0x31df5ebd CFRunLoopRunSpecific + 356
19 CoreFoundation 0x31df5d49 CFRunLoopRunInMode + 104
20 GraphicsServices 0x359722eb GSEventRunModal + 74
21 UIKit 0x33d0b301 UIApplicationMain + 1120
22 --------------- 0x00116833 main (main.m:16)
23 libdyld.dylib 0x39f42b20 start

SpriteKit crash on transitionWithView

I have several crash reports with Collection <__NSArrayM: 0x12345678> was mutated while being enumerated. However in my testing I cannot reproduce the error.
This seems be triggered via a chain of events when I transition to a different SKView.
[UIView transitionWithView:window
duration:0.8
options:UIViewAnimationOptionTransitionFlipFromBottom
animations:^{
[UIView setAnimationsEnabled:NO];
[fromView removeFromSuperview];
[window addSubview:toView];
window.rootViewController = nextViewController;
[UIView setAnimationsEnabled:YES];
}
completion:NULL];
I have read that this error can happen when you remove nodes from their parent during enumeration of child nodes but I don't believe I am doing this here, and the full stack trace below doesn't seem to indicate it either.
I don't know why [SKNode setPaused:] would cause child nodes to be added or removed, and there doesn't appear to be any indication of this happening in other threads either.
Full Stacktrace
0 CoreFoundation 0x2f896fd3 __exceptionPreprocess + 131
1 libobjc.A.dylib 0x3a37bccf objc_exception_throw + 36
2 CoreFoundation 0x2f896ad1 __NSFastEnumerationMutationHandler + 126
3 SpriteKit 0x31fb926b -[SKNode setPaused:] + 792
4 SpriteKit 0x31f95309 -[SKScene setPaused:] + 134
5 SpriteKit 0x31fa7b63 -[SKView renderCallback:] + 648
6 SpriteKit 0x31fa9301 -[SKView layoutSubviews] + 474
7 UIKit 0x320b2d79 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 378
8 QuartzCore 0x31d3062b -[CALayer layoutSublayers] + 140
9 QuartzCore 0x31d2be3b _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 348
10 QuartzCore 0x31d5acdd -[CALayer layoutIfNeeded] + 138
11 UIKit 0x3212f183 -[UIViewController window:setupWithInterfaceOrientation:] + 240
12 UIKit 0x3212d7a3 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 3496
13 UIKit 0x3212c9f3 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 44
14 UIKit 0x3212c97b -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 92
15 UIKit 0x3212c913 -[UIWindow _setRotatableViewOrientation:duration:force:] + 40
16 UIKit 0x32124f89 __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke + 106
17 UIKit 0x320b9127 -[UIWindow _updateToInterfaceOrientation:duration:force:] + 380
18 UIKit 0x3212c661 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 694
19 UIKit 0x3212c125 -[UIViewController _tryBecomeRootViewControllerInWindow:] + 162
20 UIKit 0x320be065 -[UIWindow addRootViewControllerViewIfPossible] + 458
21 UIKit 0x32124133 -[UIWindow setRootViewController:] + 760
22 the-app 0x000baf0d 0x000b2000 + 36621
23 UIKit 0x320e83c5 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 494
24 UIKit 0x3234c3f9 +[UIView(UIViewAnimationWithBlocks) transitionWithView:duration:options:animations:completion:] + 58
25 the-app 0x000bae67 0x000b2000 + 36455
26 the-app 0x000bacf7 0x000b2000 + 36087
27 UIKit 0x320e8057 -[UIApplication sendAction:to:from:forEvent:] + 88
28 UIKit 0x320e7ff7 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 28
29 UIKit 0x320e7fd1 -[UIControl sendAction:to:forEvent:] + 42
30 UIKit 0x320d3737 -[UIControl _sendActionsForEvents:withEvent:] + 372
31 UIKit 0x320e7a4f -[UIControl touchesEnded:withEvent:] + 588
32 UIKit 0x320e7721 -[UIWindow _sendTouchesForEvent:] + 526
33 UIKit 0x320e26eb -[UIWindow sendEvent:] + 756
34 UIKit 0x320b78ed -[UIApplication sendEvent:] + 194
35 UIKit 0x320b5f97 _UIApplicationHandleEventQueue + 7100
36 CoreFoundation 0x2f86225b __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
37 CoreFoundation 0x2f86172b __CFRunLoopDoSources0 + 204
38 CoreFoundation 0x2f85ff1f __CFRunLoopRun + 620
39 CoreFoundation 0x2f7caf0f CFRunLoopRunSpecific + 520
40 CoreFoundation 0x2f7cacf3 CFRunLoopRunInMode + 104
41 GraphicsServices 0x346c4663 GSEventRunModal + 136
42 UIKit 0x3211616d UIApplicationMain + 1134
43 the-app 0x000b9267 0x000b2000 + 29287
44 libdyld.dylib 0x3a888ab7 start + 0

How do I prevent crash from using autolayout in tableview with a lot of data?

Got this crash report while scrolling really fast in a tableview with a lot of data.
NSGenericException Collection <__NSSetM: 0x1688efb0> was mutated while being enumerated.
The tableview uses autolayout in the cells, and by analysing the stack trace I guess that something is wrong with it. Is there a solution to this?
The constraints were added via interface builder and there are no issues with the layout. No warnings or errors in the interface. Maybe the solution would be just to use less data in the tableview, but I want to know if there's a better solution.
CoreFoundation 0x30c46f4b __exceptionPreprocess + 131
libobjc.A.dylib 0x3b0876af objc_exception_throw + 39
CoreFoundation 0x30c46a49 -[NSException name] + 1
Foundation 0x315abb83 -[NSISEngine substituteOutAllOccurencesOfBodyVar:withExpression:] + 439
Foundation 0x315ae80f -[NSISEngine pivotToMakeBodyVar:newHeadOfRowWithHead:andDropRow:] + 339
Foundation 0x315ac595 -[NSISEngine minimizeConstantInObjectiveRowWithHead:] + 237
Foundation 0x315ac0c7 -[NSISEngine optimize] + 175
Foundation 0x315b1ccb -[NSISEngine constraintDidChangeSuchThatMarker:shouldBeReplacedByMarkerPlusDelta:] + 307
Foundation 0x315b1b43 -[NSISEngine tryToChangeConstraintSuchThatMarker:isReplacedByMarkerPlusDelta:undoHandler:] + 423
Foundation 0x315a73f7 -[NSLayoutConstraint _tryToChangeContainerGeometryWithUndoHandler:] + 467
Foundation 0x315a6f95 -[NSLayoutConstraint _setSymbolicConstant:constant:] + 381
UIKit 0x334b2e6b -[UIView(UIConstraintBasedLayout) _autoresizingConstraints_frameDidChange] + 367
UIKit 0x333b6f1f -[UIView(Geometry) setFrame:] + 671
UIKit 0x333d871b -[UIScrollView setFrame:] + 131
UIKit 0x33489a97 -[UITableViewCell setFrame:] + 527
UIKit 0x334ece65 __53-[UITableView _configureCellForDisplay:forIndexPath:]_block_invoke + 617
UIKit 0x333cb6e5 +[UIView(Animation) performWithoutAnimation:] + 73
UIKit 0x334ecbf9 -[UITableView _configureCellForDisplay:forIndexPath:] + 101
UIKit 0x334eba73 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:] + 435
UIKit 0x33493de7 -[UITableView _updateVisibleCellsNow:] + 1655
UIKit 0x33493699 -[UITableView layoutSubviews] + 185
UIKit 0x333b9da3 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 347
QuartzCore 0x33040c6b -[CALayer layoutSublayers] + 143
QuartzCore 0x3303c47b _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 351
QuartzCore 0x3303c30d _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 17
QuartzCore 0x3303bd1f _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 231
QuartzCore 0x3303bb2f _ZN2CA11Transaction6commitEv + 315
QuartzCore 0x33090825 _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy + 517
IOMobileFramebuffer 0x35cbd76d IOMobileFramebufferVsyncNotifyFunc + 105
IOKit 0x31928a75 IODispatchCalloutFromCFMessage + 249
CoreFoundation 0x30c06e21 __CFMachPortPerform + 137
CoreFoundation 0x30c119df __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 35
CoreFoundation 0x30c1197b __CFRunLoopDoSource1 + 347
CoreFoundation 0x30c1014f __CFRunLoopRun + 1399
CoreFoundation 0x30b7ac27 CFRunLoopRunSpecific + 523
CoreFoundation 0x30b7aa0b CFRunLoopRunInMode + 107
GraphicsServices 0x358a1283 GSEventRunModal + 139
UIKit 0x3341e049 UIApplicationMain + 1137
LiveCom 0x000a82c5 main (main.m:16)
libdyld.dylib 0x3b58fab7 start + 3

Resources