Answered

NSInternalInconsistencyException

  • 24 October 2023
  • 1 reply
  • 363 views

  • New Participant
  • 0 replies

We are currently experiencing crashes when opening old messages on Intercom - iOS SDK.  Here is the error message: 

 

*** Assertion failure in -[IntercomSDKPrivate.TouchTransparentCollectionView _Bug_Detected_In_Client_Of_UICollectionView_Invalid_Batch_Updates:], UICollectionView.m:10,929

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid batch updates detected: the number of sections and/or items returned by the data source before and after performing the batch updates are inconsistent with the updates.

Data source before updates = { 1 section with item counts: [2] }

Data source after updates = { 1 section with item counts: [2] }

Updates = [

Insert item (0 - 0)

]

Collection view: <IntercomSDKPrivate.TouchTransparentCollectionView: 0x7fe6630e8c00; baseClass = UICollectionView; frame = (-393 0; 393 783); transform = [1, 0, 0, 1, -393, 0]; clipsToBounds = YES; alpha = 0; gestureRecognizers = <NSArray: 0x600000590e70>; backgroundColor = UIExtendedGrayColorSpace 0 0; layer = <CALayer: 0x600000baa240>; contentOffset: {0, -56}; contentSize: {393, 703.66666666666674}; adjustedContentInset: {56, 0, 34, 0}; layout: <ICMHomescreenFlowLayout: 0x7fe660d66b60>; dataSource: <ICMHomescreenViewController: 0x7fe66307f200>>'

*** First throw call stack:

(

0   CoreFoundation                      0x000000011483028d __exceptionPreprocess + 242

1   libobjc.A.dylib                     0x0000000118bbb894 objc_exception_throw + 48

2   Foundation                          0x000000011b867c80 _userInfoForFileAndLine + 0

3   UIKitCore                           0x000000013448f0a7 -[UICollectionView _Bug_Detected_In_Client_Of_UICollectionView_Invalid_Batch_Updates:] + 115

4   UIKitCore                           0x000000013448e2bc -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:collectionViewAnimator:] + 13332

5   UIKitCore                           0x0000000134489fec -[UICollectionView _updateRowsAtIndexPaths:updateAction:updates:] + 492

6   UIKitCore                           0x000000013448a0d2 -[UICollectionView insertItemsAtIndexPaths:] + 64

7   Intercom                            0x00000001164ce74f shouldRenderOnNewLine + 252402

8   CoreFoundation                      0x000000011475c3e0 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 137

9   CoreFoundation                      0x000000011475c316 ___CFXRegistrationPost_block_invoke + 86

10  CoreFoundation                      0x000000011475b8e5 _CFXRegistrationPost + 536

11  CoreFoundation                      0x000000011475b1db _CFXNotificationPost + 815

12  Foundation                          0x000000011b8e7af1 -[NSNotificationCenter postNotificationName:object:userInfo:] + 82

13  Intercom                            0x000000011647ebb2 IntercomSDK_PINRemoteImageManagerSubclassOverridesSelector + 401527

14  Intercom                            0x00000001164bda50 shouldRenderOnNewLine + 183539

15  Intercom                            0x00000001164c110f shouldRenderOnNewLine + 197554

16  Intercom                            0x00000001164c0d04 shouldRenderOnNewLine + 196519

17  libdispatch.dylib                   0x00000001216a4747 _dispatch_call_block_and_release + 12

18  libdispatch.dylib                   0x00000001216a59f7 _dispatch_client_callout + 8

19  libdispatch.dylib                   0x00000001216b5856 _dispatch_main_queue_drain + 1362

20  libdispatch.dylib                   0x00000001216b52f6 _dispatch_main_queue_callback_4CF + 31

21  CoreFoundation                      0x000000011478c850 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9

22  CoreFoundation                      0x000000011478718b __CFRunLoopRun + 2463

23  CoreFoundation                      0x0000000114786409 CFRunLoopRunSpecific + 557

24  GraphicsServices                    0x00000001268b3187 GSEventRunModal + 137

25  UIKitCore                           0x000000013504e3a2 -[UIApplication _run] + 972

26  UIKitCore                           0x0000000135052e10 UIApplicationMain + 123

27  Moovby                              0x00000001017ffb28 main + 56

28  dyld                                0x000000010ee273ee start_sim + 10

29  ???                                 0x0000000206d283a6 0x0 + 8704394150

)

libc++abi: terminating due to uncaught exception of type NSException

icon

Best answer by Jacob Cox 31 October 2023, 20:18

View original

1 reply

Userlevel 4
Badge +5

Hi @Zara !

Issues like this are best taken up with the Intercom Support team. I’ll go ahead and send this question over to them. They will reach back out to you via the email address that you signed up with. The first step that you will want to take sure is to make sure you have the most recent version of the Intercom iOS SDK installed since having an outdated one installed is often the cause of many mobile issues. You can find that SDK repo here.

Reply