Answered

Intercom display article crash on iOS

  • 20 May 2021
  • 1 reply
  • 91 views

2021-05-19 23:56:55.993902+0530 Runner[75803:621028] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff20421af6 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20177e78 objc_exception_throw + 48
2 CoreFoundation 0x00007fff2049e77f _CFThrowFormattedException + 194
3 CoreFoundation 0x00007fff204a9ec4 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:].cold.5 + 0
4 CoreFoundation 0x00007fff2048ccb7 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 235
5 CoreFoundation 0x00007fff20420773 +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49
6 Intercom 0x0000000106e34a59 shouldRenderOnNewLine + 595482
7 Intercom 0x0000000106e34809 shouldRenderOnNewLine + 594890
8 Intercom 0x0000000106dc9a46 shouldRenderOnNewLine + 157191
9 Intercom 0x0000000106dc94ea shouldRenderOnNewLine + 155819
10 UIKitCore 0x00007fff23f5e36e -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 88
11 UIKitCore 0x00007fff23f62cd7 -[UIViewController loadViewIfRequired] + 1084
12 Intercom 0x0000000106e1b8a7 shouldRenderOnNewLine + 492648
13 Intercom 0x0000000106e1b77a shouldRenderOnNewLine + 492347
14 UIKitCore 0x00007fff23f5e36e -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 88
15 UIKitCore 0x00007fff23f62cd7 -[UIViewController loadViewIfRequired] + 1084
16 UIKitCore 0x00007fff23e97f1a -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 162
17 UIKitCore 0x00007fff23e98204 -[UINavigationController _startTransition:fromViewController:toViewController:] + 154
18 UIKitCore 0x00007fff23e9927d -[UINavigationController _startDeferredTransitionIfNeeded:] + 851
19 UIKitCore 0x00007fff23e9a5e8 -[UINavigationController __viewWillLayoutSubviews] + 150
20 UIKitCore 0x00007fff23e7ad9e -[UILayoutContainerView layoutSubviews] + 217
21 UIKitCore 0x00007fff24bf8504 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2924
22 QuartzCore 0x00007fff27b1bc2b -[CALayer layoutSublayers] + 258
23 QuartzCore 0x00007fff27b2219d _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 575
24 UIKitCore 0x00007fff24be3abc -[UIView(Hierarchy) layoutBelowIfNeeded] + 573
25 UIKitCore 0x00007fff23e52285 -[_UISheetPresentationController _sheetLayoutInfoLayout:] + 48
26 UIKitCore 0x00007fff23e4e256 -[_UISheetLayoutInfo _layout] + 360
27 UIKitCore 0x00007fff23e5410f __54-[_UISheetPresentationController transitionWillBegin:]_block_invoke_2 + 52
28 UIKitCore 0x00007fff24beaf4d +[UIView(Animation) performWithoutAnimation:] + 84
29 UIKitCore 0x00007fff23e5404c __54-[_UISheetPresentationController transitionWillBegin:]_block_invoke.362 + 120
30 UIKitCore 0x00007fff23f921f6 -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:] + 294
31 UIKitCore 0x00007fff23f8e6b1 -[_UIViewControllerTransitionContext __runAlongsideAnimations] + 263
32 UIKitCore 0x00007fff24bead76 __63+[UIView(Animation) _setAlongsideAnimations:toRunByEndOfBlock:]_block_invoke + 16
33 UIKitCore 0x00007fff24bbc3ac -[UIViewAnimationState _runAlongsideAnimations] + 24
34 UIKitCore 0x00007fff24bbb1af -[UIViewAnimationState pop] + 37
35 UIKitCore 0x00007fff24bb85eb +[UIViewAnimationState popAnimationState] + 62
36 UIKitCore 0x00007fff24bec7f1 +[UIView _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 696
37 UIKitCore 0x00007fff24becc51 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:] + 87
38 UIKitCore 0x00007fff24bb3e0b __50-[UITransitionView _startTransition:withDuration:]_block_invoke.164 + 66
39 UIKitCore 0x00007fff24bed11e +[UIView(UIViewAnimationWithBlocks) conditionallyAnimate:withAnimation:layout:completion:] + 76
40 UIKitCore 0x00007fff24bb387e -[UITransitionView _startTransition:withDuration:] + 840
41 UIKitCore 0x00007fff24bb32db -[UITransitionView transition:fromView:toView:removeFromView:] + 2890
42 UIKitCore 0x00007fff23f8a051 -[UIViewControllerBuiltinTransitionViewAnimator animateTransition:] + 1200
43 UIKitCore 0x00007fff23f92dc5 ___UIViewControllerTransitioningRunCustomTransition_block_invoke_2 + 59
44 UIKitCore 0x00007fff240ce85b +[UIInputResponderController _pinInputViewsForInputResponderController:onBehalfOfResponder:duringBlock:] + 99
45 UIKitCore 0x00007fff23f92d54 ___UIViewControllerTransitioningRunCustomTransition_block_invoke.641 + 180
46 UIKitCore 0x00007fff24beac87 +[UIView(Animation) _setAlongsideAnimations:toRunByEndOfBlock:] + 175
47 UIKitCore 0x00007fff23f92bda _UIViewControllerTransitioningRunCustomTransition + 553
48 UIKitCore 0x00007fff23e3e6e1 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke.466 + 2511
49 UIKitCore 0x00007fff24b9107a -[_UIAfterCACommitBlock run] + 54
50 UIKitCore 0x00007fff246a5954 _runAfterCACommitDeferredBlocks + 333
51 UIKitCore 0x00007fff246959fc _cleanUpAfterCAFlushAndRunDeferredBlocks + 221
52 UIKitCore 0x00007fff246c72ac _afterCACommitHandler + 85
53 CoreFoundation 0x00007fff2038f1f8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
54 CoreFoundation 0x00007fff20389a77 __CFRunLoopDoObservers + 547
55 CoreFoundation 0x00007fff2038a01a __CFRunLoopRun + 1113
56 CoreFoundation 0x00007fff203896d6 CFRunLoopRunSpecific + 567
57 GraphicsServices 0x00007fff2c257db3 GSEventRunModal + 139
58 UIKitCore 0x00007fff24696cf7 -[UIApplication _run] + 912
59 UIKitCore 0x00007fff2469bba8 UIApplicationMain + 101
60 Runner 0x0000000106acd3eb main + 75
61 libdyld.dylib 0x00007fff2025a3e9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
terminating with uncaught exception of type NSException
CoreSimulator 732.18.6 - Device: iPhone 11 Pro Max (FCD33A06-2942-4D0A-823B-3DA28CB6BDAD) - Runtime: iOS 14.4 (18D46) - DeviceType: iPhone 11 Pro Max

using the below code

[Intercom presentArticle:articleId];

using the iOS Intercom SDK: 9.3.6

also tried the 9.3.5

icon

Best answer by User1185 5 April 2022, 10:57

View original

1 reply

This was resolved in iOS SDK version 10.0.2 https://github.com/intercom/intercom-ios/blob/master/CHANGELOG.md#1002/p>

Reply