Crashed Foundation EXC_BAD_ACCESS KERN_INVALID_ADDRESS - ios

We are having a crash in Foundation, but we are unable to detect what could be the problem. We think that maybe an animation could trigger this problem.
Has anybody encounter this kind of crash? Here is the trace of the problem.
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x1dfc44e6 objc_msgSend + 5
1 Foundation 0x1f7b0e77 -[_NSConcreteObservation dealloc] + 96
2 libobjc.A.dylib 0x1dfd1195 objc_object::sidetable_release(bool) + 238
3 Foundation 0x1f679e9d empty + 32
4 Foundation 0x1f5d4787 -[NSConcreteMapTable removeAllItems] + 76
5 UIKit 0x246e5259 -[UIView(AdditionalLayoutSupport) _clearLayoutVariableObservationsOnlyToSupportTAMICChange:] + 56
6 UIKit 0x23efaa0b __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 380
7 Foundation 0x1f5f7b03 -[NSISEngine withBehaviors:performModifications:] + 262
8 UIKit 0x23df6e8b -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 220
9 UIKit 0x23efab91 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 170
10 UIKit 0x23efaaa7 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 536
11 Foundation 0x1f5f7b03 -[NSISEngine withBehaviors:performModifications:] + 262
12 UIKit 0x23df6e8b -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 220
13 UIKit 0x23efab91 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 170
14 UIKit 0x23efaaa7 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 536
15 Foundation 0x1f5f7b03 -[NSISEngine withBehaviors:performModifications:] + 262
16 UIKit 0x23df6e8b -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 220
17 UIKit 0x23df6737 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 92
18 Foundation 0x1f5f7b03 -[NSISEngine withBehaviors:performModifications:] + 262
19 UIKit 0x23df6607 -[UIView(Hierarchy) _postMovedFromSuperview:] + 754
20 UIKit 0x240e8949 __UIViewWasRemovedFromSuperview + 154
21 UIKit 0x23df57a5 -[UIView(Hierarchy) removeFromSuperview] + 1188
22 UIKit 0x24768167 __46-[UIInputWindowController invalidateInputView]_block_invoke + 120
23 UIKit 0x241872b9 -[UIResponder _preserveResponderOverridesWhilePerforming:] + 108
24 UIKit 0x247680eb -[UIInputWindowController invalidateInputView] + 108
25 UIKit 0x24768a17 -[UIInputWindowController changeToInputViewSet:] + 240
26 UIKit 0x24769d91 __43-[UIInputWindowController setInputViewSet:]_block_invoke.1331 + 26
27 UIKit 0x2476382d __77-[UIInputWindowController moveFromPlacement:toPlacement:starting:completion:]_block_invoke.932 + 404
28 UIKit 0x23e3363b -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 440
29 UIKit 0x23e33109 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 214
30 UIKit 0x23e32f91 -[UIViewAnimationState animationDidStop:finished:] + 128
31 QuartzCore 0x21c06ee7 CA::Layer::run_animation_callbacks(void*) + 252
32 libdispatch.dylib 0x1e3fa083 _dispatch_client_callout + 22
33 libdispatch.dylib 0x1e3fe5fd _dispatch_main_queue_callback_4CF + 890
34 CoreFoundation 0x1ed104a7 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
35 CoreFoundation 0x1ed0e78f __CFRunLoopRun + 1422
36 CoreFoundation 0x1ec5d533 CFRunLoopRunSpecific + 486
37 CoreFoundation 0x1ec5d341 CFRunLoopRunInMode + 104
38 GraphicsServices 0x20434bfd GSEventRunModal + 156
39 UIKit 0x23e65e67 -[UIApplication _run] + 574
40 UIKit 0x23e60591 UIApplicationMain + 150
41 App 0xb3c158 main (AppDelegate.swift:22)
42 libdispatch.dylib 0x1e42750b (Missing)

Related

NSString quotedStringRepresentation crash

