I know this question might sound stupid but I hope to understand what is the problem in this crash report that generated in Xcode. I have no idea which view controller/page or which feature it crashes at. How to study a crash report? Anyone please help..
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001000ba1d8
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 myfirstapp 0x00000001000ba1d8 0x1000b0000 + 41432
1 myfirstapp 0x00000001000ba208 0x1000b0000 + 41480
2 UIKit 0x0000000197b3e754 -[UIViewController _setViewAppearState:isAnimating:] + 624 (UIViewController.m:3801)
3 UIKit 0x0000000197b3e4cc -[UIViewController __viewWillAppear:] + 156 (UIViewController.m:3911)
4 UIKit 0x0000000197bdf760 -[UINavigationController _startTransition:fromViewController:toViewController:] + 784 (UINavigationController.m:4824)
5 UIKit 0x0000000197bdef28 -[UINavigationController _startDeferredTransitionIfNeeded:] + 856 (UINavigationController.m:4971)
6 UIKit 0x0000000197bdeadc -[UINavigationController __viewWillLayoutSubviews] + 64 (UINavigationController.m:5224)
7 UIKit 0x0000000197bdea40 -[UILayoutContainerView layoutSubviews] + 188 (UILayoutContainerView.m:86)
8 UIKit 0x0000000197b23a80 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1196 (UIView.m:14198)
9 QuartzCore 0x0000000194fd19d8 -[CALayer layoutSublayers] + 148 (CALayer.mm:8926)
10 QuartzCore 0x0000000194fc64cc CA::Layer::layout_if_needed(CA::Transaction*) + 292 (CALayer.mm:8806)
11 QuartzCore 0x0000000194fc638c CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32 (CALayer.mm:2345)
12 QuartzCore 0x0000000194f433e0 CA::Context::commit_transaction(CA::Transaction*) + 252 (CAContextInternal.mm:1683)
13 QuartzCore 0x0000000194f6aa68 CA::Transaction::commit() + 512 (CATransactionInternal.mm:419)
14 QuartzCore 0x0000000194f6b488 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 120 (CATransactionInternal.mm:778)
15 CoreFoundation 0x0000000191c1e0c0 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:1802)
16 CoreFoundation 0x0000000191c1bcf0 __CFRunLoopDoObservers + 372 (CFRunLoop.c:1898)
17 CoreFoundation 0x0000000191c1c180 __CFRunLoopRun + 1024 (CFRunLoop.c:2849)
18 CoreFoundation 0x0000000191b4a2b8 CFRunLoopRunSpecific + 444 (CFRunLoop.c:3113)
19 GraphicsServices 0x00000001935fe198 GSEventRunModal + 180 (GSEvent.c:2245)
20 UIKit 0x0000000197b917fc -[UIApplication _run] + 684 (UIApplication.m:2650)
21 UIKit 0x0000000197b8c534 UIApplicationMain + 208 (UIApplication.m:4092)
22 myfirstapp 0x00000001000b7b54 0x1000b0000 + 31572
23 libdyld.dylib 0x0000000190b2d5b8 start + 4
You can use the po command in the debugger console or add na exception breakpoint in Xcode breakpoint setting section.
Related
I had crash when open push notification. crash log from apple. where is a problem
Help read this log
I just open "OrderDetailsVC" when user open push
xception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001028b15f8
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [870]
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 Moitane 0x00000001028b15f8 OrderDetailsVC.viewDidLoad() + 268 (OrderDetailsVC.swift:144)
1 Moitane 0x00000001028b1618 #objc OrderDetailsVC.viewDidLoad() + 28 (<compiler-generated>:0)
2 UIKitCore 0x00000001bdf7ae08 -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 100 (UIViewController.m:2283)
3 UIKitCore 0x00000001bdf7f898 -[UIViewController loadViewIfRequired] + 936 (UIViewController.m:3382)
4 UIKitCore 0x00000001bdf7fca0 -[UIViewController view] + 28 (UIViewController.m:3404)
5 UIKitCore 0x00000001bdedf528 -[UINavigationController _startCustomTransition:] + 1180 (UINavigationController.m:1893)
6 UIKitCore 0x00000001bdef33f0 -[UINavigationController _startDeferredTransitionIfNeeded:] + 688 (UINavigationController.m:6719)
7 UIKitCore 0x00000001bdef4790 -[UINavigationController __viewWillLayoutSubviews] + 172 (UINavigationController.m:6988)
8 UIKitCore 0x00000001bded7cf0 -[UILayoutContainerView layoutSubviews] + 224 (UILayoutContainerView.m:86)
9 UIKitCore 0x00000001bea6ec7c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2144 (UIView.m:17176)
10 QuartzCore 0x00000001c10084ac -[CALayer layoutSublayers] + 284 (CALayer.mm:9644)
11 QuartzCore 0x00000001c100e604 CA::Layer::layout_if_needed(CA::Transaction*) + 468 (CALayer.mm:9518)
12 QuartzCore 0x00000001c1019148 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 140 (CALayer.mm:2468)
13 QuartzCore 0x00000001c0f61e34 CA::Context::commit_transaction(CA::Transaction*, double) + 296 (CAContextInternal.mm:1992)
14 QuartzCore 0x00000001c0f8b7c4 CA::Transaction::commit() + 676 (CATransactionInternal.mm:438)
15 QuartzCore 0x00000001c0f8c1d8 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 92 (CATransactionInternal.mm:890)
16 CoreFoundation 0x00000001ba492fb8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:1758)
17 CoreFoundation 0x00000001ba48deac __CFRunLoopDoObservers + 420 (CFRunLoop.c:1868)
18 CoreFoundation 0x00000001ba48e328 __CFRunLoopRun + 968 (CFRunLoop.c:2910)
19 CoreFoundation 0x00000001ba48dc34 CFRunLoopRunSpecific + 424 (CFRunLoop.c:3192)
20 GraphicsServices 0x00000001c45d738c GSEventRunModal + 160 (GSEvent.c:2246)
21 UIKitCore 0x00000001be5c022c UIApplicationMain + 1932 (UIApplication.m:4820)
22 Moitane 0x0000000102887b70 main + 68 (LocalizableBtn.swift:19)
23 libdyld.dylib 0x00000001ba315800 start + 4
Your viewDidLoad in OrderDetailsVC.swift (frames 1 and 2 of the stack trace) are the culprit:
0 Moitane 0x00000001028b15f8 OrderDetailsVC.viewDidLoad() + 268 (OrderDetailsVC.swift:144)
1 Moitane 0x00000001028b1618 #objc OrderDetailsVC.viewDidLoad() + 28 (<compiler-generated>:0)
I'm looking into a crash report in Fabric, and I have no idea what might have caused it. The stack trace is not particularly helpful, however it looks the app was preparing to be suspended in the background. Here is the crash message:
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x444444444444445
Here's the stack trace:
Crashed: com.apple.main-thread
0 QuartzCore 0x18680fdf0 CALayerGetLayer + 12
1 QuartzCore 0x186810540 CA::Context::invalidate() + 68
2 QuartzCore 0x1868104cc -[CAContextImpl dealloc] + 64
3 UIKit 0x188f04bc4 -[UIWindow _destroyContext] + 324
4 UIKit 0x188f049e4 +[UIWindow _prepareWindowsForAppSuspend] + 172
5 UIKit 0x188f0491c -[UIApplication _destroyContextsAndNotifySpringBoard] + 28
6 UIKit 0x189124244 __102-[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:]_block_invoke_2 + 240
7 UIKit 0x1891280f0 __65-[UIApplication _performSnapshotsWithAction:forScene:completion:]_block_invoke2283 + 148
8 FrontBoardServices 0x1856c9fc0 -[FBSSceneSnapshotAction _finishAllRequests] + 80
9 FrontBoardServices 0x1856c9d38 -[FBSSceneSnapshotAction executeRequestsWithHandler:completionHandler:expirationHandler:] + 224
10 UIKit 0x189127ee0 __65-[UIApplication _performSnapshotsWithAction:forScene:completion:]_block_invoke + 272
11 UIKit 0x1891274e0 -[UIApplication _beginSnapshotSessionForScene:withSnapshotBlock:] + 900
12 UIKit 0x189127d7c -[UIApplication _performSnapshotsWithAction:forScene:completion:] + 560
13 UIKit 0x189127ad0 -[UIApplication _handleSnapshotAction:forScene:completion:] + 156
14 UIKit 0x1891243dc __102-[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:]_block_invoke2031 + 272
15 UIKit 0x189123ffc __102-[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:]_block_invoke2017 + 1040
16 UIKit 0x189126fd8 _runAfterCACommitDeferredBlocks + 292
17 UIKit 0x189134990 _cleanUpAfterCAFlushAndRunDeferredBlocks + 92
18 UIKit 0x188e664a4 _afterCACommitHandler + 96
19 CoreFoundation 0x183ce07b0 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
20 CoreFoundation 0x183cde554 __CFRunLoopDoObservers + 372
21 CoreFoundation 0x183cde984 __CFRunLoopRun + 928
22 CoreFoundation 0x183c08d10 CFRunLoopRunSpecific + 384
23 GraphicsServices 0x1854f0088 GSEventRunModal + 180
24 UIKit 0x188eddf70 UIApplicationMain + 204
25 HDWR 0x1000706dc main (AppDelegate.swift:37)
26 libdispatch.dylib 0x1837a68b8 (Missing)
Any idea how I can get to the bottom of this?
Does this seem like it might be a bug in UIKit or QuartzCore, or is it more likely to be a bug in our own code?
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x444444444444445
i think you are using nil object which is not insalized
I received a crash log with an error which I can't reproduce. Only information I got was that it happened after login, so I guess that it was on main screen. Any ideas if that log contains useful information?
Incident Identifier: xx-1698-4F90-BFE4-xx
CrashReporter Key: xxx
Hardware Model: xxx
Process: aaa [10980]
Path: /private/var/mobile/Containers/Bundle/Application/1A877BC6-4BEF-4EC0-8734-9B1A8A51A0AB/aaa.app/aaa
Identifier: aaa.ios
Version: 2 (1.02)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2016-03-01 10:10:04.04 -0800
Launch Time: 2016-03-01 10:09:19.19 -0800
OS Version: iOS 9.2.1 (13D15)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Filtered syslog:
None found
Last Exception Backtrace:
0 CoreFoundation 0x180e45900 __exceptionPreprocess + 124
1 libobjc.A.dylib 0x1804b3f80 objc_exception_throw + 56
2 CoreFoundation 0x180d341a8 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 324
3 CoreFoundation 0x180d34040 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 64
4 app_name 0x100056ef8 0x100040000 + 93944
5 app_name 0x100057904 0x100040000 + 96516
6 UIKit 0x185b380c0 -[UIViewController loadViewIfRequired] + 996
7 UIKit 0x185bf7da8 -[UINavigationController _layoutViewController:] + 72
8 UIKit 0x185bf7c80 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 416
9 UIKit 0x185bf6ec8 -[UINavigationController _startTransition:fromViewController:toViewController:] + 144
10 UIKit 0x185bf6a6c -[UINavigationController _startDeferredTransitionIfNeeded:] + 868
11 UIKit 0x185bf6694 -[UINavigationController __viewWillLayoutSubviews] + 60
12 UIKit 0x185bf65fc -[UILayoutContainerView layoutSubviews] + 208
13 UIKit 0x185b33778 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 656
14 QuartzCore 0x183542b2c -[CALayer layoutSublayers] + 148
15 QuartzCore 0x18353d738 CA::Layer::layout_if_needed(CA::Transaction*) + 292
16 QuartzCore 0x18353d5f8 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32
17 QuartzCore 0x18353cc94 CA::Context::commit_transaction(CA::Transaction*) + 252
18 QuartzCore 0x18353c9dc CA::Transaction::commit() + 512
19 QuartzCore 0x1835360cc CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 80
20 CoreFoundation 0x180dfc588 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
21 CoreFoundation 0x180dfa32c __CFRunLoopDoObservers + 372
22 CoreFoundation 0x180dfa75c __CFRunLoopRun + 928
23 CoreFoundation 0x180d29680 CFRunLoopRunSpecific + 384
24 GraphicsServices 0x182238088 GSEventRunModal + 180
25 UIKit 0x185ba0d90 UIApplicationMain + 204
26 app_name 0x1000780c4 0x100040000 + 229572
27 libdyld.dylib 0x1808ca8b8 start + 4
Apparently an App I submitted for review crashed twice on an iPad, with the following issue highlighted. I'm having trouble deciphering anything usable from this, if anyone's able to shed some light on this I'd appreciate it. I've attempted to replicate the issue using the simulator's but I've been unsuccessful. I don't understand how this could work on an iPhone, whilst testing, but not on the iPad.
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000195a8f270 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000195b2d224 pthread_kill + 108
2 libsystem_c.dylib 0x0000000195a06b14 abort + 108
3 Christmas 0x0000000100101b90 0x1000f4000 + 56208
4 Christmas 0x0000000100101744 0x1000f4000 + 55108
5 Christmas 0x00000001000ff504 0x1000f4000 + 46340
6 Christmas 0x00000001000ff218 0x1000f4000 + 45592
7 Christmas 0x0000000100135088 0x1000f4000 + 266376
8 UIKit 0x0000000188f6be3c -[UIViewController _setViewAppearState:isAnimating:] + 512
9 UIKit 0x00000001890099bc -[UINavigationController _startTransition:fromViewController:toViewController:] + 796
10 UIKit 0x00000001890093b8 -[UINavigationController _startDeferredTransitionIfNeeded:] + 636
11 UIKit 0x00000001890090d8 -[UINavigationController __viewWillLayoutSubviews] + 52
12 UIKit 0x0000000189009058 -[UILayoutContainerView layoutSubviews] + 196
13 UIKit 0x0000000188f51a28 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 568
14 QuartzCore 0x00000001888a9990 -[CALayer layoutSublayers] + 164
15 QuartzCore 0x00000001888a4560 CA::Layer::layout_if_needed(CA::Transaction*) + 316
16 QuartzCore 0x00000001888a4404 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 28
17 QuartzCore 0x00000001888a3c04 CA::Context::commit_transaction(CA::Transaction*) + 272
18 QuartzCore 0x00000001888a3988 CA::Transaction::commit() + 432
19 UIKit 0x0000000188f489fc _afterCACommitHandler + 152
20 CoreFoundation 0x000000018475e148 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 28
21 CoreFoundation 0x000000018475b0d4 __CFRunLoopDoObservers + 356
22 CoreFoundation 0x000000018475b4b4 __CFRunLoopRun + 832
23 CoreFoundation 0x00000001846891f0 CFRunLoopRunSpecific + 392
24 GraphicsServices 0x000000018d7eb5a0 GSEventRunModal + 164
25 UIKit 0x0000000188fba780 UIApplicationMain + 1484
26 Christmas 0x0000000100103914 0x1000f4000 + 63764
27 libdyld.dylib 0x0000000195976a04 start + 0
I found couple of strange crash issues in my app and here is the details of it
Incident Identifier: 9ECA0354-F69F-4562-A9FC-4904319BFC72
CrashReporter Key: 7e75d7f19d6ccbb07328f3b3317626187ecbc9bb
Hardware Model: iPod5,1
Process: myApp [1760]
Path: /var/mobile/Applications/7E5B3CA8-81BA-4F6A-A2A8-1B8F4060A037/myApp.app/myApp
Identifier: myApp
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-09-24 11:33:16.513 +0530
OS Version: iOS 6.1.3 (10B329)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 11
Last Exception Backtrace:
0 CoreFoundation 0x342c229e __exceptionPreprocess + 158
1 libobjc.A.dylib 0x3bfa697a objc_exception_throw + 26
2 CoreFoundation 0x342c1d80 __NSFastEnumerationMutationHandler + 124
3 Foundation 0x34b62504 -[NSConcreteMapTable countByEnumeratingWithState:objects:count:] + 52
4 CoreFoundation 0x3424ad34 -[__NSFastEnumerationEnumerator nextObject] + 128
5 CoreFoundation 0x3421df0c -[NSEnumerator countByEnumeratingWithState:objects:count:] + 44
6 Foundation 0x34c7208e -[NSISEngine enumerateRows:] + 210
7 Foundation 0x34c77fda -[NSISEngine description] + 118
8 CoreFoundation 0x34232892 -[NSObject(NSObject) _copyDescription] + 30
9 CoreFoundation 0x342a32d6 __CFStringAppendFormatCore + 11134
10 CoreFoundation 0x3423dfa4 CFStringCreateWithFormatAndArguments + 68
11 CoreFoundation 0x342c2190 +[NSException raise:format:] + 52
12 Foundation 0x34c7411a -[NSISEngine minimizeConstantInObjectiveRowWithHead:] + 186
13 Foundation 0x34c76754 -[NSISEngine optimize] + 56
14 Foundation 0x34c76e6a -[NSISEngine tryToAddConstraintWithMarker:expression:integralizationAdjustment:mutuallyExclusiveConstraints:] + 630
15 Foundation 0x34c7fbba -[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:] + 390
16 UIKit 0x365033bc -[UIView(UIConstraintBasedLayout) _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] + 124
17 UIKit 0x36503530 -[UIView(UIConstraintBasedLayout) _tryToAddConstraintWithoutUpdatingConstraintsArray:roundingAdjustment:mutuallyExclusiveConstraints:] + 32
18 UIKit 0x360ea2dc -[UIView(Internal) _didMoveFromWindow:toWindow:] + 372
19 UIKit 0x360ea5c2 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1114
20 UIKit 0x360e4e4e -[UIView(Hierarchy) _postMovedFromSuperview:] + 134
21 UIKit 0x360cc7d8 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1296
22 UIKit 0x360e9af2 -[UIScrollView(UIScrollViewInternal) _addContentSubview:atBack:] + 66
23 UIKit 0x360e993a -[UITableView(_UITableViewPrivate) _addContentSubview:atBack:] + 126
24 UIKit 0x360fc0a0 -[UITableView(_UITableViewPrivate) _updateVisibleHeadersAndFootersNow:] + 1696
25 UIKit 0x360fa506 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1810
26 UIKit 0x361117ca -[UITableView layoutSubviews] + 202
27 UIKit 0x360cd7fe -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 254
28 QuartzCore 0x35e77d86 -[CALayer layoutSublayers] + 210
29 QuartzCore 0x35e77924 CA::Layer::layout_if_needed(CA::Transaction*) + 456
30 QuartzCore 0x35e78858 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 12
31 QuartzCore 0x35e7823e CA::Context::commit_transaction(CA::Transaction*) + 234
32 QuartzCore 0x35e7804c CA::Transaction::commit() + 312
33 QuartzCore 0x35e77eac CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 56
34 CoreFoundation 0x342976c8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 16
35 CoreFoundation 0x342959bc __CFRunLoopDoObservers + 272
36 CoreFoundation 0x34295d12 __CFRunLoopRun + 738
37 CoreFoundation 0x34208eb8 CFRunLoopRunSpecific + 352
38 CoreFoundation 0x34208d44 CFRunLoopRunInMode + 100
39 GraphicsServices 0x37dd02e6 GSEventRunModal + 70
40 UIKit 0x3611e2fc UIApplicationMain + 1116
41 myApp 0x000a4aca 0xa2000 + 10954
42 libdyld.dylib 0x3c3ddb1c start + 0
It says that thread 11 is crashed but this looks like main thread crash as I can see from last line. The thread 11 stack trace looks like this
Thread 11 Crashed:
0 libsystem_kernel.dylib 0x3c4a4d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3c3f2cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3c3f2a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3c3f28a0 start_wqthread + 4
Also the crash report points out that app was crashed while doing enumeration but I am not sure how it is related to UIView and UITableView objects as I see from the stack trace. Some more info, I have tableview which shows a list if data, this is fetched from server.
Can some help me in fixing this issue?
Thanks
#nkd, why not use a Crash Reporting Manager like , Crashlytics it does a two step symbolication process, once at the app, and at the server side, to give you exact location of your crash with all thread information, testing environment etc.
I have been using this extensively, helps a lot in resolving bugs.