# App Crash happens

**URL:** <https://devforum.zoom.us/t/app-crash-happens/4144>\
**Category:** iOS\
**Created:** [May 3, 2019, 6:05pm UTC](https://devforum.zoom.us/t/app-crash-happens/4144 "2019-05-03T18:05:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![saroroo123](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@saroroo123](https://devforum.zoom.us/u/saroroo123)\
**Post date:** [May 3, 2019, 6:05pm UTC](https://devforum.zoom.us/t/app-crash-happens/4144/1 "2019-05-03T18:05:49Z")

</div>

Hi,  
I have one issue that I faced only one time. I got the crash issue in my app. The crash happens this line ,

**MobileRTC.shared()?.setMobileRTCDomain(“[zoom.us](http://zoom.us/)”)**

If I hide this line then i got 150 error response while start a meeting. Could you explain why we are using this line ? and what is the purpose ?

Also, In this [https://github.com/zoom/zoom-sdk-ios](https://github.com/zoom/zoom-sdk-ios), under **FAQ** you mentioned one crash issue like 5th point --\> App Crashed and log shows the crash point at `TermSBPTUIModule(Cmm::ICmmMessageQueueClient*)`

- This error appears becuase the instance of the `MobileRTCMeetingServiceDelegate` was not set to `nil` after you finish using our Zoom services. We defined the delegate as `assign` property, which needs to be set to `nil` manually.

```auto
@property (nullable, assign, nonatomic) id<MobileRTCMeetingServiceDelegate> delegate;

```

```auto
  Could you explain, where I need to set this delegate to NIL. ??

```

Also I got this issue in my console while I trigger a meeting OR as well as I end the meeting. Please check **AudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)**

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 3, 2019, 10:44pm UTC](https://devforum.zoom.us/t/app-crash-happens/4144/2 "2019-05-03T22:44:08Z")

</div>

Hi saroroo123,  
Thanks for the post. Regarding your question:

1. The method `setMobileRTCDomain` is for setting up the domain who our SDK should talk to and this method is required. In 99.99% of the cases, you should pass “[zoom.us](http://zoom.us)” as the parameter. We do have a few users that are using special servers for Zoom service. This method is for this scenario.
2. The error 150 means “Invalid Argument”([https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/resource/error-codes#14-meeting-error-codes](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/resource/error-codes#14-meeting-error-codes)), if you hide this line, then our SDK will not know who should we talk to, the argument (the domain) is invalid.
3. In the place where you finish using our Zoom service, for example, in our demo, in the `MainViewController.m`, inside the `dealloc` method, do the following:

```auto
- (void)dealloc
{
  [[MobileRTC sharedRTC] getMeetingService].delegate = nil;
}

```

Normally, this should fix the issue. However, recently we have been reported that even with this fix, the error still appears. Could you provide more details on this error? Can you fill out the following info?

**Description**  
A clear and concise description of what the question is.

**Which version?**  
Knowing the version can help us to identify your issue faster.

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

1. Go to ‘…’
2. Click on ‘…’
3. Scroll down to ‘…’
4. See error

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

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

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Version [e.g. 22]

**Additional context**  
Add any other context about the problem here.

Especially the steps to reproduce this issue and any detailed log that you could provide would be really helpful for us.

Looking forward to hearing from you. Thanks!

---

<div class="post-metadata">

**Author:** ![saroroo123](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@saroroo123](https://devforum.zoom.us/u/saroroo123)\
**Post date:** [May 6, 2019, 9:26am UTC](https://devforum.zoom.us/t/app-crash-happens/4144/3 "2019-05-06T09:26:33Z")

</div>

Hi Carson,  
Happy Monday 🙂. I hope you have a great weekend. Thanks for the info regarding my clarifications. Here is the details of my specifications,

**Mac:**  
OS - macOS Mojave  
Version - 10.14.4

**Xcode**  
Version - 10.2.1

**Language**  
Version - Swift 5

Now my clarifications regarding above post’s are,

1. Why I need to set NIL for the meeting service delegate with in the dealloc. Because I am using latest version of XCode and swift 5. it’s not supported the dealloc method. Because the ARC (Automatic Reference Count) will automatically handle the memory related things. Please explain little bit more about this ?

2. Regarding this issue **AudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)**. here is the steps  
Steps to Reproduce:  
- I got the Meeting ID  
- I am going to start the meeting (without login) using tokens.  
- Now, Meeting started but in my Xcode console, I have seeing this issues repeatedly,

**AudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)**  
- I have end the meeting.

Please check it. 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 7, 2019, 2:12am UTC](https://devforum.zoom.us/t/app-crash-happens/4144/4 "2019-05-07T02:12:02Z")

</div>

Hi saroroo123,  
Thanks for the details! Hope you have a good one as well. Regarding your question:

1. Why I need to set NIL for the meeting service delegate with in the dealloc. Because I am using latest version of XCode and swift 5. it’s not supported the dealloc method. Because the ARC (Automatic Reference Count) will automatically handle the memory related things. Please explain little bit more about this ?

The reason why you need to set NIL for the meeting service delegate is because our meeting service delegate has the `assign` property:

```auto
@property (nullable, assign, nonatomic) id<MobileRTCMeetingServiceDelegate> delegate;

```

You will need to manually set to NIL to avoid having the kind of error that you are facing. In Swift, you can implement the “set Nil” call in `deinit` ([https://stackoverflow.com/questions/25497928/dealloc-in-swift](https://stackoverflow.com/questions/25497928/dealloc-in-swift))

```auto
deinit {
   [[MobileRTC sharedRTC] getMeetingService].delegate = nil;
}

```

Hope this helps. Thanks again for providing the info regarding the issue. We are investigating the issue, I will get back to you as soon as we have any updates regarding this issue.

Thanks!

---

<div class="post-metadata">

**Author:** ![saroroo123](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@saroroo123](https://devforum.zoom.us/u/saroroo123)\
**Post date:** [May 7, 2019, 8:07am UTC](https://devforum.zoom.us/t/app-crash-happens/4144/5 "2019-05-07T08:07:08Z")

</div>

Hi Carson,  
Thanks for the info. I will set the deinit method for setting up the meeting service to nil.

Regarding Audio session issue. Looking forward to hearing from you 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [May 10, 2019, 8:06pm UTC](https://devforum.zoom.us/t/app-crash-happens/4144/6 "2019-05-10T20:06:25Z")

</div>

Hi,

Please accept our apologies for the delayed response.

We have received your request and will update you shortly.

Thanks,

---

<div class="post-metadata">

**Author:** ![saroroo123](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@saroroo123](https://devforum.zoom.us/u/saroroo123)\
**Post date:** [May 13, 2019, 7:58am UTC](https://devforum.zoom.us/t/app-crash-happens/4144/7 "2019-05-13T07:58:57Z")

</div>

Hi,  
Ok. Please check this issue **AudioSessionPortImpl.mm:56:ValidateRequiredFields: Unknown selected data source for Port Speaker (type: Speaker)** issue. 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 14, 2019, 2:08am UTC](https://devforum.zoom.us/t/app-crash-happens/4144/8 "2019-05-14T02:08:45Z")

</div>

Hi saroroo123,  
Hope everything goes well. After analyzing the error message that you got, it seems like the `AudioSessionPortImpl.mm` is not from our SDK. Are you getting this error from our demo app without importing any other libraries?

Looking forward to hearing from you. Thanks!

---

<div class="post-metadata">

**Author:** ![saroroo123](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@saroroo123](https://devforum.zoom.us/u/saroroo123)\
**Post date:** [May 14, 2019, 4:54pm UTC](https://devforum.zoom.us/t/app-crash-happens/4144/9 "2019-05-14T16:54:11Z")

</div>

Hi Carson,  
Thanks for the reply. I have fixed this console waring issue importing the AVKit framework in my XCode.

Now, I am facing one **serious crash issue** in my AppDelegate class while set the domain auth. I have checked the zoom forum. If anyone already had this issue. I got this link [iOS device auth crash on v4.3.1.47201.0322](https://devforum.zoom.us/t/ios-device-auth-crash-on-v4-3-1-47201-0322/3975/9). I am also getting the same issue and same place. Here is the screen shot of crash

 ![13%20PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/eddbe02234bf22ed6485477cca397f6529fefd1c.png). This crash happens not all the time. If I run the app more than 5 times then it will happen. Crash happened simulator, iPhone, iPad devices. But most cases I got this crash in simulator and few time got this crash in devices. All the devices IOS 12 supported. I am using zoom version is **MobileRTC Version: Optional(“4.3.47201.0322”)**

I have already shared my system configurations. what can I do now ? (NOTE: I have already set the delegate to nil). Please check this as soon as possible. We have app launch date is this month end. So I need to fix this before that. Hope you understand.  
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 14, 2019, 5:25pm UTC](https://devforum.zoom.us/t/app-crash-happens/4144/10 "2019-05-14T17:25:23Z")

</div>

Hi,

Thanks for the info and pardon the inconvenience caused by this issue. Yes, this is a known issue. We have found this issue right after the 0322 release and we have fixed it. This fix will be in the next release. Pardon the inconvenience again. Let me know if you have any other questions. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![saroroo123](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@saroroo123](https://devforum.zoom.us/u/saroroo123)\
**Post date:** [May 14, 2019, 5:29pm UTC](https://devforum.zoom.us/t/app-crash-happens/4144/11 "2019-05-14T17:29:19Z")

</div>

Hi Carson,  
Great to hear the issue was fixed. So when I expect that crash fixed release ?

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 15, 2019, 2:22am UTC](https://devforum.zoom.us/t/app-crash-happens/4144/12 "2019-05-15T02:22:13Z")

</div>

Hi saroroo123,

I have consulted our engineer and we have analyzed your issue again, it might be a little different from the fix that I was thinking(There is a fix that is related to setting the domain). Can you try to add the following method before you call the `setMobileRTCDomain` method and see if it helps:

```auto
 [MobileRTC initializeWithDomain:kSDKDomain enableLog:YES];
 [[MobileRTC sharedRTC] setMobileRTCDomain:kSDKDomain];

```

If it still crashes, can you provide the `.crash` file to us so we can further look into it? Thanks!

---

<div class="post-metadata">

**Author:** ![saroroo123](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@saroroo123](https://devforum.zoom.us/u/saroroo123)\
**Post date:** [May 15, 2019, 8:26am UTC](https://devforum.zoom.us/t/app-crash-happens/4144/13 "2019-05-15T08:26:22Z")

</div>

Hi Carson,  
Ok. I will check this and let you know 🙂  
Thanks!

---

<div class="post-metadata">

**Author:** ![saroroo123](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@saroroo123](https://devforum.zoom.us/u/saroroo123)\
**Post date:** [May 15, 2019, 5:52pm UTC](https://devforum.zoom.us/t/app-crash-happens/4144/14 "2019-05-15T17:52:25Z")

</div>

Hi Carson,  
Sad news. Again I getting crash but this time I got crash this newly added line.

 ![53%20PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/36cabc2843a97aac954fc3401b362ad616912409.png)

I did not get the .crash file. Now what can I do ?

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 15, 2019, 10:53pm UTC](https://devforum.zoom.us/t/app-crash-happens/4144/15 "2019-05-15T22:53:13Z")

</div>

Hi saroroo123,  
Thanks for the info. Pardon the experience. Can you provide any kind of log files, or console prints?

I will work with the engineers and ensure your problem will be fixed in the end. Thanks for all the help! 🙂

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 16, 2019, 2:33am UTC](https://devforum.zoom.us/t/app-crash-happens/4144/16 "2019-05-16T02:33:48Z")

</div>

Hi saroroo123,

Regarding the .crash file, if you got the crash on your device, you will be able to find the .crash log with the following steps:

1. Connect your device with your computer, open Xcode \> Window \> Devices and Simulators  
 ![56%20PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/27cbd615e43937f7d5523e4c391238ca09b81c7c.png)
2. Press “View Device Logs”  
 ![03%20PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/365adb227d46b9592fc6cda3f8e537fcd6225ce2.png)
3. The pop-up windows will load and show all the crash logs you have on your device. Locate your app that has our SDK integrated, find the crash log that matches the exact time that you were facing the crash.
4. Right-click, and press “Export Logs”  
 ![26%20PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/5dd37089e690f310bc2e3b759d2649c1c59c2b1c.png)

In the meantime, can you use our iOS SDK demo app to reproduce this issue and send the demo to us?

Would appreciate your help. Thank you very much!

---

<div class="post-metadata">

**Author:** ![saroroo123](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@saroroo123](https://devforum.zoom.us/u/saroroo123)\
**Post date:** [May 16, 2019, 6:10pm UTC](https://devforum.zoom.us/t/app-crash-happens/4144/17 "2019-05-16T18:10:07Z")

</div>

Hi Carson,  
Thanks for info. I will check and get back to you 🙂  
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 16, 2019, 9:43pm UTC](https://devforum.zoom.us/t/app-crash-happens/4144/18 "2019-05-16T21:43:16Z")

</div>

Hi saroroo123,

Hope everything is going well. We would like to provide a build to resolve the crash issue that you are facing. I will send you a forum message in the bit.

Thank you!

---

<div class="post-metadata">

**Author:** ![saroroo123](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@saroroo123](https://devforum.zoom.us/u/saroroo123)\
**Post date:** [May 31, 2019, 5:23pm UTC](https://devforum.zoom.us/t/app-crash-happens/4144/19 "2019-05-31T17:23:52Z")

</div>

Hi Carson,  
Happy Friday. Hope all good. I have one new update. In my app, user can make audio calls using zoom. In zoom call window, my client asks to show the profile picture in the audio call window. Check below image

 ![28](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/1X/d8646053ffb09dac5a2cb40488dd503d39d11e1a.png)  
Is there any way to change that icon ?

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 31, 2019, 9:13pm UTC](https://devforum.zoom.us/t/app-crash-happens/4144/20 "2019-05-31T21:13:55Z")

</div>

Hi,  
Thanks for the reply. You can customize this if you are using Custom UI. But for Zoom UI, like this one you are using, I don’t think we have an interface to change the avatar here. I will consult the engineer to see if it is possible to support this. I will get back to you asap.

Let me know if you have any other questions. Thanks!

[Next page](https://devforum.zoom.us/t/app-crash-happens/4144.md?page=2)
