Video SDK Type and Version
Zoom Video SDK for iOS, version 1.7.5.
Description
The iOS app unexpectedly closes when the host, from a web portal, ends the session for all participants, displaying the error “Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)”. The issue started occurring from version 1.6.2 of the SDK.
Error
“Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)”
Troubleshooting Routes
I updated the Zoom Video SDK for iOS from version 1.6.1 to version 1.7.5 and made adjustments to my implementation to adapt to the differences between the SDK versions. I reviewed the Xcode logs. The issue occurs on all iOS versions.
How To Reproduce
Steps to reproduce the behavior:
- Authentication through an iOS app.
- Initialize the SDK.
- Join a session.
- Connect the video call.
- The host ends the session for all participants from a web portal.
- Error: “Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)”
Client
iOS app developed with Xcode version 14.3 (14E222b), using Swift 5 on a Mac with an M1 chip.
Additional Information
In the web portal: when ending or leaving the session, it seems that the iOS app does not detect that the session has been ended and fails immediately. The corresponding line of code on the web platform is: await zmClient.leave(true);.
In the iOS app: when leaving the session, the app closes without triggering any SDK callback. The line of code related to ending the session on iOS is: ZoomVideoSDK.shareInstance()?.leaveSession(true).
To assist in the investigation, I am attaching the Xcode logs where the error occurs.
2023-04-28 09:18:10.056385-0600 AppName[435:7003] UIDevice generateDeviceIdentifier: 70E438AD-E174-4936-AB8A-5AB1AE09CABF[package.id]
2023-04-28 09:18:10.084610-0600 AppName[435:7003] Metal API Validation Enabled
Thread Performance Checker: -[AVCaptureSession startRunning] should be called from background thread. Calling it on the main thread can lead to UI unresponsiveness
PID: 435, TID: 7003
Backtrace
=================================================================
15 AppName 0x0000000104ca5874 $s14VideoSDKCenter04CallA10ControllerC19suscribeLocalCanvasyySo04ZoomA7SDKUserCF + 384
16 AppName 0x0000000104ca8188 $s14VideoSDKCenter04CallA10ControllerC11joinSession7requestyAA04JoinA7RequestV_tF + 732
17 AppName 0x0000000104c9cbbc $s14VideoSDKCenterAAC11joinSession11sessionName0E8Password04userF09signatureySS_S3StF + 116
18 AppName 0x000000010498722c $s7AppName23VideoCallMedicViewModelC14successInitSDKyyF + 424
19 AppName 0x00000001049882f4 $s7AppName23VideoCallMedicViewModelC0B9SDKCenter0cB8DelegateAadEP14successInitSDKyyFTW + 20
20 AppName 0x0000000104ca5fc4 $s14VideoSDKCenter04CallA10ControllerC11setupParamsyySo04Zooma7SDKInitF0CF + 744
21 AppName 0x0000000104ca7e84 $s14VideoSDKCenter04CallA10ControllerC10initialize7context8delegate15instanceSDKInitySo06UIViewD0C_AA0cA8Delegate_pSgSbtF + 408
22 AppName 0x0000000104c9dbfc $s14VideoSDKCenterAAC10initialize7context8delegate15instanceSDKInitySo16UIViewControllerC_AA04CallA8Delegate_pSbtFTf4nenn_n + 128
23 AppName 0x0000000104985b30 $s7AppName23VideoCallMedicViewModelC04initE033_9BD463378858D236FA4D62D8FA246878LLyyF + 364
24 AppName 0x0000000104985580 $s7AppName23VideoCallMedicViewModelC7triggeryyAA0bcD5InputOF + 580
25 AppName 0x0000000104a7f364 $s7AppName12AnyViewModelCyACyxq_Gqd__c5StateQyd__Rsz5InputQyd__Rs_AA0cD0Rd__lufcyq_cqd__cfu_yq_cfu0_AA014VideoCallMedicE0V_AA0ghiF0OAA0ghicD0CTG5TA + 28
26 AppName 0x0000000104a7b718 $s7AppName13VideoCallViewV4bodyQrvg7SwiftUI05TupleD0VyAE0D0PAEE15ignoresSafeArea_5edgesQrAE0jK7RegionsV_AE4EdgeO3SetVtFQOyAE5ColorV_Qo__AiEE0l8IgnoringjK0yQrAQFQOyAS_Qo_AiAE12customDialog19presentationManagerQrAA0S12PresentationC_tFQOyAiEE19navigationBarHiddenyQrSbFQOyAiEE0W5TitleyQrAE18LocalizedStringKeyVFQOyAiEE8onChange2of7performQrqd___yqd__ctSQRd__lFQOyAiEEA3_A4_A5_Qrqd___yqd__ctSQRd__lFQOyAiEEA3_A4_A5_Qrqd___yqd__ctSQRd__lFQOyAiEEA3_A4_A5_Qrqd___yqd__ctSQRd__lFQOyAiEEA3_A4_A5_Qrqd___yqd__ctSQRd__lFQOyAiEEA3_A4_A5_Qrqd___yqd__ctSQRd__lFQOyAiEE11onDisappearA5_QryycSg_tFQOyAiEE8onAppearA5_QrA7__tFQOyAE6ZStackVyAGyA10_yAGyAiEEAUyQrAQFQOyAA06CustomD0V_Qo__AE6VStackVyAGyAE6HStackVyAGyAE6SpacerV_AiEE5frame5width6height9alignmentQr12CoreGraphics7CGFloatVSg_A27_AE9AlignmentVtFQOyA12__Qo_A30_SgtGG_A19_tGGtGG_A15_yAGyAiEE12onTapGesture5countA5_QrSi_yyctFQOyAiEE7paddingyQrAE0N6InsetsVFQOyA17_yAGyAiEEA20_A21_A22_A23_QrA27__A27_A29_tFQOyAiEE010foregroundP0yQrASSgFQOyAiEEA20_A21_A22_A23_QrA27__A27_A29_tFQOyAE4TextV_Qo__Qo__Qo__AE15ModifiedContentVyA46_AA15NormalTextStyleVGA19_tGG_Qo__Qo__A19_tGGAiEEA40_yQrAQ_A27_tFQOyA15_yAGyA19__A10_yAGyA17_yAGyAiEEA40_yQrAQ_A27_tFQOyA15_yAGyA19__A54_tGG_Qo__A19_A15_yAGyA19__AE19_ConditionalContentVyAA12SquareButtonVA67_GA68_tGGtGG_AiAE2if_9transformQrSb_qd__xXEtAeHRd__lFQOyAA04ChatD0V_AiEE6hiddenQryFQOyA76__Qo_Qo_tGGSgA17_yAGyA65_yA67_AiAEA73__A74_QrSb_qd__xXEtAeHRd__lFQOyA67__A51_yA67_AA9BadgeIconVGQo_G_A19_AiEEA38_A39_A5_QrSi_yyctFQOyAiEEA20_A21_A22_A23_QrA27__A27_A29_tFQOyAiEE11scaledToFitQryFQOyAE5ImageV_Qo__Qo__Qo_A19_A15_yA68_GtGGSgtGG_Qo_AVSgtGG_Qo__Qo__SbQo__SbQo__SiQo__SbQo__SbQo__SbQo__Qo__Qo__Qo_tGyXEfU_yycfU0_ + 1364
27 SwiftUI 0x00000001b9ca0204 97BF1FCA-EFD2-32A1-AEC7-999B4B973870 + 410116
28 SwiftUI 0x00000001b9cfd438 97BF1FCA-EFD2-32A1-AEC7-999B4B973870 + 791608
29 SwiftUI 0x00000001b9c564ac 97BF1FCA-EFD2-32A1-AEC7-999B4B973870 + 107692
30 SwiftUI 0x00000001b9cdce44 97BF1FCA-EFD2-32A1-AEC7-999B4B973870 + 659012
31 SwiftUI 0x00000001b9c65d74 97BF1FCA-EFD2-32A1-AEC7-999B4B973870 + 171380
32 SwiftUI 0x00000001b9c67d00 97BF1FCA-EFD2-32A1-AEC7-999B4B973870 + 179456
33 UIKitCore 0x00000001b852e260 45D3E653-D22E-33DA-9184-D4F88D330C29 + 16992
34 QuartzCore 0x00000001b7a35008 942BCC01-4E92-3EAD-945F-16B85E83D834 + 40968
35 QuartzCore 0x00000001b7a47928 942BCC01-4E92-3EAD-945F-16B85E83D834 + 117032
36 QuartzCore 0x00000001b7a583ec 942BCC01-4E92-3EAD-945F-16B85E83D834 + 185324
37 QuartzCore 0x00000001b7a8574c 942BCC01-4E92-3EAD-945F-16B85E83D834 + 370508
38 QuartzCore 0x00000001b7a70788 942BCC01-4E92-3EAD-945F-16B85E83D834 + 284552
39 CoreFoundation 0x00000001b6619a58 3F529C4A-5003-3E5D-84F7-03806108055E + 563800
40 CoreFoundation 0x00000001b65a968c 3F529C4A-5003-3E5D-84F7-03806108055E + 104076
41 CoreFoundation 0x00000001b6605384 3F529C4A-5003-3E5D-84F7-03806108055E + 480132
42 CoreFoundation 0x00000001b6609e90 CFRunLoopRunSpecific + 584
43 GraphicsServices 0x00000001ed721998 GSEventRunModal + 160
44 UIKitCore 0x00000001b889abb8 45D3E653-D22E-33DA-9184-D4F88D330C29 + 3607480
45 UIKitCore 0x00000001b889a830 UIApplicationMain + 312
46 AppName 0x00000001049215cc main + 68
47 dyld 0x00000001d3d0f344 10671D12-14D8-3A30-B780-7917E8BC185E + 82756
2023-04-28 09:18:10.756416-0600 AppName[435:7944] fopen failed for data file: errno = 2 (No such file or directory)
2023-04-28 09:18:10.756522-0600 AppName[435:7944] Errors found! Invalidating cache...
error was 0
onChatNewMessageNotify
2023-04-28 09:18:13.481522-0600 AppName[435:7003] CreateAudioUnit use hardware aec = 1
2023-04-28 09:18:14.117521-0600 AppName[435:7003] [IOS].CreateAudioUnit g_audioUinits.count = 1
2023-04-28 09:18:14.118080-0600 AppName[435:7003] AudioDeviceIOS::SetMuteOutputAudioUnit unmute output
2023-04-28 09:18:14.724126-0600 AppName[435:7003] AudioDeviceIOS::SetMuteOutputAudioUnit can mute = 1
2023-04-28 09:18:14.725417-0600 AppName[435:7003] AudioDeviceIOS::SetMuteOutputAudioUnit can mute = 1
2023-04-28 09:18:14.748953-0600 AppName[435:7003] AudioDeviceIOS::SetMuteOutputAudioUnit can mute = 1
onSessionJoin
onUserJoin
onUserAudioStatusChanged
onUserVideoStatusChanged
onCmdChannelConnectResult
onCommandReceived
onChatNewMessageNotify
Pedro Enrique Ortiz Chi sent a message: Llamada enlazada con el paciente
2023-04-28 09:18:24.783904-0600 AppName[435:7003] AudioDeviceIOS::SetMuteOutputAudioUnit unmute output
onUserAudioStatusChanged
Successfully registered font: material-design-icons
onCommandReceived
onUserVideoStatusChanged
onUserActiveAudioChanged
Folio: QA7194377 began talking.
onUserVideoStatusChanged
onUserVideoStatusChanged
onUserActiveAudioChanged
Folio: QA7194377 began talking.
onUserActiveAudioChanged
Folio: QA7194377 began talking.
onUserActiveAudioChanged
Folio: QA7194377 began talking.
onUserActiveAudioChanged
Folio: QA7194377 began talking.
onUserActiveAudioChanged
Folio: QA7194377 began talking.```