I have only a little knowledge on how to read the crash reason in device logs. Please give me some clue on where should I start to look at in my app. It crashed the minute I clicked on a button when I open the app. I only got this error when I unplugged the device. I cannot reproduce the device if I try to build with my phone via Xcode.
Thank you.
OS Version: iOS 7.0.5 (11B601)
Report Version: 104
Exception Type: EXC_CRASH (SIGSEGV)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 1
Thread 0:
0 libobjc.A.dylib 0x3a45bb66 objc_msgSend + 6
1 CoreFoundation 0x3003ec4a -[__NSDictionaryM setObject:forKey:] + 178
2 UIKit 0x32b157a4 -[NSString(UIStringDrawingLegacy) _legacy_drawInRect:withFont:lineBreakMode:alignment:lineSpacing:includeEmoji:truncationRect:] + 456
3 UIKit 0x32b155c8 -[NSString(UIStringDrawingLegacy) _legacy_drawInRect:withFont:lineBreakMode:alignment:lineSpacing:includeEmoji:] + 72
4 UIKit 0x32b15512 -[NSString(UIStringDrawingLegacy) _legacy_drawInRect:withFont:lineBreakMode:alignment:] + 70
5 UIKit 0x32b14f9e -[NSString(UIStringDrawing) drawInRect:withFont:lineBreakMode:alignment:] + 54
6 ST iPhone Standalone AppStore 0x001fc4a4 -[ArticleTableViewCell_CG drawContentView:] (ArticleTableViewCell_CG.m:178)
7 ST iPhone Standalone AppStore 0x001f9a7c -[ABTableViewCellView drawRect:] (ABTableViewCell.m:43)
8 UIKit 0x32907dd4 -[UIView(CALayerDelegate) drawLayer:inContext:] + 368
9 QuartzCore 0x3253da74 -[CALayer drawInContext:] + 96
10 QuartzCore 0x32527240 CABackingStoreUpdate_ + 1856
11 QuartzCore 0x326012e8 ___ZN2CA5Layer8display_Ev_block_invoke + 48
12 QuartzCore 0x32526af0 x_blame_allocations + 80
13 QuartzCore 0x325267a2 CA::Layer::display_() + 1114
14 QuartzCore 0x3250a364 CA::Layer::display_if_needed(CA::Transaction*) + 204
15 QuartzCore 0x32509ffc CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 20
16 QuartzCore 0x32509a08 CA::Context::commit_transaction(CA::Transaction*) + 224
17 QuartzCore 0x3250981a CA::Transaction::commit() + 310
18 QuartzCore 0x32503548 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 52
19 CoreFoundation 0x300cef66 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
20 CoreFoundation 0x300cc8f2 __CFRunLoopDoObservers + 282
21 CoreFoundation 0x300ccc3e __CFRunLoopRun + 734
22 CoreFoundation 0x3003746c CFRunLoopRunSpecific + 520
23 CoreFoundation 0x3003724e CFRunLoopRunInMode + 102
24 GraphicsServices 0x34d712e6 GSEventRunModal + 134
25 UIKit 0x328ec840 UIApplicationMain + 1132
26 ST iPhone Standalone AppStore 0x000597cc main (main.m:14)
27 ST iPhone Standalone AppStore 0x00059764 start + 36
Thread 1 Crashed:
0 libsystem_kernel.dylib 0x3a9fd838 kevent64 + 24
1 libdispatch.dylib 0x3a94c0d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x3a94661e _dispatch_mgr_thread + 34
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 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.
My app started crashing after long time in background right when I launch it again.
The problem of course is when it wasn't killed - only when it was in the background.
the log is:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x32858a1c __pthread_kill + 8
1 libsystem_c.dylib 0x337013b4 pthread_kill + 52
2 libsystem_c.dylib 0x336f9bf8 abort + 72
3 libstdc++.6.dylib 0x30504a64 __gnu_cxx::__verbose_terminate_handler() + 376
4 libobjc.A.dylib 0x3068f06c _objc_terminate + 104
5 libstdc++.6.dylib 0x30502e36 __cxxabiv1::__terminate(void (*)()) + 46
6 libstdc++.6.dylib 0x30502e8a std::terminate() + 10
7 libstdc++.6.dylib 0x30502f5a __cxa_throw + 78
8 libobjc.A.dylib 0x3068dc84 objc_exception_throw + 64
9 CoreFoundation 0x3351048a +[NSException raise:format:arguments:] + 62
10 Foundation 0x326ea56c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 56
11 UIKit 0x31bc3a82 -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 666
12 UIKit 0x31bc3764 -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:] + 28
13 UIKit 0x31bbc0c6 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 930
14 UIKit 0x31bbb276 -[UITableView layoutSubviews] + 134
15 UIKit 0x31b675f4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 20
16 CoreFoundation 0x3347defc -[NSObject(NSObject) performSelector:withObject:] + 16
17 QuartzCore 0x33351bae -[CALayer layoutSublayers] + 114
18 QuartzCore 0x33351966 CALayerLayoutIfNeeded + 178
19 QuartzCore 0x333571be CA::Context::commit_transaction(CA::Transaction*) + 206
20 QuartzCore 0x33356fd0 CA::Transaction::commit() + 184
21 QuartzCore 0x3335004e CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 50
22 CoreFoundation 0x334e7a2e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 10
23 CoreFoundation 0x334e945e __CFRunLoopDoObservers + 406
24 CoreFoundation 0x334ea754 __CFRunLoopRun + 848
25 CoreFoundation 0x3347aebc CFRunLoopRunSpecific + 224
26 CoreFoundation 0x3347adc4 CFRunLoopRunInMode + 52
27 GraphicsServices 0x311a5418 GSEventRunModal + 108
28 GraphicsServices 0x311a54c4 GSEventRun + 56
29 UIKit 0x31b90d62 -[UIApplication _run] + 398
30 UIKit 0x31b8e800 UIApplicationMain + 664
31 Vento 0x00002c64 main (main.m:14)
32 Vento 0x00002c0c start + 32
Any idea where to start digging?
Thank you!
Look at the log to see the exception detail.
Run the static code analyzer over your code. It may find the bug for you.