Ios_getpid() crashes

Hi,

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

Crash log:

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:

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()
    }

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~

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

Hi 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!

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

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!