Intercom SDK Crashing on IOS | Community
Skip to main content

Hi everyone,

 

I’ve reached out via support but in the meantime wanted to ask if anybody is experiencing this same issue in the community.

Platform: iOS (expo react-native)

Package: @intercom/intercom-react-native v. 8.1.0

Lately, we are seeing spike in the error `App Hanging +

This seems to be happening in intercom-ios. 

Below is a portion of stacktrace:

```

CoreFoundation      0x187de7518  -5NSDictionary isEqualToDictionary:]  CoreFoundation      0x187de7514  -5NSDictionary isEqualToDictionary:]  CoreFoundation      0x187de75b4  -5NSDictionary isEqualToDictionary:]  CoreFoundation      0x187dfe538  ____NSSetI_new_block_invoke  CoreFoundation      0x187dfe4a0  __NSSetI_new  Foundation          0x186a7ba88  -aNSSet(NSKeyValueCoding) valueForKey:]  Intercom            0x1037f3e34  +eICMHTTPBridge submitMetrics]  CoreFoundation      0x187e0a474  __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__  CoreFoundation      0x187e0a390  ___CFXRegistrationPost_block_invoke  CoreFoundation      0x187e08f04  _CFXRegistrationPost  CoreFoundation      0x187e08008  _CFXNotificationPost  Foundation          0x186a60508  -5NSNotificationCenter postNotificationName:object:userInfo:]  UIKitCore           0x18b737174  __47- UIApplication _applicationDidEnterBackground]_block_invok

```

 

From my read of the stacktrace, this may be happening when the app is entering background mode (__47-gUIApplication _applicationDidEnterBackground]_block_invok) and intercom ios sdk tries to submit metrics (+tICMHTTPBridge submitMetrics]) but fails to do so causing potential crash (or maybe its just the app waiting)?

 

Also, looking at intercom-ios repo, its at 18.4.0 but the react native version is using 18.2.0 per the release notes. Also, it does seem like there were some bugfixes on 18.2.2 patch version and I wonder if these would solve the problem. Would have been helpful if the changelogs had a bit more detail. Is anybody else running into this? Any solution for this issue. We are getting tons of the error messages from our exception tracking tool for last couple of days.

 

Thanks!

Hey ​@Samar Acharya 👋 Jacques here from Support Engineering with Intercom. I hope all is well with you :)

I can see you’re currently in contact with our Support Team regarding this issue with the SDK.

Thanks for reaching out! They’ll be able to deal with this issue for you there 🙏


Reply