We are getting the crash "NSString quotedStringRepresentation" very often is the production build. I saw the answers that were given in the previous post, but they did not help me. Can someone please help? Here's the log:
# Platform: ios
# Application:
# Version: N/A
# Date: 2017-03-23T06:48:38Z
# OS Version: 10.2.1 (14D27)
# Device: iPad Pro (12.9 inch)
# RAM Free: 20.3%
# Disk Free: 80.4%
#0. Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x18d1c7014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x18d28f450 pthread_kill + 112
2 libsystem_c.dylib 0x18d13b400 abort + 140
3 libsystem_malloc.dylib 0x18d20ba5c _nano_vet_and_size_of_live + 330
4 libsystem_malloc.dylib 0x18d20cf18 nano_realloc + 376
5 libsystem_malloc.dylib 0x18d1ff240 malloc_zone_realloc + 180
6 Foundation 0x18ec4a628 -[NSString quotedStringRepresentation] + 732
7 Foundation 0x18ec2a44c -[NSString _stringRepresentation] + 376
8 CoreFoundation 0x18e121f3c -[NSArray descriptionWithLocale:indent:] + 404
9 Foundation 0x18ec04af4 _NSDescriptionWithLocaleFunc + 76
10 CoreFoundation 0x18e1ba23c __CFStringAppendFormatCore + 7996
11 CoreFoundation 0x18e1b82c8 _CFStringCreateWithFormatAndArgumentsAux2 + 244
12 Foundation 0x18ec04968 +[NSString stringWithFormat:] + 68
13 UIKit 0x1949fc090 UIViewAlertForUnsatisfiableConstraints + 664
14 Foundation 0x18ec794cc -[NSISEngine handleUnsatisfiableRowWithHead:body:usingInfeasibilityHandlingBehavior:mutuallyExclusiveConstraints:] + 464
15 Foundation 0x18ec59df8 -[NSISEngine tryUsingArtificialVariableToAddConstraintWithMarker:rowBody:usingInfeasibilityHandlingBehavior:mutuallyExclusiveConstraints:] + 384
16 Foundation 0x18ec559c4 -[NSISEngine tryToAddConstraintWithMarker:expression:integralizationAdjustment:mutuallyExclusiveConstraints:] + 688
17 Foundation 0x18ec555cc -[NSLayoutConstraint _addLoweredExpression:toEngine:integralizationAdjustment:lastLoweredConstantWasRounded:mutuallyExclusiveConstraints:] + 284
18 Foundation 0x18ec531e0 -[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:] + 272
19 UIKit 0x1941a7400 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 396
20 Foundation 0x18ec52d10 -[NSISEngine withBehaviors:performModifications:] + 168
21 UIKit 0x1941a720c __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 564
22 UIKit 0x1940a3b14 -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 224
23 UIKit 0x1941e4cf0 -[UIView(AdditionalLayoutSupport) _initializeHostedLayoutEngine] + 460
24 UIKit 0x1941aed34 -[UIView(UIConstraintBasedLayout) _layoutEngine_windowDidChange] + 132
25 UIKit 0x1940a3c10 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 200
26 UIKit 0x1940a3e18 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 720
27 UIKit 0x1940a32c4 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 156
28 Foundation 0x18ec52d10 -[NSISEngine withBehaviors:performModifications:] + 168
29 UIKit 0x1940a3138 -[UIView(Hierarchy) _postMovedFromSuperview:] + 820
30 UIKit 0x1940af018 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1788
31 UIKit 0x1940ae904 -[UIView(Hierarchy) addSubview:] + 828
32 UIKit 0x19416abc8 -[UINavigationTransitionView transition:fromView:toView:] + 624
33 UIKit 0x194160e5c -[UINavigationController _startTransition:fromViewController:toViewController:] + 2572
34 UIKit 0x19415ff28 -[UINavigationController _startDeferredTransitionIfNeeded:] + 856
35 UIKit 0x19415fadc -[UINavigationController __viewWillLayoutSubviews] + 64
36 UIKit 0x19415fa40 -[UILayoutContainerView layoutSubviews] + 188
37 UIKit 0x1940a4a80 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1196
38 QuartzCore 0x1915529d8 -[CALayer layoutSublayers] + 148
39 QuartzCore 0x1915474cc CA::Layer::layout_if_needed(CA::Transaction*) + 292
40 QuartzCore 0x19154738c CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32
41 QuartzCore 0x1914c43e0 CA::Context::commit_transaction(CA::Transaction*) + 252
42 QuartzCore 0x1914eba68 CA::Transaction::commit() + 512
43 UIKit 0x19432a864 _UIApplicationFlushRunLoopCATransactionIfTooLate + 208
44 UIKit 0x19488bfa4 __handleEventQueue + 4484
45 CoreFoundation 0x18e1a6b5c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
46 CoreFoundation 0x18e1a64a4 __CFRunLoopDoSources0 + 524
47 CoreFoundation 0x18e1a40a4 __CFRunLoopRun + 804
48 CoreFoundation 0x18e0d22b8 CFRunLoopRunSpecific + 444
49 GraphicsServices 0x18fb86198 GSEventRunModal + 180
50 UIKit 0x1941127fc -[UIApplication _run] + 684
51 UIKit 0x19410d534 UIApplicationMain + 208
52 DiabetesMD 0x100015f20 main (AppDelegate.swift:15)
53 libdispatch.dylib 0x18d0b55b8 (Missing)

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.

