# Zoom Sdk Crashes while Webinar Switches to Gallery View

**URL:** <https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386>\
**Category:** iOS\
**Created:** [May 20, 2020, 4:46am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386 "2020-05-20T04:46:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohan.thakur](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mohan.thakur/32/2418_2.png) [@mohan.thakur](https://devforum.zoom.us/u/mohan.thakur)\
**Post date:** [May 20, 2020, 4:46am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/1 "2020-05-20T04:46:31Z")

</div>

**Description**  
We are using Zoom in your application. We are using webinar and it works fine when we used the speaker mode. If the Panelist change from Speaker View to Gallery view the SDK crashed and kicked the user out of app and neither user able to join the zoom again until it changed back to speaker mode again.

**Which version?**  
v4.6.21666.0427

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Create a Webinar with speaker view on desktop app
2. Join Webinar from iOS Sdk
3. After 1-2 mins Switch from Speaker View to Gallery View
4. And iOS sdk Crashes and neither you are able to join again until it changes to Speaker mode again

**Screenshots**  
If applicable, add screenshots to help explain your problem.

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

- Device: All iOS devices
- OS: 13.1 and all versions
- Version

**Additional context**  
Here are the different devices crash report for the same

> **[crashlog.crash](https://www.dropbox.com/s/sh174a9onjrv7vk/crashlog.crash?dl=0)**
>
> Shared with Dropbox

> **[crashlog1.crash](https://www.dropbox.com/s/6yj69b6g24fjuzi/crashlog1.crash?dl=0)**
>
> Shared with Dropbox

Please check the above issues and fix this ASAP

Thanks!

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 21, 2020, 5:02am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/2 "2020-05-21T05:02:42Z")

</div>

Hi [mohan.thakur](https://devforum.zoom.us/u/mohan.thakur),

Thanks for the post and thanks for providing the crash log. I have also tried to follow your steps to reproduce this with our demo app but no luck. After analyzing the crash log, it seems like the crash is not happening with Zoom SDK:

 ![CF5EB290-0081-4002-983C-55C5176CDFD1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/0/081ec8162b10fb88f3f9ebe58411f972509a1e0d.jpeg)

Hope this helps. Thanks!

---

<div class="post-metadata">

**Author:** ![mohan.thakur](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mohan.thakur/32/2418_2.png) [@mohan.thakur](https://devforum.zoom.us/u/mohan.thakur)\
**Post date:** [May 21, 2020, 7:47am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/3 "2020-05-21T07:47:00Z")

</div>

Why it only give the error when we changed to the Gallery mode not for the Speaker mode? Rest all the functionality is working fine. The crashes caused only by the Gallery view. I am not having access to anything all the things are in your sdk so can you please try to dig down to check what causes the issue in your framework. Rest all functionaliy is working fine. If the issue is related to my code why it works well for rest of the things for zoom. Only when panelist change to Gallery view from the Desktop app ios Sdk crashes. I also posted you multiple crash report

---

<div class="post-metadata">

**Author:** ![Murray\_Li](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/murray_li/32/58_2.png) [@Murray\_Li](https://devforum.zoom.us/u/Murray_Li)\
**Post date:** [May 21, 2020, 8:26am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/4 "2020-05-21T08:26:41Z")

</div>

Hi Excuse me, this crash using your steps is sure to be able to appear？  
I can not reproduce it on my phone, it looks like it’s nested in a loop.

---

<div class="post-metadata">

**Author:** ![mohan.thakur](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mohan.thakur/32/2418_2.png) [@mohan.thakur](https://devforum.zoom.us/u/mohan.thakur)\
**Post date:** [May 21, 2020, 8:30am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/5 "2020-05-21T08:30:00Z")

</div>

**Please check this particular Case**

When switch to Gallery mode Make sure your panelist video(Camera) is on then only it crashes. If the video is off then it works fine for gallery mode as well. So please check the with particular case (camera on with gallery mode in Webinar) it crashes.

Check the below screenshot from your SDK crash

 ![Screen Shot 2020-05-21 at 1.47.40 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/3739365692babbfd2987196a5e71922fd5acdfbb.jpeg)

---

<div class="post-metadata">

**Author:** ![Murray\_Li](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/murray_li/32/58_2.png) [@Murray\_Li](https://devforum.zoom.us/u/Murray_Li)\
**Post date:** [May 21, 2020, 8:48am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/6 "2020-05-21T08:48:11Z")

</div>

Hi mohan.thakur

Can you try it in our sample project? See if you can reproduce the crash？

---

<div class="post-metadata">

**Author:** ![mohan.thakur](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mohan.thakur/32/2418_2.png) [@mohan.thakur](https://devforum.zoom.us/u/mohan.thakur)\
**Post date:** [May 21, 2020, 9:21am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/7 "2020-05-21T09:21:29Z")

</div>

i will do in that as well.

---

<div class="post-metadata">

**Author:** ![Murray\_Li](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/murray_li/32/58_2.png) [@Murray\_Li](https://devforum.zoom.us/u/Murray_Li)\
**Post date:** [May 21, 2020, 9:24am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/8 "2020-05-21T09:24:14Z")

</div>

Is it ok on our sample? The crash can only occur on your app？

---

<div class="post-metadata">

**Author:** ![mohan.thakur](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mohan.thakur/32/2418_2.png) [@mohan.thakur](https://devforum.zoom.us/u/mohan.thakur)\
**Post date:** [May 21, 2020, 9:41am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/9 "2020-05-21T09:41:24Z")

</div>

i didn’t check in your demo yet. Will check and post you. Meanwhile can you please check the above scenario at your end also if you disable the gallery view in zoom sdk settings you can see the exact crash.

---

<div class="post-metadata">

**Author:** ![Murray\_Li](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/murray_li/32/58_2.png) [@Murray\_Li](https://devforum.zoom.us/u/Murray_Li)\
**Post date:** [May 21, 2020, 9:56am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/10 "2020-05-21T09:56:52Z")

</div>

I had tried in our sample using your step, but I can not reproduce the crash.  
So, hope you can also try our sample and see if there are any other scenarios to help us solve the problem.  
At the moment, it looks like a crash caused by the nesting of a UI

---

<div class="post-metadata">

**Author:** ![mohan.thakur](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mohan.thakur/32/2418_2.png) [@mohan.thakur](https://devforum.zoom.us/u/mohan.thakur)\
**Post date:** [May 21, 2020, 9:57am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/11 "2020-05-21T09:57:58Z")

</div>

Your sdk is also crashing… i am sending you report for that and settings… wait and video

---

<div class="post-metadata">

**Author:** ![mohan.thakur](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mohan.thakur/32/2418_2.png) [@mohan.thakur](https://devforum.zoom.us/u/mohan.thakur)\
**Post date:** [May 21, 2020, 10:09am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/12 "2020-05-21T10:09:45Z")

</div>

**Please check the below Video from your sdk and same Crash In your Demo SDK project**

 ![Screen Shot 2020-05-21 at 3.33.36 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/0/0df40b6100700a6e0d1807abd9a3759002df2301.png) ![Screen Shot 2020-05-21 at 3.33.21 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/65a386cb5ab1d04a1b8619aaef26f1846964a4b3.png)

Video of your sdk version Crashing in gallery view

[https://dl.dropboxusercontent.com/s/vp8gtejdx6ws77r/RPReplay\_Final1590055281.MP4?dl=0](https://dl.dropboxusercontent.com/s/vp8gtejdx6ws77r/RPReplay_Final1590055281.MP4?dl=0)

Check the loops are in your sdk. It doesn’t relates to my code.

> **[MobileRTCSample 5-21-20, 3-31 PM.crash](https://www.dropbox.com/s/6u073pexb29z6cx/MobileRTCSample%20%205-21-20,%203-31%20PM.crash?dl=0)**
>
> Shared with Dropbox

> **[MobileRTCSample 5-21-20, 3-30 PM.crash](https://www.dropbox.com/s/n1gen3lmj955axw/MobileRTCSample%20%205-21-20,%203-30%20PM.crash?dl=0)**
>
> Shared with Dropbox

Please let me know how i can more help you to reproduce this…

---

<div class="post-metadata">

**Author:** ![Murray\_Li](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/murray_li/32/58_2.png) [@Murray\_Li](https://devforum.zoom.us/u/Murray_Li)\
**Post date:** [May 21, 2020, 10:42am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/13 "2020-05-21T10:42:43Z")

</div>

Hi ~ I’m so sorry，I’ll follow the steps in your video，I can not reproduce it also.  
Could you please upload your modified sample project code? I will try again on it

---

<div class="post-metadata">

**Author:** ![mohan.thakur](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mohan.thakur/32/2418_2.png) [@mohan.thakur](https://devforum.zoom.us/u/mohan.thakur)\
**Post date:** [May 21, 2020, 11:22am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/14 "2020-05-21T11:22:01Z")

</div>

Hello

In the sample project i changed nothing i just put my app secret and app key and changed param dictionary in this class  
#import “SDKStartJoinMeetingPresenter+JoinMeetingOnly.h”

```
    NSDictionary *paramDict = @{
                                kMeetingParam_Username:@"Mohan",
                                kMeetingParam_MeetingNumber:@" ***********",

```

// kMeetingParam\_MeetingPassword:"",  
kMeetingParam\_WebinarToken:@“wqTLzGWHF2iuDeKQQT1y-sihY4boaazE5KjYRtlw1\_M.DQIAAAAW6HoQzhY3dk9ZNUFqalFHLVY3OE5jN3ZlMVlnAAAAAAAAAAAAAAAAAAAAAAAAAAAA”,  
//kMeetingParam\_NoAudio:@(YES),  
//kMeetingParam\_NoVideo:@(YES),  
};  
After that i run the code and changed the app settings as in the above video. And when ever i joined the webinar i changed the Gallery view mode(with video on) from the desktop app the Sdk crashed. Please change the below settings in the demo app as you run on device.

 ![Screen Shot 2020-05-21 at 4.45.57 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/d/dc0703d6fb8a209d528626d5d5c9b457a62b64a5.jpeg)

 ![Screen Shot 2020-05-21 at 4.46.32 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/e/ef4aa4137cad80fdb73411780a7775bf83df6292.jpeg)

Also domain into [zoom.us](http://zoom.us)

After the above settings as i joined the zoom the sdk works fine until the gallery mode is enable from panelist.

Please let me know if any other help is required to find-out this crash.  
We can also discuss on zoom call in order to show the same case.

Thanks

\*This post has been edited to remove any meeting / webinar IDs

---

<div class="post-metadata">

**Author:** ![Murray\_Li](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/murray_li/32/58_2.png) [@Murray\_Li](https://devforum.zoom.us/u/Murray_Li)\
**Post date:** [May 21, 2020, 11:55am UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/15 "2020-05-21T11:55:27Z")

</div>

you change the Gallery view mode from desktop?  
How did you change the Gallery view mode? Can you show me the screenshot.  
Thanks

---

<div class="post-metadata">

**Author:** ![mohan.thakur](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mohan.thakur/32/2418_2.png) [@mohan.thakur](https://devforum.zoom.us/u/mohan.thakur)\
**Post date:** [May 21, 2020, 12:10pm UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/16 "2020-05-21T12:10:10Z")

</div>

Yes i am changing the gallery view from the desktop app. First start the webinar with Desktop app and join this webinar with ios SDK and from Desktop app allow user to speak. Once you allow user to speak, make sure video is on for desktop app. Now switch between Speaker view to Gallery View from desktop app and check in iOS sdk it will crash.

Below is the screenshot from where you can switch to gallery mode.

 ![Screen Shot 2020-05-21 at 5.33.49 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/602b623bb9ccaea6d40b7b5dc93d3a0830d74a5c.png)

Please let me know if any further other things are required at my end.

Thanks

---

<div class="post-metadata">

**Author:** ![Murray\_Li](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/murray_li/32/58_2.png) [@Murray\_Li](https://devforum.zoom.us/u/Murray_Li)\
**Post date:** [May 21, 2020, 1:01pm UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/17 "2020-05-21T13:01:34Z")

</div>

I have done all the steps just like you, but I still can’t reproduce.

In addition, the switch between Speaker view to Gallery view from desktop app is your desktop behavior, which should not affect the ios SDK.

I guess it has something to do with the phone and the iOS system. Can you change the iphone to try again, what’s your SDK version? 4.6.21666.0428 if not please go to [https://github.com/zoom/zoom-sdk-ios](https://github.com/zoom/zoom-sdk-ios) to update , and then try.

I am also very confused

---

<div class="post-metadata">

**Author:** ![mohan.thakur](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mohan.thakur/32/2418_2.png) [@mohan.thakur](https://devforum.zoom.us/u/mohan.thakur)\
**Post date:** [May 21, 2020, 1:05pm UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/18 "2020-05-21T13:05:20Z")

</div>

If you are not able to reproduce it i can help you in that. Are you available on zoom call ?So i can show you how you can reproduce it. Also my version is v4.6.21666.0427. If you feel free to discuss i am available on zoom call and can show you the live.

---

<div class="post-metadata">

**Author:** ![mohan.thakur](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mohan.thakur/32/2418_2.png) [@mohan.thakur](https://devforum.zoom.us/u/mohan.thakur)\
**Post date:** [May 21, 2020, 1:07pm UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/19 "2020-05-21T13:07:05Z")

</div>

> [@Murray\_Li](#):
>
> I have done all the steps just like you, but I still can’t reproduce.
> 
> In addition, the switch between Speaker view to Gallery view from desktop app is your desktop behavior, which should not affect the ios SDK.
> 
> I guess it has something to do with the phone and the iOS system. Can you change the iphone to try again, what’s your SDK version? 4.6.21666.0428 if not please go to [GitHub - zoom/zoom-sdk-ios: Zoom iOS SDK](https://github.com/zoom/zoom-sdk-ios) to update , and then try.
> 
> I am also very confused

Also i checked it on different devices its crashing for all.

---

<div class="post-metadata">

**Author:** ![Murray\_Li](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/murray_li/32/58_2.png) [@Murray\_Li](https://devforum.zoom.us/u/Murray_Li)\
**Post date:** [May 21, 2020, 1:11pm UTC](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386/20 "2020-05-21T13:11:08Z")

</div>

V4.6.21666.0427 is a temporary version, can you upgrade to try it? [https://github.com/zoom/zoom-sdk-ios](https://github.com/zoom/zoom-sdk-ios)

By the way, could you try it on a different phone?

It is not convenient for zoom call because of the different time zone. If we still cannot solve this problem tomorrow, we will have a zoom meeting，ok?

[Next page](https://devforum.zoom.us/t/zoom-sdk-crashes-while-webinar-switches-to-gallery-view/18386.md?page=2)
