I have my app in alpha test, and using fabric to capture the crash logs. I had encountered a crash, and I have the below trace but have no idea what is going on. I tried to reproduce it with Xcode, but hardly can reproduce.
Could any one help on this? or share some ideas?
Thread : Crashed: com.apple.main-thread
0 libsystem_platform.dylib 0x0000000197c7d8d4 OSAtomicCompareAndSwap32Barrier + 12
1 libobjc.A.dylib 0x0000000197468120 realizeClass(objc_class*) + 100
2 libobjc.A.dylib 0x000000019746c930 lookUpImpOrForward + 224
3 libobjc.A.dylib 0x0000000197477db8 _objc_msgSend_uncached_impcache + 56
4 UIKit 0x000000018b66bef4 -[UINavigationController _startCustomTransition:] + 972
5 UIKit 0x000000018b57d630 -[UINavigationController _startDeferredTransitionIfNeeded:] + 468
6 UIKit 0x000000018b57d3fc -[UINavigationController __viewWillLayoutSubviews] + 56
7 UIKit 0x000000018b57d37c -[UILayoutContainerView layoutSubviews] + 200
8 UIKit 0x000000018b4c5d2c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 572
9 QuartzCore 0x000000018ae1d994 -[CALayer layoutSublayers] + 168
10 QuartzCore 0x000000018ae18564 CA::Layer::layout_if_needed(CA::Transaction*) + 320
11 QuartzCore 0x000000018ae18408 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32
12 QuartzCore 0x000000018ae17c08 CA::Context::commit_transaction(CA::Transaction*) + 276
13 QuartzCore 0x000000018ae1798c CA::Transaction::commit() + 436
14 UIKit 0x000000018b4c7c48 _UIApplicationHandleEventQueue + 1700
15 CoreFoundation 0x0000000186cd29ec __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
16 CoreFoundation 0x0000000186cd1c90 __CFRunLoopDoSources0 + 264
17 CoreFoundation 0x0000000186ccfd40 __CFRunLoopRun + 712
18 CoreFoundation 0x0000000186bfd0a4 CFRunLoopRunSpecific + 396
19 GraphicsServices 0x000000018fd975a4 GSEventRunModal + 168
20 UIKit 0x000000018b52eaa4 UIApplicationMain + 1488
21 MCompass 0x00000001001631c8 main (main.m:16)
22 libdyld.dylib 0x0000000197ad2a08 start + 4
It is hard to tell without seeing some more details, but maybe this can help: http://aplus.rs/2013/beware-a-crashing-bug-lurks-with-uinavigationcontroller-transitions/
Related
I am getting below crash logs across all iOS versions. However, I am not able to figure out the exact cause of this. Is it something to do with accessing a de-allocated object? If yes, is there a way to replicate the scenario since I am not able to.
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x180771b90 objc_msgSend + 16
1 CoreGraphics 0x182574568 CGColorRetain + 28
2 CoreGraphics 0x182609088 CGGStateSetStrokeColor + 64
3 UIKit 0x186893698 -[UIKBHandwritingStrokeView drawRect:] + 692
4 UIKit 0x1862e2678 -[UIView(CALayerDelegate) drawLayer:inContext:] + 368
5 QuartzCore 0x183c16228 -[CALayer drawInContext:] + 260
6 QuartzCore 0x183c008ac CABackingStoreUpdate_ + 2432
7 QuartzCore 0x183d18360 ___ZN2CA5Layer8display_Ev_block_invoke + 52
8 QuartzCore 0x183bffa88 CA::Layer::display_() + 1368
9 QuartzCore 0x183be17a8 CA::Layer::display_if_needed(CA::Transaction*) + 228
10 QuartzCore 0x183be1494 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 44
11 QuartzCore 0x183be0ab8 CA::Context::commit_transaction(CA::Transaction*) + 252
12 QuartzCore 0x183be0818 CA::Transaction::commit() + 500
13 UIKit 0x186256ff4 _UIApplicationHandleEventQueue + 4980
14 CoreFoundation 0x1810b109c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
15 CoreFoundation 0x1810b0b30 __CFRunLoopDoSources0 + 540
16 CoreFoundation 0x1810ae830 __CFRunLoopRun + 724
17 CoreFoundation 0x180fd8c50 CFRunLoopRunSpecific + 384
18 GraphicsServices 0x1828c0088 GSEventRunModal + 180
19 UIKit 0x1862c2088 UIApplicationMain + 204
20 Smartphone 0x1000e0b78 main (main.m:13)
21 libdispatch.dylib 0x180b768b8 (Missing)
Also I am not able to figure out where exactly the crash is happening. Since I am getting these as part of release build.
My app is crash on iPad launch, but works normally on iPhone.
I already tried to add a Symbolic breakpoint to -[UIView(Hierarchy) setNeedsLayout] but I didn't found what is causing this.
Stack trace:
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x180354bec lookUpImpOrForward + 136
1 libobjc.A.dylib 0x18035f258 _objc_msgSend_uncached + 56
2 UIKit 0x1877679c4 -[UIView(Hierarchy) setNeedsLayout] + 196
3 UIKit 0x187a420ac __UIViewNoteTraitsDidChangeRecursively + 292
4 UIKit 0x187a421d0 __UIViewNoteTraitsDidChangeRecursively + 584
5 UIKit 0x187a421d0 __UIViewNoteTraitsDidChangeRecursively + 584
6 UIKit 0x187a421d0 __UIViewNoteTraitsDidChangeRecursively + 584
7 UIKit 0x187a421d0 __UIViewNoteTraitsDidChangeRecursively + 584
8 UIKit 0x187a421d0 __UIViewNoteTraitsDidChangeRecursively + 584
9 UIKit 0x187a421d0 __UIViewNoteTraitsDidChangeRecursively + 584
10 UIKit 0x187a421d0 __UIViewNoteTraitsDidChangeRecursively + 584
11 UIKit 0x187ab84a0 -[UIViewController _updateTraitsIfNecessary] + 312
12 UIKit 0x1877533e0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 832
13 QuartzCore 0x184c1b40c -[CALayer layoutSublayers] + 148
14 QuartzCore 0x184c100e8 CA::Layer::layout_if_needed(CA::Transaction*) + 292
15 QuartzCore 0x184c0ffa8 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32
16 QuartzCore 0x184b8cc64 CA::Context::commit_transaction(CA::Transaction*) + 252
17 QuartzCore 0x184bb40d0 CA::Transaction::commit() + 512
18 QuartzCore 0x184bb4af0 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 120
19 CoreFoundation 0x1818c17dc __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
20 CoreFoundation 0x1818bf40c __CFRunLoopDoObservers + 372
21 CoreFoundation 0x1818bf89c __CFRunLoopRun + 1024
22 CoreFoundation 0x1817ee048 CFRunLoopRunSpecific + 444
23 GraphicsServices 0x183271198 GSEventRunModal + 180
24 UIKit 0x1877c1628 -[UIApplication _run] + 684
25 UIKit 0x1877bc360 UIApplicationMain + 208
26 MyApp 0x10006c730 main (AppDelegate.swift:34)
27 libdispatch.dylib 0x1807d05b8 (Missing)
On Crashlytics I have different titles for the same crash, such as:
-[NSConcreteMapTable setNeedsLayout]: unrecognized selector sent to instance 0x17fbdca0
-[_NSConcreteObservation setNeedsLayout]: unrecognized selector sent to instance 0x170235da0
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000e9c2cbeb8
Is there another way to debug and figure out what is happening?
I have been getting a rare crash in my app. I am able to track it via hockey app tool integrated with the app. But, unfortunately i am not able to find out any clue about it so as to resolve it.
The crash is happening in the main method of my application in thread 0. I would like to post the stack trace for better analysis. Here it is.
Thread 0 Crashed:
0 libobjc.A.dylib 0x34ed7f46 _objc_msgSend + 6
1 UIKit 0x2ac884cf -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 472
2 UIKit 0x2ac88593 -[UITableView _createPreparedCellForGlobalRow:willDisplay:] + 52
3 UIKit 0x2ac7dd21 -[UITableView _updateVisibleCellsNow:isRecursive:] + 2266
4 UIKit 0x2aa962df -[UITableView layoutSubviews] + 184
5 UIKit 0x2a9c0677 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 512
6 QuartzCore 0x2a3e8ccd -[CALayer layoutSublayers] + 134
7 QuartzCore 0x2a3e46b5 CA::Layer::layout_if_needed(CA::Transaction*) + 358
8 QuartzCore 0x2a3e453d CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 14
9 QuartzCore 0x2a3e3f21 CA::Context::commit_transaction(CA::Transaction*) + 222
10 QuartzCore 0x2a3e3d25 CA::Transaction::commit() + 322
11 UIKit 0x2ac0bc43 _UIWindowUpdateVisibleContextOrder + 208
12 UIKit 0x2ac0bad5 +[UIWindow _prepareWindowsPassingTestForAppResume:] + 14
13 UIKit 0x2ac2c8f3 -[UIApplication _updateSnapshotAndStateRestorationArchiveForBackgroundEvent:saveState:exitIfCouldNotRestoreState:] + 200
14 UIKit 0x2ac2bda3 __80-[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:]_block_invoke_2 + 112
15 libdispatch.dylib 0x3542b8cb _dispatch_call_block_and_release + 8
16 libdispatch.dylib 0x3542b8b7 _dispatch_client_callout + 20
17 libdispatch.dylib 0x3542f0bf __dispatch_main_queue_callback_4CF + 723
18 CoreFoundation 0x274eabe9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 6
19 CoreFoundation 0x274e92e9 __CFRunLoopRun + 1510
20 CoreFoundation 0x27437621 _CFRunLoopRunSpecific + 477
21 CoreFoundation 0x27437433 _CFRunLoopRunInMode + 107
22 GraphicsServices 0x2e7bd0a9 _GSEventRunModal + 137
23 UIKit 0x2aa22359 _UIApplicationMain + 1441
The crash being in the main thread, i don't get any clue of where and how to start tracing this crash.
Any help would be highly appreciated.
I got crash issue from Crashlytics.
UIKit
-[UIView(Internal) _addSubview:positioned:relativeTo:]
Fatal Exception: NSInvalidArgumentException NSInvalidArgumentException
Can't add self as subview
Thread : Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x2e9a0f4b __exceptionPreprocess + 130
1 libobjc.A.dylib 0x391376af objc_exception_throw + 38
2 CoreFoundation 0x2e9a0e8d -[NSException initWithCoder:]
3 UIKit 0x3111f48f -[UIView(Internal) _addSubview:positioned:relativeTo:] + 110
4 UIKit 0x3111f417 -[UIView(Hierarchy) addSubview:] + 30
5 UIKit 0x312e7c2f __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke + 1402
6 UIKit 0x311256e5 +[UIView(Animation) performWithoutAnimation:] + 72
7 UIKit 0x312e7479 -[_UINavigationParallaxTransition animateTransition:] + 728
8 UIKit 0x312a4ba7 -[UINavigationController _startCustomTransition:] + 2614
9 UIKit 0x311c2273 -[UINavigationController _startDeferredTransitionIfNeeded:] + 418
10 UIKit 0x311c207d -[UINavigationController __viewWillLayoutSubviews] + 44
11 UIKit 0x311c2015 -[UILayoutContainerView layoutSubviews] + 184
12 UIKit 0x31113da3 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 346
13 QuartzCore 0x30d9ac6b -[CALayer layoutSublayers] + 142
14 QuartzCore 0x30d9647b CA::Layer::layout_if_needed(CA::Transaction*) + 350
15 QuartzCore 0x30d9630d CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 16
16 QuartzCore 0x30d95d1f CA::Context::commit_transaction(CA::Transaction*) + 230
17 QuartzCore 0x30d95b2f CA::Transaction::commit() + 314
18 QuartzCore 0x30d8f85d CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 56
19 CoreFoundation 0x2e96c1cd
20 CoreFoundation 0x2e969b71 __CFRunLoopDoObservers + 284
21 CoreFoundation 0x2e969eb3 __CFRunLoopRun + 730
22 CoreFoundation 0x2e8d4c27 CFRunLoopRunSpecific + 522
23 CoreFoundation 0x2e8d4a0b CFRunLoopRunInMode + 106
24 GraphicsServices 0x335c8283 GSEventRunModal + 138
25 UIKit 0x31178049 UIApplicationMain + 1136
26 Tapastic 0x000764ef main (main.m:16)
27 Tapastic 0x00075bf0 start
I cannot find where this crash happened in codes. So how can I find where this crash is and fix it? Please let me know. Thanks in advance.
Thread 0: Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x3a6285b0 objc_msgSend + 15
1 UIKit 0x348285f5 -[UINavigationController _startTransition:fromViewController:toViewController:] + 92
2 UIKit 0x348284c1 -[UINavigationController _startDeferredTransitionIfNeeded:] + 324
3 UIKit 0x347f94e9 -[UILayoutContainerView layoutSubviews] + 180
4 UIKit 0x347b8803 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 258
5 QuartzCore 0x34562d8b -[CALayer layoutSublayers] + 214
6 QuartzCore 0x34562929 CA::Layer::layout_if_needed(CA::Transaction*) + 460
7 QuartzCore 0x3456385d CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 16
8 QuartzCore 0x34563243 CA::Context::commit_transaction(CA::Transaction*) + 238
9 QuartzCore 0x34563051 CA::Transaction::commit() + 316
10 UIKit 0x34988369 -[UIApplication _sendOrderedOutContextsAndInvalidate:] + 112
11 UIKit 0x3483863f orderOutContextObserverCallout + 34
12 CoreFoundation 0x329826cd __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20
13 CoreFoundation 0x329809c1 __CFRunLoopDoObservers + 276
14 CoreFoundation 0x32980c91 __CFRunLoopRun + 608
15 CoreFoundation 0x328f3ebd CFRunLoopRunSpecific + 356
16 CoreFoundation 0x328f3d49 CFRunLoopRunInMode + 104
17 GraphicsServices 0x364a62eb GSEventRunModal + 74
18 UIKit 0x34809301 UIApplicationMain + 1120
19 test 0x000f610f main (main.m:16)
I get this error in my crashlytics but not able to reproduce this error. Can any one help me to solve this how can i get rid of this crash.