How to detect crash from the following code?

Im trying to find crash from following code / snippet.
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 6771342288 objc_msgSend + 16
1 Foundation 6488040888 vars_index_with_insert + 396
2 Foundation 6488046624 -[NSISLinearExpression setCoefficient:forVariable:] + 372
3 Foundation 6488038164 -[NSLayoutConstraint _lowerIntoExpression:reportingConstantIsRounded:] + 432
4 Foundation 6488033112 -[NSLayoutConstraint _tryToChangeContainerGeometryWithUndoHandler:] + 136
5 Foundation 6488032176 -[NSLayoutConstraint _setSymbolicConstant:constant:] + 420
6 UIKit 6558145124 -[UIWindow(AdditionalLayoutSupport) _windowInternalConstraints_sizeDidChange] + 220
7 UIKit 6553937808 -[UIWindow _setFrame:sendTraitNotifications:] + 436
8 UIKit 6553925712 __78-[UIWindow _rotateWindowToOrientation:updateStatusBar:duration:skipCallbacks:]_block_invoke1072 + 264
9 UIKit 6556461676 __58-[_UIWindowRotationAnimationController animateTransition:]_block_invoke + 56
10 UIKit 6551262980 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 508
11 UIKit 6551360196 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:] + 68
12 UIKit 6556461540 -[_UIWindowRotationAnimationController animateTransition:] + 388
13 UIKit 6553920912 -[UIWindow _rotateToBounds:withAnimator:transitionContext:] + 800
14 UIKit 6553924620 -[UIWindow _rotateWindowToOrientation:updateStatusBar:duration:skipCallbacks:] + 1260
15 UIKit 6553926412 -[UIWindow _setRotatableClient:toOrientation:applyTransformToWindow:updateStatusBar:duration:force:isRotating:] + 360
16 UIKit 6551563312 -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 144
17 UIKit 6551529112 __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke + 128
18 UIKit 6551053184 -[UIWindow _updateToInterfaceOrientation:duration:force:] + 400
19 UIKit 6551051872 -[UIWindow _updateInterfaceOrientationFromDeviceOrientation:] + 332
20 CoreFoundation 6472590020 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20
21 CoreFoundation 6471791696 _CFXNotificationPost + 2060
22 Foundation 6487714432 -[NSNotificationCenter postNotificationName:object:userInfo:] + 72
23 UIKit 6551051060 -[UIDevice setOrientation:animated:] + 360
24 UIKit 6551050224 -[UIApplication handleEvent:withNewEvent:] + 1632
25 UIKit 6551048320 -[UIApplication sendEvent:] + 104
26 UIKit 6551491268 _UIApplicationHandleEvent + 700
27 GraphicsServices 6633656724 _PurpleEventCallback + 712
28 GraphicsServices 6633655428 PurpleEventCallback + 44
29 CoreFoundation 6472661588 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56
30 CoreFoundation 6472661428 __CFRunLoopDoSource1 + 436
31 CoreFoundation 6472653108 __CFRunLoopRun + 1640
32 CoreFoundation 6471783124 CFRunLoopRunSpecific + 396
33 GraphicsServices 6633649916 GSEventRunModal + 168
34 UIKit 6551465792 UIApplicationMain + 1488
35 project_name 4298267384 main + 108 (main.m:18)
36 libdyld.dylib 6778251784 start + 4
go to "Breakpoint navigator" and click on "+" button on bottom-left and select "Add Exception Breakpoint...".
This kind of breakpoint capture all exception, so you can navigate on stack error on left side and figure out what happened.

