# Ios\_getpid() crashes

**URL:** <https://devforum.zoom.us/t/ios-getpid-crashes/7067>\
**Category:** iOS\
**Created:** [December 13, 2019, 8:19pm UTC](https://devforum.zoom.us/t/ios-getpid-crashes/7067 "2019-12-13T20:19:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssaylanc](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ssaylanc/32/9765_2.png) [@ssaylanc](https://devforum.zoom.us/u/ssaylanc)\
**Post date:** [December 13, 2019, 8:19pm UTC](https://devforum.zoom.us/t/ios-getpid-crashes/7067/1 "2019-12-13T20:19:38Z")

</div>

Hi,

After updating to iOS SDK to 4.4.56624.1028 we started getting random crashes.

Crash log:

```auto
Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x1a0d5d2e4 lookUpImpOrForward + 252
1 libobjc.A.dylib 0x1a0d4b4fc _objc_msgSend_uncached + 60
2 MobileRTC 0x103a34300 ios_getpid() + 324692
3 libdispatch.dylib 0x1a0cf3610 _dispatch_call_block_and_release + 24
4 libdispatch.dylib 0x1a0cf4184 _dispatch_client_callout + 16
5 libdispatch.dylib 0x1a0ca61d0 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1044
6 CoreFoundation 0x1a0fa43c4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
7 CoreFoundation 0x1a0f9f3b8 __CFRunLoopRun + 2004
8 CoreFoundation 0x1a0f9e8bc CFRunLoopRunSpecific + 464
9 GraphicsServices 0x1aae0a328 GSEventRunModal + 104
10 UIKitCore 0x1a50346d4 UIApplicationMain + 1936
11 StudioAppMentor 0x102d4955c main + 4376630620 (AppDelegate.swift:15)
12 libdyld.dylib 0x1a0e29460 start + 4

```

Here is our code for SDK authentication:

```auto
DispatchQueue.main.async {
      authenticateSDK()
 }

func authenticateSDK() {

        let zoomSDK = MobileRTC.shared()
        
        let context : MobileRTCSDKInitContext = MobileRTCSDKInitContext.init()
        context.domain = ZoomAPI.domain
        context.enableLog = true
        context.locale = MobileRTC_ZoomLocale.default
        
        let initializeSuc: Bool = MobileRTC.shared().initialize(context)
        print("initializeSuccessful======>", initializeSuc)
        print("MobileRTC Version:", MobileRTC.shared().mobileRTCVersion()!)
        
        guard let authService = zoomSDK.getAuthService() else { return }
        authService.delegate = self
        authService.clientKey = ZoomAPI.appKey
        authService.clientSecret = ZoomAPI.appSecret
        authService.sdkAuth()
    }

```

---

<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:** [December 17, 2019, 7:40am UTC](https://devforum.zoom.us/t/ios-getpid-crashes/7067/2 "2019-12-17T07:40:50Z")

</div>

Hi ssaylanc

This crash did happen in our SDK, could you please tell us that you are using xocde version and ios version to help us locate the problem.

Sorry~

---

<div class="post-metadata">

**Author:** ![ssaylanc](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ssaylanc/32/9765_2.png) [@ssaylanc](https://devforum.zoom.us/u/ssaylanc)\
**Post date:** [January 17, 2020, 3:40pm UTC](https://devforum.zoom.us/t/ios-getpid-crashes/7067/3 "2020-01-17T15:40:31Z")

</div>

Hi Li,

Xcode version is 11.3 iOS version 13.3.0. This happens when on video meeting.

Here is the crash log:

Crashed: com.apple.main-thread  
0 libobjc.A.dylib 0x19b7a2090 objc\_msgSend + 16  
1 MobileRTC 0x1030245bc ios\_getpid() + 390928  
2 MobileRTC 0x103024428 ios\_getpid() + 390524  
3 MobileRTC 0x103149494 TermSBPTUIModule(Cmm::ICmmMessageQueueClient\*) + 661952  
4 MobileRTC 0x1030056bc ios\_getpid() + 264208  
5 MobileRTC 0x1039d9728 TermSBPTUIModule(Cmm::ICmmMessageQueueClient\*) + 9641044  
6 MobileRTC 0x1039da768 TermSBPTUIModule(Cmm::ICmmMessageQueueClient\*) + 9645204  
7 MobileRTC 0x1039dc380 TermSBPTUIModule(Cmm::ICmmMessageQueueClient\*) + 9652396  
8 CoreFoundation 0x19b9fd03c **CFRUNLOOP\_IS\_CALLING\_OUT\_TO\_A\_TIMER\_CALLBACK\_FUNCTION** + 28  
9 CoreFoundation 0x19b9fcd78 \_\_CFRunLoopDoTimer + 880  
10 CoreFoundation 0x19b9fc448 \_\_CFRunLoopDoTimers + 276  
11 CoreFoundation 0x19b9f7584 \_\_CFRunLoopRun + 1920  
12 CoreFoundation 0x19b9f6adc CFRunLoopRunSpecific + 464  
13 GraphicsServices 0x1a597c328 GSEventRunModal + 104  
14 UIKitCore 0x19faf1ae0 UIApplicationMain + 1936  
15 Studio 0x10216f690 main + 21 (AppDelegate.swift:21)  
16 libdyld.dylib 0x19b880360 start + 4

---

<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:** [January 17, 2020, 7:25pm UTC](https://devforum.zoom.us/t/ios-getpid-crashes/7067/4 "2020-01-17T19:25:07Z")

</div>

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

Thanks for the reply and thanks for the info. I will pass this info to the engineering team and we will investigate this issue. Will get back to you shortly.

Thanks!

---

<div class="post-metadata">

**Author:** ![jon.flanders](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.flanders/32/10409_2.png) [@jon.flanders](https://devforum.zoom.us/u/jon.flanders)\
**Post date:** [June 12, 2020, 7:21pm UTC](https://devforum.zoom.us/t/ios-getpid-crashes/7067/5 "2020-06-12T19:21:58Z")

</div>

Is there any updates on this? I am having the same crash - Xcode 11.5 iOS 13.5.1.

SDK - ios-mobilertc-all-4.6.21666.0428-n

---

<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:** [June 17, 2020, 5:25am UTC](https://devforum.zoom.us/t/ios-getpid-crashes/7067/6 "2020-06-17T05:25:29Z")

</div>

Hi @jon.flanders,

Thanks for using Zoom SDK. Could you provide the following information:

1. Could you provide the full crash log so that we could further analyze it?
2. Could you provide the steps of how to reproduce this issue? What are the interfaces or the actions that are causing this crash?
3. What is the iOS device you are using?
4. Are you getting this crash in debug mode? Could you also provide the output of `bt` and `image list`?

Looking forward to hearing from you.

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:05pm UTC](https://devforum.zoom.us/t/ios-getpid-crashes/7067/7 "2020-08-21T22:05:16Z")

</div>

Closed on August 21, 2020, 10:05pm UTC


