# SDK crashes when custom disclaimer is enabled

**URL:** <https://devforum.zoom.us/t/sdk-crashes-when-custom-disclaimer-is-enabled/107236>\
**Category:** iOS\
**Created:** [April 4, 2024, 9:44pm UTC](https://devforum.zoom.us/t/sdk-crashes-when-custom-disclaimer-is-enabled/107236 "2024-04-04T21:44:50Z")\
**Posts on this page:** 8\
**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:** [April 4, 2024, 9:44pm UTC](https://devforum.zoom.us/t/sdk-crashes-when-custom-disclaimer-is-enabled/107236/1 "2024-04-04T21:44:50Z")

</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 have finally been able to reproduce it reliably. 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”.

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

**To Reproduce(If applicable)**

1. On the web, sign in to Zoom account
2. Navigate to User Management \> Groups \> View the group in the list \> Meeting
3. Enable the setting “Show a custom disclaimer when starting or joining a meeting”
4. Set it to appear for all users, every time, and add a message

In the SDK, enable custom meeting UI (the issue only appears with custom enabled). When joining a meeting you will be prompted to agree to the disclaimer. Agree. It may take joining and leaving the meeting a couple times when it will crash due to the issue mentioned above. Can happen on the first attempt, usually happens for me on the second attempt, I’ve never failed to recreate it with at least 5 attempts.

**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:** [April 4, 2024, 11:45pm UTC](https://devforum.zoom.us/t/sdk-crashes-when-custom-disclaimer-is-enabled/107236/2 "2024-04-04T23:45:15Z")

</div>

@azanton not sure if this related to the issue you posted: [Crash when custom disclaimer is shown on iOS16](https://devforum.zoom.us/t/crash-when-custom-disclaimer-is-shown-on-ios16/78035)

Did you ever get a resolution?

---

<div class="post-metadata">

**Author:** ![azanton](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@azanton](https://devforum.zoom.us/u/azanton)\
**Post date:** [April 5, 2024, 2:59am UTC](https://devforum.zoom.us/t/sdk-crashes-when-custom-disclaimer-is-enabled/107236/3 "2024-04-05T02:59:00Z")

</div>

Hi @jeremy.provost, ours was fixed by updating the SDK. At the moment we’re currently using v5.16.12 and there are no reported issues so far.

---

<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:** [April 5, 2024, 12:29pm UTC](https://devforum.zoom.us/t/sdk-crashes-when-custom-disclaimer-is-enabled/107236/4 "2024-04-05T12:29:05Z")

</div>

@azanton thanks. In our case, we see it with the latest version of the SDK.

---

<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:** [April 15, 2024, 5:06pm UTC](https://devforum.zoom.us/t/sdk-crashes-when-custom-disclaimer-is-enabled/107236/5 "2024-04-15T17:06:31Z")

</div>

Hi @elaine.ku. We wanted to check if there is any update from Zoom about this issue. It is our top crash and is reproducible. Thanks!

---

<div class="post-metadata">

**Author:** ![elaine.ku](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elaine.ku/32/40026_2.png) [@elaine.ku](https://devforum.zoom.us/u/elaine.ku)\
**Post date:** [April 16, 2024, 7:23am UTC](https://devforum.zoom.us/t/sdk-crashes-when-custom-disclaimer-is-enabled/107236/6 "2024-04-16T07:23:10Z")

</div>

Hi @jeremy.provost ,

Thank you for posting on our dev forum.  
I tested a few times using our sample App and was not able to reproduce the crash . Were you able to reproduce it with our sample App?  
Thank you

Elaine

---

<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:** [April 16, 2024, 6:23pm UTC](https://devforum.zoom.us/t/sdk-crashes-when-custom-disclaimer-is-enabled/107236/7 "2024-04-16T18:23:27Z")

</div>

We think we’ve found the difference. In the sample app, the custom UI view controller has its view added directly to the main view controller’s view. Whereas in our app, we use `present` to present our custom UI view controller as a full screen modal. If you wanted to make this work for truly custom UI, it would be great if it supported using `present`. Everything else seems to work perfectly except for this one case of having a custom disclaimer. It’s only in this case that we are seeing crashes.

---

<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:** [May 17, 2024, 4:24am UTC](https://devforum.zoom.us/t/sdk-crashes-when-custom-disclaimer-is-enabled/107236/8 "2024-05-17T04:24:20Z")

</div>

Closed on May 17, 2024, 4:24am UTC

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