Autolayout works great on iOS 8, crashes on iOS 7

I have an issue where a screen with autolayout that works great on iOS 8 - but crashes on iOS 7.
All subviews are configured in the XIB.
The error message is:
Terminating app due to uncaught exception 'NSGenericException', reason: 'Unable to install constraint on view.
Does the constraint reference something from outside the subtree of the view? That's illegal.
constraint:<NSLayoutConstraint:0x7ef80720 V:[UIImageView:0x7ef7fb40]-(0)-[UILabel:0x7ef802f0]> view:<UIView: 0x7ef7f1e0; frame = (0 0; 768 275); autoresize = RM+BM; layer = <CALayer: 0x7ef7f240>>'
Here's the stack trace:
(
0 CoreFoundation 0x0588a1e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x0563d8e5 objc_exception_throw + 44
2 CoreFoundation 0x05889fbb +[NSException raise:format:] + 139
3 Foundation 0x0284d55f -[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:] + 197
4 Foundation 0x028509ad -[NSLayoutConstraint _addToEngine:] + 56
5 UIKit 0x0460c974 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 515
6 Foundation 0x029c768c -[NSISEngine withBehaviors:performModifications:] + 107
7 Foundation 0x028573c5 -[NSISEngine withAutomaticOptimizationDisabled:] + 48
8 UIKit 0x0460ce40 -[UIView(AdditionalLayoutSupport) _withAutomaticEngineOptimizationDisabledIfEngineExists:] + 63
9 UIKit 0x0460c754 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 476
10 UIKit 0x0460ce48 -[UIView(AdditionalLayoutSupport) _withAutomaticEngineOptimizationDisabledIfEngineExists:] + 71
11 UIKit 0x0460c54f -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 223
12 UIKit 0x0460c46b -[UIView(AdditionalLayoutSupport) _parentalLayoutEngineDidChangeTo:] + 55
13 UIKit 0x0460c850 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 223
14 Foundation 0x029c768c -[NSISEngine withBehaviors:performModifications:] + 107
15 Foundation 0x028573c5 -[NSISEngine withAutomaticOptimizationDisabled:] + 48
16 UIKit 0x0460ce40 -[UIView(AdditionalLayoutSupport) _withAutomaticEngineOptimizationDisabledIfEngineExists:] + 63
17 UIKit 0x0460c754 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 476
18 UIKit 0x0460ce48 -[UIView(AdditionalLayoutSupport) _withAutomaticEngineOptimizationDisabledIfEngineExists:] + 71
19 UIKit 0x0460c54f -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 223
20 UIKit 0x0460c46b -[UIView(AdditionalLayoutSupport) _parentalLayoutEngineDidChangeTo:] + 55
21 UIKit 0x0460c850 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 223
22 Foundation 0x029c768c -[NSISEngine withBehaviors:performModifications:] + 107
23 Foundation 0x028573c5 -[NSISEngine withAutomaticOptimizationDisabled:] + 48
24 UIKit 0x0460ce40 -[UIView(AdditionalLayoutSupport) _withAutomaticEngineOptimizationDisabledIfEngineExists:] + 63
25 UIKit 0x0460c754 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 476
26 UIKit 0x0460ce48 -[UIView(AdditionalLayoutSupport) _withAutomaticEngineOptimizationDisabledIfEngineExists:] + 71
27 UIKit 0x0460c54f -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 223
28 UIKit 0x0460c46b -[UIView(AdditionalLayoutSupport) _parentalLayoutEngineDidChangeTo:] + 55
29 UIKit 0x03fd0948 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 119
30 Foundation 0x029c768c -[NSISEngine withBehaviors:performModifications:] + 107
31 Foundation 0x028573c5 -[NSISEngine withAutomaticOptimizationDisabled:] + 48
32 UIKit 0x03fd0830 -[UIView(Hierarchy) _postMovedFromSuperview:] + 313
33 UIKit 0x03fdbdd4 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1875
34 UIKit 0x03fcedba -[UIView(Hierarchy) addSubview:] + 56
35 UIKit 0x03f66645 -[_UIParallaxDimmingView didMoveToWindow] + 129
36 UIKit 0x03fd9478 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1642
37 UIKit 0x03fd9109 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 763
38 UIKit 0x03fd096f __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 158
39 Foundation 0x029c768c -[NSISEngine withBehaviors:performModifications:] + 107
40 Foundation 0x028573c5 -[NSISEngine withAutomaticOptimizationDisabled:] + 48
41 UIKit 0x03fd0830 -[UIView(Hierarchy) _postMovedFromSuperview:] + 313
42 UIKit 0x03fdbdd4 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1875
43 UIKit 0x03fcedba -[UIView(Hierarchy) addSubview:] + 56
44 UIKit 0x03f630f2 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke + 2001
45 UIKit 0x03fd581f +[UIView(Animation) performWithoutAnimation:] + 82
46 UIKit 0x03f624f6 -[_UINavigationParallaxTransition animateTransition:] + 1155
47 UIKit 0x040a93ae -[UINavigationController _startCustomTransition:] + 3446
48 UIKit 0x040b58f7 -[UINavigationController _startDeferredTransitionIfNeeded:] + 688
49 UIKit 0x040b64e9 -[UINavigationController __viewWillLayoutSubviews] + 57
50 UIKit 0x041f70d1 -[UILayoutContainerView layoutSubviews] + 213
51 UIKit 0x03fde964 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 355
52 libobjc.A.dylib 0x0564f82b -[NSObject performSelector:withObject:] + 70
53 QuartzCore 0x03dac45a -[CALayer layoutSublayers] + 148
54 QuartzCore 0x03da0244 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
55 QuartzCore 0x03da00b0 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26
56 QuartzCore 0x03d067fa _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 294
57 QuartzCore 0x03d07b85 _ZN2CA11Transaction6commitEv + 393
58 QuartzCore 0x03dc55b0 +[CATransaction flush] + 52
59 UIKit 0x03f6d9bb _UIApplicationHandleEventQueue + 13095
60 CoreFoundation 0x0581377f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
61 CoreFoundation 0x0581310b __CFRunLoopDoSources0 + 235
62 CoreFoundation 0x058301ae __CFRunLoopRun + 910
63 CoreFoundation 0x0582f9d3 CFRunLoopRunSpecific + 467
64 CoreFoundation 0x0582f7eb CFRunLoopRunInMode + 123
65 GraphicsServices 0x06b4f5ee GSEventRunModal + 192
66 GraphicsServices 0x06b4f42b GSEventRun + 104
67 UIKit 0x03f6ff9b UIApplicationMain + 1225
68 Pageonce 0x000db639 main + 73
69 libdyld.dylib 0x064fe6d9 start + 1
)
What is the issue?
Turns out these two lines caused the crash:
self.ninjaStarImage.layer.removeFromSuperlayer()
self.view.layer.addSublayer(self.ninjaStarImage.layer)
Moving them to viewDidLayoutSubviews solved the problem

