# Crash from MobileRTC SDK due to unrecognized selector

**URL:** <https://devforum.zoom.us/t/crash-from-mobilertc-sdk-due-to-unrecognized-selector/99180>\
**Category:** iOS\
**Created:** [November 28, 2023, 7:04pm UTC](https://devforum.zoom.us/t/crash-from-mobilertc-sdk-due-to-unrecognized-selector/99180 "2023-11-28T19:04:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremy.provost](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jeremy.provost/32/12182_2.png) [@jeremy.provost](https://devforum.zoom.us/u/jeremy.provost)\
**Post date:** [November 28, 2023, 7:04pm UTC](https://devforum.zoom.us/t/crash-from-mobilertc-sdk-due-to-unrecognized-selector/99180/1 "2023-11-28T19:04:29Z")

</div>

**Description**  
For quite some time the largest crash by incident count in our app has been due to an unrecognized selector SIGABRT originating in the MobileRTC code. We recently added a crash reporter that revealed a bit more about the issue. Specifically, it appears that the Zoom SDK is attempting to access the `rootViewController` property of one of our `UIViewController` instances. Since `rootViewController` is not defined on `UIViewController` it would crash with “unrecognized selector sent to instance”. To attempt to resolve the issue we implemented a property called `rootViewController` and applied our own logic to return a valid `UIViewController` (for instance, the first view controller in a `UINavigationController`).

That seems to have stopped that crash. However, we now are getting a new case of “unrecognized selector sent to instance”, undoubtedly because we are now past the first crash but we are giving it a view controller type that it does not expect. Now it is attempting to access a property named `originTitle`. We plan on doing the same thing we did with `rootViewController` to get past this issue, but we wanted to report it and hopefully get a true resolution from Zoom.

Feel free to get in touch for more details, although we are unable to reproduce this issue so it is hard to troubleshoot.

**Which iOS Meeting SDK version?**  
All recent SDKs.

**To Reproduce(If applicable)**  
Unable to reproduce

**Smartphone (please complete the following information):**

- Device: iPhone / iPad
- OS: iOS 15, 16, 17

---

<div class="post-metadata">

**Author:** ![jeremy.provost](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jeremy.provost/32/12182_2.png) [@jeremy.provost](https://devforum.zoom.us/u/jeremy.provost)\
**Post date:** [November 30, 2023, 5:20pm UTC](https://devforum.zoom.us/t/crash-from-mobilertc-sdk-due-to-unrecognized-selector/99180/2 "2023-11-30T17:20:05Z")

</div>

Wanted to see if there are any updates on this.

---

<div class="post-metadata">

**Author:** ![jeremy.provost](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jeremy.provost/32/12182_2.png) [@jeremy.provost](https://devforum.zoom.us/u/jeremy.provost)\
**Post date:** [December 5, 2023, 2:15pm UTC](https://devforum.zoom.us/t/crash-from-mobilertc-sdk-due-to-unrecognized-selector/99180/3 "2023-12-05T14:15:00Z")

</div>

It appears that our efforts to fix this by providing implementations for the expected properties is just delaying the crash, i.e., we fix one and instead it crashes right after due to something else. Now that we included an `originTitle` it crashes with the following:

```auto
libobjc.A.dylib
_class_lookUpIvar(objc_class*, ivar_t*, long&, objc_ivar_memory_management_t&)
libobjc.A.dylib
object_getIvar
MobileRTC
0x101c38000 + 242628

```

Would love to see this fixed as it is the number one crash by far.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 5, 2024, 12:15am UTC](https://devforum.zoom.us/t/crash-from-mobilertc-sdk-due-to-unrecognized-selector/99180/4 "2024-01-05T00:15:28Z")

</div>

Closed on January 5, 2024, 12:15am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
