2017-02-20 17 views
1

マイアプリクラッシュのみiOS 9.2.1 残りのデバイスは大丈夫です。任意の場所でクラッシュします。私を助けてください=)私は批評を使用します。
私はプログラミングに新しいです、私に正しい方法を教えてください。

名SIGSEGV理由SEGV_MAPERRSIGSEGV SEGV_MAPERRクラッシュ、iOS 9.2.1のみ

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 


名SIGSEGV理由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 


名SIGSEGV理由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 


残念ながら私はこのデバイスiOS 9.2.1にアクセスできません。シミュレータで私のデバイスが正常に動作しています。iOS 10.2

+0

私はその問題を考えて、受信したReceiveMemoryWarningのチェックを入れました。しかし、エラーが発生した場所でXcodeの実行を停止させるためには、( –

+0

[例外ブレークポイントの追加](http://stackoverflow.com/questions/17802662/exception-breakpoint-in-xcode)がないことが判明しました。 – shallowThought

+0

@shallowThoughtありがとう、私はシミュレータを持っています9.1、9.2、9.3、 10.2は実に優れており、実際のiPhone 6 10.2でも動作します。別の地域の「アプリケーションテスター」の別の場所でクラッシュし、iOS 9.2 iPhone 6を設定しました –

答えて

1

SIGSEGVは、無効なメモリ参照またはセグメンテーションフォルトによって発生したエラー/信号です。アプリケーションが、範囲外の配列要素にアクセスしようとしているか、あまりにも多くのメモリを使用しようとしているようです。

この問題を解決する方法は、別のデバイス(またはシミュレータ)で発生させること、またはそのデバイスから完全なコンソールログを取得することによって、例外が何であるかを調べることです。これを行う簡単な方法は、例外ブレークポイントを設定して、SIGSEGVをトリガした最初の例外がどこにあるかを確認することです。

関連する問題