Crash on iOS 7: [NSConcreteMapTable assign:key:value:isNew:]

I get the next line on the crash log:
[NSConcreteMapTable assign:key:value:isNew:]
This crash happens on iOS 7, but not on iOS 8.
Somewhere before this line there are calls for NSLayoutConstraint:
-[NSLayoutConstraint _addLoweredExpression:toEngine:integralizationAdjustment:lastLoweredConstantWasRounded:mutuallyExclusiveConstraints:]
-[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:]
-[NSLayoutConstraint _addToEngine:]
Do you guys think this crash has something to do with the Storyboard layout constraint I have set?
Thread : Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x3b46d626 objc_msgSend + 5
1 Foundation 0x315da681 -[NSConcreteMapTable assign:key:value:isNew:] + 68
2 Foundation 0x315da5fb -[NSConcreteMapTable setObject:forKey:] + 82
3 Foundation 0x3161daf7 -[NSISEngine setRowWithHead:body:] + 30
4 Foundation 0x316205d1 -[NSISEngine pivotToMakeBodyVar:newHeadOfRowWithHead:andDropRow:] + 388
5 Foundation 0x3161e325 -[NSISEngine minimizeConstantInObjectiveRowWithHead:] + 236
6 Foundation 0x31620d9f -[NSISEngine tryUsingArtificialVariableToAddConstraintWithMarker:rowBody:usingInfeasibilityHandlingBehavior:mutuallyExclusiveConstraints:] + 226
7 Foundation 0x3161c5fd -[NSISEngine tryToAddConstraintWithMarker:expression:integralizationAdjustment:mutuallyExclusiveConstraints:] + 692
8 Foundation 0x3161c23b -[NSLayoutConstraint _addLoweredExpression:toEngine:integralizationAdjustment:lastLoweredConstantWasRounded:mutuallyExclusiveConstraints:] + 286
9 Foundation 0x31619f6d -[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:] + 232
10 Foundation 0x316257ed -[NSLayoutConstraint _addToEngine:] + 28
11 UIKit 0x335c2c55 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 332
12 Foundation 0x31619b2b -[NSISEngine withBehaviors:performModifications:] + 210
13 UIKit 0x335c2ad9 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 336
14 UIKit 0x334cf20d -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 200
15 UIKit 0x335c2bbb __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 178
16 Foundation 0x31619b2b -[NSISEngine withBehaviors:performModifications:] + 210
17 UIKit 0x335c2ad9 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 336
18 UIKit 0x334cf20d -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 200
19 UIKit 0x335c2bbb __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 178
20 Foundation 0x31619b2b -[NSISEngine withBehaviors:performModifications:] + 210
21 UIKit 0x335c2ad9 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 336
22 UIKit 0x334cf20d -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 200
23 UIKit 0x335c2bbb __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 178
24 Foundation 0x31619b2b -[NSISEngine withBehaviors:performModifications:] + 210
25 UIKit 0x335c2ad9 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 336
26 UIKit 0x334cf20d -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 200
27 UIKit 0x334cee33 __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 82
28 Foundation 0x31619b2b -[NSISEngine withBehaviors:performModifications:] + 210
29 UIKit 0x334cecd3 -[UIView(Hierarchy) _postMovedFromSuperview:] + 298
30 UIKit 0x334dba4f -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1414
31 UIKit 0x334db4bf -[UIView(Hierarchy) addSubview:] + 30
32 UIKit 0x335bcdb7 -[UITransitionView transition:fromView:toView:removeFromView:] + 978
33 UIKit 0x335fcf3f -[UITransitionView transition:fromView:toView:] + 30
34 UIKit 0x335fcf15 -[UITransitionView transition:toView:] + 104
35 UIKit 0x335fc03b -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 1106
36 UIKit 0x335fbbdf -[UITabBarController transitionFromViewController:toViewController:] + 38
37 UIKit 0x335fbab7 -[UITabBarController _setSelectedViewController:] + 258
38 UIKit 0x336c5dd5 -[UITabBarController _tabBarItemClicked:] + 272
39 UIKit 0x33505037 -[UIApplication sendAction:to:from:forEvent:] + 90
40 UIKit 0x33504fd7 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 30
41 UIKit 0x336c5c8b -[UITabBar _sendAction:withEvent:] + 370
42 UIKit 0x33505037 -[UIApplication sendAction:to:from:forEvent:] + 90
43 UIKit 0x33504fd7 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 30
44 UIKit 0x33504fb1 -[UIControl sendAction:to:forEvent:] + 44
45 UIKit 0x334f0717 -[UIControl _sendActionsForEvents:withEvent:] + 374
46 Foundation 0x31693163 __NSFireDelayedPerform + 414
47 CoreFoundation 0x30c7e167 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 14
48 CoreFoundation 0x30c7dd7f __CFRunLoopDoTimer + 782
49 CoreFoundation 0x30c7c11b __CFRunLoopRun + 1210
50 CoreFoundation 0x30be6ebf CFRunLoopRunSpecific + 522
51 CoreFoundation 0x30be6ca3 CFRunLoopRunInMode + 106
52 GraphicsServices 0x35aec663 GSEventRunModal + 138
53 UIKit 0x3353314d UIApplicationMain + 1136
seems like your using iOS 8 only constraints go to the storyboard open it on the top left corner you will see a little yellow icon with reading mark on it press on it and search for iOS8 only warnings, if you find any remove those constraints and rebuild your application.

Resources