iOS App crashes only on release mode with segmentation fault - ios

I have an old iOS app that's only crashing on Release Mode. It's using some objective-c extensions and I found that under one of the extension, if I removed a line that look something like
self.containerView.addSubview(self.pageViewController.view);
then the app doesn't crash. If this line is commented out, the app doesn't show the subview as expected so it seems like when the sub view loads the app crashes. Interestingly the same line is being executed multiple times in different part of the app to load similar kind of views and none of them crashes except only one page. I tried to replace the data that the view is loading using plist to see if it's a data issue since the same extension is loading other pages fine but no luck. I have also analyzed the crash logs and use exception break point, Zombie and Memory leaks using Instrument and nothing is giving any clue. The app crashes with a breakpoint on first line of AppDelegate function indicating it's crashing outside the main code.
Below is the crash log from the device
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
VM Region Info: 0 is not in any region. Bytes before following region: 4302422016
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 10071c000-100c04000 [ 5024K] r-x/r-x SM=COW ...art.app/Smart
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [1327]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x00000001990eb270 object_getMethodImplementation + 68
1 CoreFoundation 0x0000000184d8f608 _NSIsNSArray + 36
2 CoreFoundation 0x0000000184d8f608 _NSIsNSArray + 36
3 CoreFoundation 0x0000000184c779ac -[NSMutableArray addObjectsFromArray:] + 72
4 UIKitCore 0x0000000187a0fb28 -[UIView+ 16063272 (AdditionalLayoutSupport) _accumulateViewConstraintsIntoArray:] + 92
5 UIKitCore 0x0000000187a10b14 -[UIView+ 16067348 (AdditionalLayoutSupport) _switchToLayoutEngine:] + 108
6 UIKitCore 0x0000000187a10ea4 __57-[UIView+ 16068260 (AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 184
7 CoreAutoLayout 0x000000019936f934 -[NSISEngine withBehaviors:performModifications:] + 80
8 UIKitCore 0x0000000187a10db0 __57-[UIView+ 16068016 (AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 536
9 UIKitCore 0x0000000187a10b64 -[UIView+ 16067428 (AdditionalLayoutSupport) _switchToLayoutEngine:] + 188
10 UIKitCore 0x0000000187a10ea4 __57-[UIView+ 16068260 (AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 184
11 CoreAutoLayout 0x000000019936f934 -[NSISEngine withBehaviors:performModifications:] + 80
12 UIKitCore 0x0000000187a10db0 __57-[UIView+ 16068016 (AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 536
13 UIKitCore 0x0000000187a10b64 -[UIView+ 16067428 (AdditionalLayoutSupport) _switchToLayoutEngine:] + 188
14 UIKitCore 0x0000000187a0fd8c -[UIView+ 16063884 (AdditionalLayoutSupport) _initializeHostedLayoutEngine] + 208
15 UIKitCore 0x0000000187a04628 -[UIView+ 16016936 (UIConstraintBasedLayout) _layoutEngine_windowDidChange] + 124
16 UIKitCore 0x0000000187aed594 -[UIView+ 16971156 (Internal) _didMoveFromWindow:toWindow:] + 260
17 UIKitCore 0x0000000187aed730 -[UIView+ 16971568 (Internal) _didMoveFromWindow:toWindow:] + 672
18 UIKitCore 0x0000000187aed730 -[UIView+ 16971568 (Internal) _didMoveFromWindow:toWindow:] + 672
19 UIKitCore 0x0000000187a6dfe8 -[UIScrollView _didMoveFromWindow:toWindow:] + 92
20 UIKitCore 0x0000000187aed730 -[UIView+ 16971568 (Internal) _didMoveFromWindow:toWindow:] + 672
21 UIKitCore 0x0000000187aed730 -[UIView+ 16971568 (Internal) _didMoveFromWindow:toWindow:] + 672
22 UIKitCore 0x0000000187aed730 -[UIView+ 16971568 (Internal) _didMoveFromWindow:toWindow:] + 672
23 UIKitCore 0x0000000187aed730 -[UIView+ 16971568 (Internal) _didMoveFromWindow:toWindow:] + 672
24 UIKitCore 0x0000000187aed730 -[UIView+ 16971568 (Internal) _didMoveFromWindow:toWindow:] + 672
25 UIKitCore 0x0000000187ae1b78 __45-[UIView+ 16923512 (Hierarchy) _postMovedFromSuperview:]_block_invoke + 136
26 CoreAutoLayout 0x000000019936f934 -[NSISEngine withBehaviors:performModifications:] + 80
27 UIKitCore 0x0000000187ae1a80 -[UIView+ 16923264 (Hierarchy) _postMovedFromSuperview:] + 776
28 UIKitCore 0x0000000187af00d8 -[UIView+ 16982232 (Internal) _addSubview:positioned:relativeTo:] + 2132
29 UIKitCore 0x0000000187ab0ed0 -[UINavigationTransitionView transition:fromView:toView:] + 604
30 UIKitCore 0x0000000186e739f8 -[UINavigationController _startTransition:fromViewController:toViewController:] + 2764
31 UIKitCore 0x0000000186e73eb0 -[UINavigationController _startDeferredTransitionIfNeeded:] + 876
32 UIKitCore 0x0000000186e75230 -[UINavigationController __viewWillLayoutSubviews] + 164
33 UIKitCore 0x0000000186e580c8 -[UILayoutContainerView layoutSubviews] + 224
34 UIKitCore 0x0000000187af6448 -[UIView+ 17007688 (CALayerDelegate) layoutSublayersOfLayer:] + 2468
35 QuartzCore 0x0000000187ffbf2c -[CALayer layoutSublayers] + 288
36 QuartzCore 0x00000001880024d0 CA::Layer::layout_if_needed+ 1426640 (CA::Transaction*) + 520
37 QuartzCore 0x000000018800d820 CA::Layer::layout_and_display_if_needed+ 1472544 (CA::Transaction*) + 140
38 QuartzCore 0x0000000187f59160 CA::Context::commit_transaction+ 733536 (CA::Transaction*, double, double*) + 416
39 QuartzCore 0x0000000187f83324 CA::Transaction::commit+ 906020 () + 728
40 QuartzCore 0x0000000187f845d4 CA::Transaction::observer_callback+ 910804 (__CFRunLoopObserver*, unsigned long, void*) + 92
41 CoreFoundation 0x0000000184d0287c __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
42 CoreFoundation 0x0000000184cfcf50 __CFRunLoopDoObservers + 604
43 CoreFoundation 0x0000000184cfd498 __CFRunLoopRun + 960
44 CoreFoundation 0x0000000184cfcba0 CFRunLoopRunSpecific + 572
45 GraphicsServices 0x000000019ba3a598 GSEventRunModal + 160
46 UIKitCore 0x00000001875ec3d8 -[UIApplication _run] + 1052
47 UIKitCore 0x00000001875f1958 UIApplicationMain + 164
48 Smart 0x000000010073fb2c main + 146220 (AppDelegate.swift:85)
49 libdyld.dylib 0x00000001849db568 start + 4
Not sure where the segmentation fault is happening and where is the array. Will appreciate any suggestions or directions on this.

Related

-[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 1256

Over the last week, I've noticed a lot of -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 1256 crashes on iPhone 14 Pro devices running iOS 16.1.1.
The tableView where this problem originates has a constant number of rows and sections, so the datasource is never modified.
The crashes are also being reported to Crashlytics and Sentry, but never make it into the Apple Organizer.
Any idea what's going on? How can I resolve this issue?
Crashed: com.apple.main-thread
0 App 0x90e74 SettingsViewController.tableView(_:cellForRowAt:) + 4374285940 (SettingsViewController.swift:4374285940)
1 App 0x91210 #objc SettingsViewController.tableView(_:cellForRowAt:) + 4374286864 (<compiler-generated>:4374286864)
2 UIKitCore 0x14beec -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 1256
3 UIKitCore 0x11f844 -[UITableView _updateVisibleCellsForRanges:createIfNecessary:] + 596
4 UIKitCore 0x59350 -[UITableView _updateVisibleCellsNow:] + 1088
5 UIKitCore 0x58e44 -[UITableView layoutSubviews] + 148
6 UIKitCore 0x5020 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1980
7 QuartzCore 0x99ec CA::Layer::layout_if_needed(CA::Transaction*) + 500
8 UIKitCore 0xd21dc -[UIView(Hierarchy) layoutBelowIfNeeded] + 292
9 UIKitCore 0x3dc0c -[UINavigationController _layoutViewController:] + 816
10 UIKitCore 0x3d8d8 -[UINavigationController _layoutTopViewControllerLookForNested:] + 436
11 UIKitCore 0x1506dc -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 892
12 UIKitCore 0x150324 -[UINavigationTransitionView _notifyDelegateTransitionDidStopWithContext:] + 296
13 UIKitCore 0x14f8e4 -[UINavigationTransitionView _cleanupTransition] + 536
14 UIKitCore 0x14f634 +[UIView(UIViewAnimationWithBlocks) conditionallyAnimate:withAnimation:layout:completion:] + 136
15 UIKitCore 0x1a8c0c -[UINavigationTransitionView transition:fromView:toView:] + 1612
16 UIKitCore 0x1a8270 -[UINavigationController _startTransition:fromViewController:toViewController:] + 2104
17 UIKitCore 0x1a6fb4 -[UINavigationController _startDeferredTransitionIfNeeded:] + 608
18 UIKitCore 0x1a6604 -[UINavigationController __viewWillLayoutSubviews] + 96
19 UIKitCore 0x1a6568 -[UILayoutContainerView layoutSubviews] + 172
20 UIKitCore 0x5020 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1980
21 QuartzCore 0x99ec CA::Layer::layout_if_needed(CA::Transaction*) + 500
22 QuartzCore 0x1d0a0 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 148
23 QuartzCore 0x2e5b0 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 456
24 QuartzCore 0x635ec CA::Transaction::commit() + 652
25 QuartzCore 0x4c8cc CA::Transaction::flush_as_runloop_observer(bool) + 88
26 UIKitCore 0x504b44 _UIApplicationFlushCATransaction + 52
27 UIKitCore 0x652740 _UIUpdateSequenceRun + 84
28 UIKitCore 0xc99fd0 schedulerStepScheduledMainSection + 172
29 UIKitCore 0xc9919c runloopSourceCallback + 92
30 CoreFoundation 0xd5f54 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
31 CoreFoundation 0xe232c __CFRunLoopDoSource0 + 176
32 CoreFoundation 0x66210 __CFRunLoopDoSources0 + 244
33 CoreFoundation 0x7bba8 __CFRunLoopRun + 836
34 CoreFoundation 0x80ed4 CFRunLoopRunSpecific + 612
35 GraphicsServices 0x1368 GSEventRunModal + 164
36 UIKitCore 0x3a23d0 -[UIApplication _run] + 888
37 UIKitCore 0x3a2034 UIApplicationMain + 340
38 App 0x8020 main + 41 (AppDelegate.swift:41)
39 ??? 0x1aa7e0960 (Missing)
I discovered that there was a forced unwrapping deep inside my codebase. I would encourage you to search for any forced unwrapping.

'NSInvalidArgumentException', reason: 'index out of bounds for arranged subview: ...' with UIButtonBar involved

I hope someone is able to help me out here. For a weeks I am seeing this exception in my app:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'index out of bounds for arranged subview: index = 5 expected to be less than or equal to 4'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23e3cf0e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff50ba89b2 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23e3cd4c +[NSException raise:format:] + 188
3 UIKitCore 0x00007fff49095fa8 -[UIStackView insertArrangedSubview:atIndex:] + 161
4 UIKitCore 0x00007fff48282ac1 -[_UIButtonBar _layoutBar] + 3461
5 UIKitCore 0x00007fff4828637e -[_UIButtonBarStackView updateConstraints] + 48
6 UIKitCore 0x00007fff490b0afa -[UIView(AdditionalLayoutSupport) _sendUpdateConstraintsIfNecessaryForSecondPass:] + 489
7 UIKitCore 0x00007fff490b10c8 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 1187
8 UIKitCore 0x00007fff490b0f62 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 829
9 Foundation 0x00007fff25aa5778 -[NSISEngine withBehaviors:performModifications:] + 84
10 UIKitCore 0x00007fff490b12de -[UIView(AdditionalLayoutSupport) _recursiveUpdateConstraintsIfNeededCollectingViews:forSecondPass:] + 112
11 UIKitCore 0x00007fff490b0f62 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 829
12 Foundation 0x00007fff25aa5778 -[NSISEngine withBehaviors:performModifications:] + 84
13 UIKitCore 0x00007fff490b12de -[UIView(AdditionalLayoutSupport) _recursiveUpdateConstraintsIfNeededCollectingViews:forSecondPass:] + 112
14 UIKitCore 0x00007fff490b0f62 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 829
15 UIKitCore 0x00007fff490b0f62 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 829
16 UIKitCore 0x00007fff490b0f62 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 829
17 UIKitCore 0x00007fff490b0f62 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 829
18 UIKitCore 0x00007fff490b0f62 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 829
19 Foundation 0x00007fff25aa5778 -[NSISEngine withBehaviors:performModifications:] + 84
20 UIKitCore 0x00007fff490b12de -[UIView(AdditionalLayoutSupport) _recursiveUpdateConstraintsIfNeededCollectingViews:forSecondPass:] + 112
21 UIKitCore 0x00007fff490b0f62 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 829
22 UIKitCore 0x00007fff490b0f62 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 829
23 UIKitCore 0x00007fff490b0f62 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:] + 829
24 Foundation 0x00007fff25aa5778 -[NSISEngine withBehaviors:performModifications:] + 84
25 UIKitCore 0x00007fff490b186a __100-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:]_block_invoke + 85
26 UIKitCore 0x00007fff490b0077 -[UIView(AdditionalLayoutSupport) _withUnsatisfiableConstraintsLoggingSuspendedIfEngineDelegateExists:] + 104
27 UIKitCore 0x00007fff490b13c5 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:] + 154
28 UIKitCore 0x00007fff490a1390 -[UIWindow(UIConstraintBasedLayout) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:] + 92
29 UIKitCore 0x00007fff490b22e4 -[UIView(AdditionalLayoutSupport) _updateConstraintsAtEngineLevelIfNeededWithViewForVariableChangeNotifications:] + 393
30 UIKitCore 0x00007fff4917f21b -[UIView(Hierarchy) _updateConstraintsAsNecessaryAndApplyLayoutFromEngine] + 272
31 UIKitCore 0x00007fff49193678 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2478
32 QuartzCore 0x00007fff2b4c6398 -[CALayer layoutSublayers] + 255
33 QuartzCore 0x00007fff2b4cc523 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 523
34 QuartzCore 0x00007fff2b4d7bba _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 80
35 QuartzCore 0x00007fff2b420c04 _ZN2CA7Context18commit_transactionEPNS_11TransactionEd + 324
36 QuartzCore 0x00007fff2b4545ef _ZN2CA11Transaction6commitEv + 649
37 QuartzCore 0x00007fff2b454f81 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 79
38 CoreFoundation 0x00007fff23da0127 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
39 CoreFoundation 0x00007fff23d9abde __CFRunLoopDoObservers + 430
40 CoreFoundation 0x00007fff23d9b12a __CFRunLoopRun + 1226
41 CoreFoundation 0x00007fff23d9a944 CFRunLoopRunSpecific + 404
42 GraphicsServices 0x00007fff38ba6c1a GSEventRunModal + 139
43 UIKitCore 0x00007fff48c8b9ec UIApplicationMain + 1605
44 MyApp 0x00000001012dd63b main + 75
45 libdyld.dylib 0x00007fff51a231fd start + 1
46 ??? 0x0000000000000001 0x0 + 1
)
I can not find out what the root cause it. Because _UIButtonBarStackView is mentioned I assume that it has something to do with a UINavigationBar UIBarButtons. It seems to happen when I dismiss a modally presented UINavigationController, but I am not sure.
It also looks like it started to happen with iOS 13.4.1, because I can't find any crash report with any older version.
Anyone might know what's going on here?
Found out the cause: I was adding the same UIBarButtonItem again to navigationItem.rightBarButtonItems. Apple seems to raise exceptions about that since iOS 13.4.1(-ish).

ScrollViewDidScroll EXC_BREAKPOINT crash only on iOS 13

I seem to be getting this error after my new release and its only happening on iOS 13 with most cases of upto 83% of the crash happening on iOS 13.3.1. I am not sure how to fix this error and I have been going through the code and cannot seem to figure out the change in iOS 13 that causes scrollViewDidScroll delegate method to crash the app.
Any help is greatly appreciated. It is also important to note that I haven't been able to reproduce this error, it only happens to users in production.
Crashed: com.apple.main-thread
EXC_BREAKPOINT 0x0000000104620bb0
Crashed: com.apple.main-thread
0 Motoz-AppStore 0x104620bb0 ProfileBrowserViewController.scrollViewDidScroll(_:) + 4299967408 (<compiler-generated>:4299967408)
1 Motoz-AppStore 0x104620d54 #objc ProfileBrowserViewController.scrollViewDidScroll(_:) + 4299967828 (<compiler-generated>:4299967828)
2 UIKitCore 0x1be3c6a24 -[UIScrollView _notifyDidScroll] + 76
3 UIKitCore 0x1be3b0c34 -[UIScrollView setContentOffset:] + 1016
4 UIKitCore 0x1bd8153d4 -[UICollectionView setContentOffset:] + 48
5 UIKitCore 0x1be3cdd28 -[UIScrollView _adjustContentOffsetIfNecessary] + 60
6 UIKitCore 0x1be3af1cc -[UIScrollView setFrame:] + 484
7 UIKitCore 0x1bd802e7c -[UICollectionView setFrame:] + 460
8 UIKitCore 0x1be41b878 -[UIView(Geometry) _applyAutoresizingMaskWithOldSuperviewSize:] + 576
9 UIKitCore 0x1be41c510 -[UIView(Geometry) _resizeWithOldSuperviewSize:] + 236
10 UIKitCore 0x1be355b84 -[UIScrollView(_UIOldConstraintBasedLayoutSupport) _resizeWithOldSuperviewSize:] + 52
11 CoreFoundation 0x1b9eed95c __NSARRAY_IS_CALLING_OUT_TO_A_BLOCK__ + 16
12 CoreFoundation 0x1b9df0fb0 -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 416
13 UIKitCore 0x1be41b5e4 -[UIView(Geometry) resizeSubviewsWithOldSize:] + 156
14 UIKitCore 0x1be419938 -[UIView(Geometry) setFrame:] + 700
15 UIKitCore 0x1bd8e519c -[UINavigationController _startCustomTransition:] + 1212
16 UIKitCore 0x1bd8f9168 -[UINavigationController _startDeferredTransitionIfNeeded:] + 680
17 UIKitCore 0x1bd8fa55c -[UINavigationController __viewWillLayoutSubviews] + 164
18 UIKitCore 0x1bd8dd9e0 -[UILayoutContainerView layoutSubviews] + 224
19 UIKitCore 0x1be43617c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2140
20 QuartzCore 0x1c099e2c0 -[CALayer layoutSublayers] + 284
21 QuartzCore 0x1c09a443c CA::Layer::layout_if_needed(CA::Transaction*) + 480
22 QuartzCore 0x1c09af140 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 136
23 QuartzCore 0x1c08f7884 CA::Context::commit_transaction(CA::Transaction*, double) + 304
24 QuartzCore 0x1c0921574 CA::Transaction::commit() + 676
25 QuartzCore 0x1c0921f68 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 92
26 CoreFoundation 0x1b9e97e68 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
27 CoreFoundation 0x1b9e92d54 __CFRunLoopDoObservers + 416
28 CoreFoundation 0x1b9e93320 __CFRunLoopRun + 1308
29 CoreFoundation 0x1b9e92adc CFRunLoopRunSpecific + 464
30 GraphicsServices 0x1c3e33328 GSEventRunModal + 104
31 UIKitCore 0x1bdfa063c UIApplicationMain + 1936
32 Motoz-AppStore 0x1043fed70 main + 17 (TeraHeaderView.swift:17)
33 libdyld.dylib 0x1b9d1c360 start + 4
I can not say a concrete answer unless you show a piece of code but there is a possibility that error might occur because of delegation structure. Just in case check your delegation of scrollviews(tableviews, collection views, embedded web-views as well). Please check the link link for more info.

Firebase Crashlytics not showing up line of crash

I am using crashlytics in my app since it was part of Fabric. I would see the crash line and Class name. But now in Firebase, I don't see the line number causing the crash.
Here is the crash log:
Crashed: com.apple.main-thread
0 Haraj 0x100c1eb00 specialized GQLHelper.submitPost(post:onFinish:) + 4313017088 (<compiler-generated>:4313017088)
1 Haraj 0x100bb900c HJAdDetailsViewController.submitPost() + 4312600588 (<compiler-generated>:4312600588)
2 Haraj 0x100bbcc94 partial apply for closure #1 in HJAdDetailsViewController.setupPopOver() + 4312616084 (<compiler-generated>:4312616084)
3 Haraj 0x100c303f8 #objc HJAgreementsView.acceptButtonPressed(_:) + 4313089016
4 UIKitCore 0x1bef53a44 -[UIApplication sendAction:to:from:forEvent:] + 96
5 UIKitCore 0x1be9976d0 -[UIControl sendAction:to:forEvent:] + 240
6 UIKitCore 0x1be997a34 -[UIControl _sendActionsForEvents:withEvent:] + 408
7 UIKitCore 0x1be996a50 -[UIControl touchesEnded:withEvent:] + 520
8 UIKitCore 0x1bef8cd68 -[UIWindow _sendTouchesForEvent:] + 2324
9 UIKitCore 0x1bef8e0a8 -[UIWindow sendEvent:] + 3352
10 UIKitCore 0x1bef6aae8 -[UIApplication sendEvent:] + 336
11 UIKitCore 0x1befe223c __dispatchPreprocessedEventFromEventQueue + 5880
12 UIKitCore 0x1befe4798 __handleEventQueueInternal + 4924
13 UIKitCore 0x1befe4ae4 __handleEventQueueInternal + 5768
14 UIKitCore 0x1befdd60c __handleHIDEventFetcherDrain + 108
15 CoreFoundation 0x1baec27e0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
16 CoreFoundation 0x1baec2738 __CFRunLoopDoSource0 + 80
17 CoreFoundation 0x1baec1ed0 __CFRunLoopDoSources0 + 180
18 CoreFoundation 0x1baebd01c __CFRunLoopRun + 1080
19 CoreFoundation 0x1baebc8bc CFRunLoopRunSpecific + 464
20 GraphicsServices 0x1c4d28328 GSEventRunModal + 104
21 UIKitCore 0x1bef526d4 UIApplicationMain + 1936
22 Haraj 0x100a54ad8 main + 15 (main.m:15)
23 libdyld.dylib 0x1bad47460 start + 4
In here the crash seems to be coming from GQLHelper.submitPost(post:onFinish:) but the line number is invalid.
Any help? Has something got changed while moving from Fabric to Firebase?
In firebase, I don't see missing dSYMs for this particular release version.

my app crash in uikit ,only happen on IPhone X and above exception name NSInternalInconsistencyException

Failed to load bounding path bitmap data from the asset manager for asset name: BoundingPathBitmap-1125x2436-375x812-3.00x
The crash happen on the viewcontroller contain UIScrollView When open it,and only happens with the iPhone X and above
We develop app UI use storyboard
0 CoreFoundation ___exceptionPreprocess + 228
1 libobjc.A.dylib objc_exception_throw + 56
2 CoreFoundation +[_CFXNotificationTokenRegistration keyCallbacks]
3 Foundation -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 112
4 UIKitCore -[_UIScreenBezierBoundingPathUtilities _loadBitmapForScreen:type:] + 1124
5 UIKitCore -[_UIScreenBezierBoundingPathUtilities initWithScreen:] + 144
6 UIKitCore +[_UIScreenBoundingPathUtilities boundingPathUtilitiesForScreen:] + 108
7 UIKitCore -[UIScreen _boundingPathUtilities] + 56
8 UIKitCore -[UIWindow _boundingPath] + 168
9 UIKitCore -[UIView(UIViewBoundingPathSupportInternal) _effectiveBoundingPathAndBoundingPathView:] + 256
10 UIKitCore -[UIView(UIViewBoundingPathSupport) _inscribedRectInBoundingPathByInsettingRect:onEdges:withOptions:] + 88
11 UIKitCore -[UIScrollView(UIScrollViewInternal) _baseInsetsForTrailingEdgeAccessoryWithBoundingPathEdgesToUse:safeAreaInsets:bounds:scale:accessoryWidth:additionalInsetFromEdge:] + 180
12 UIKitCore -[UIScrollView(UIScrollViewInternal) _baseInsetsForAccessoryOnEdge:hasCustomClientInsets:accessorySize:additionalInsetFromEdge:] + 1388
13 UIKitCore -[UIScrollView(UIScrollViewInternal) _effectiveVerticalScrollIndicatorInsets] + 152
14 UIKitCore -[UIScrollView _layoutVerticalScrollIndicatorWithBounds:effectiveInset:contentOffset:fraction:additionalInset:cornerAdjust:showing:recalcSize:] + 252
15 UIKitCore -[UIScrollView _adjustScrollerIndicators:alwaysShowingThem:] + 1040
16 UIKitCore -[UIScrollView _updateForChangedScrollIndicatorRelatedInsets] + 132
17 UIKitCore __UIScrollViewAdjustForOverlayInsetsChangeIfNecessary + 512
18 UIKitCore -[UIScrollView(UIScrollViewInternal) setSafeAreaInsets:] + 312
19 UIKitCore -[UIView(Geometry) _applyISEngineLayoutValuesToBoundsOnly:] + 1288
20 UIKitCore -[UIView(Geometry) _resizeWithOldSuperviewSize:] + 124
21 UIKitCore -[UIScrollView(_UIOldConstraintBasedLayoutSupport) _resizeWithOldSuperviewSize:] + 52
22 CoreFoundation -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 464
23 UIKitCore -[UIView(Geometry) resizeSubviewsWithOldSize:] + 156
24 UIKitCore -[UIView(AdditionalLayoutSupport) _is_layout] + 152
25 UIKitCore -[UIView(Hierarchy) _updateConstraintsAsNecessaryAndApplyLayoutFromEngine] + 988
26 UIKitCore -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1380
27 QuartzCore 0x00000001ca79e000 + 1309564
28 QuartzCore 0x00000001ca79e000 + 1329972
29 QuartzCore 0x00000001ca79e000 + 669080
30 QuartzCore 0x00000001ca79e000 + 859848
31 QuartzCore 0x00000001ca79e000 + 863536
32 CoreFoundation ___CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
33 CoreFoundation ___CFRunLoopDoObservers + 412
34 CoreFoundation ___CFRunLoopRun + 1264
35 CoreFoundation CFRunLoopRunSpecific + 436
36 GraphicsServices GSEventRunModal + 100
37 UIKitCore UIApplicationMain + 212
38 live main (main.mm:23)
39 libdyld.dylib 0x00000001c5d2a000 + 2996
hope someone could give me some advice, thanks
The same crash also happened in my app.
When I turned off the 'Show Horizontal Indicator' and 'Show Vertical Indicator' on the storyboard, the crash no longer occurred.
It just happened with my app .. Fixed ,
Delete the app and restart Simulator ..
^ command + shift + K to clean build folder

Resources