Crash on ios 13

Hi guys, using intercom ios 5.5.2, am getting occasional crash here:

Fatal Exception: NSRangeException
0 CoreFoundation 0x1c0642a48 __exceptionPreprocess
1 libobjc.A.dylib 0x1c0369fa4 objc_exception_throw
2 CoreFoundation 0x1c053ea3c -[NSOrderedSet indexOfObject:inSortedRange:options:usingComparator:]
3 0x104da38cc -[IntercomSDK_IntercomConversationCollectionViewController attributesForSection:]
4 0x104da4f5c -[IntercomSDK_IntercomConversationCollectionViewLayout createAttributesForSection:startY:]
5 0x104da4e10 -[IntercomSDK_IntercomConversationCollectionViewLayout prepareLayout]
6 UIKitCore 0x1c3f517bc -[UICollectionViewData _prepareToLoadData]
7 UIKitCore 0x1c3f52050 -[UICollectionViewData validateLayoutInRect:]
8 UIKitCore 0x1c3f23434 -[UICollectionView layoutSubviews]
9 UIKitCore 0x1c4b4b3d0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
10 QuartzCore 0x1c70ae7dc -[CALayer layoutSublayers]
11 QuartzCore 0x1c70b4958 CA::Layer::layout_if_needed(CA::Transaction*)
12 UIKitCore 0x1c4b37684 -[UIView(Hierarchy) layoutBelowIfNeeded]
13 UIKitCore 0x1c3f3a6f8 -[UICollectionView _performBatchUpdates:completion:invalidationContext:tentativelyForReordering:animator:]
14 UIKitCore 0x1c3f3a5cc -[UICollectionView _performBatchUpdates:completion:invalidationContext:tentativelyForReordering:]
15 UIKitCore 0x1c3f3a550 -[UICollectionView _performBatchUpdates:completion:invalidationContext:]
16 UIKitCore 0x1c3f3a48c -[UICollectionView performBatchUpdates:completion:]
17 0x104d9e9ac -[IntercomSDK_IntercomConversationCollectionViewController performBatchUpdates:completion:]
18 0x104da03a8 -[IntercomSDK_IntercomConversationCollectionViewController setConversationParts:completion:]
19 0x104eb1d18 __78-[ICMConversationContentViewController startNewConversationWithBlocks:upload:]_block_invoke
20 0x104e2a270 __67+[ICMHTTPBridge createConversationWithBlocks:upload:success:error:]_block_invoke_2
21 libdispatch.dylib 0x1c030e610 _dispatch_call_block_and_release
22 libdispatch.dylib 0x1c030f184 _dispatch_client_callout
23 libdispatch.dylib 0x1c02c1190 _dispatch_main_queue_callback_4CF$VARIANT$mp
24 CoreFoundation 0x1c05c05e4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
25 CoreFoundation 0x1c05bb5d8 __CFRunLoopRun
26 CoreFoundation 0x1c05baadc CFRunLoopRunSpecific
27 GraphicsServices 0x1ca540328 GSEventRunModal
28 UIKitCore 0x1c46b5ae0 UIApplicationMain
29 0x104f78ca4 main + 14 (main.m:14)
30 libdyld.dylib 0x1c0444360 start

Any ideas?

Hey there Kevin :wave: I’m Donal one of the Support Engineers here at Intercom.

I can see that you have written to us about this on the Messenger. I replied to your chat sometime this morning.

Our mobile team are aware of this issue and are working to get it resolved. Please don’t hesitate to reply to myself in the messenger if you have any further questions about this.

@Donal_Lane is there any fix for this?
We are also seeing this crash happening in v6.0.0 of your ios sdk.

@kevinmun did you have any fix for this?
We’re suffering a little with the same crashes since updating to v6.0.1 of the SDK.

Same problem here,

ios 13.3
react-native-intercom 14.0.0 (which uses Intercom 6.0.1)

Step to reproduce:

  1. Send an image via intercom chat
  2. close the Intercom view right away
  3. App will crash. Feels like it crashes when it tries to display the “Reply from operator” popup