App Crash happens

Hi @carson.zoom

Thanks for reply. this is really very helpful to me. Thank you :slight_smile:

Glad to be helpful. Happy zooming! :smiley:

Hi @carson.zoom,

Our client still reporting one issue in zoom call. We already discussed about that issue. The issue was

→ Our client said, we need to fix this issue. The exact problem is video not get enabled while device is locked state. So we need to start the video by manually.

So could you please tell me is there any alternate way to fix this issue ? and also please answer the following questions:

  1. is there possible to start/enable video manually ?
  2. is there possible to refresh/reload the meeting page ?
  3. is there possible to reset video section ? (like you already have the resetaudio function)

Thanks!

Hi @carson.zoom,

did you got any idea about my questions ?

Hi @saroroo123,

Thanks for the reply. Are you facing issues when integrating Zoom SDK with CallKit? Or just the video is not enabled while the screen is locked?

I believe the video is turned off when the screen is locked is expected behavior. This is to protect privacy. The behavior that I am seeing right now is:

  1. When I am in the meeting with video on, then lock the screen, the video is off
  2. When I unlocked the screen, the video turns back on again automatically.

So I don’t think it is possible to force the video to be on when the screen is locked. If I misunderstood your questions, could you provide some steps of how could I reproduce this with our demo so that we could better help?

Thanks!

Hi @carson.zoom

thanks for the reply. I think you misunderstand my question. let me explain the flow. I am using call kit for zoom call join meeting. The scenario is,

  1. Device is locked with passcode.

  2. Call kit initiates the screen. This screen,

  3. Now, please slide to answer

  4. Then You can see this screen,

  5. Now please tap the Patient app call because this is my app and it will launch our app.

  6. Once app launched then I will joins the meeting but the video button is gets disabled and Once I enable the video button then it will works fine.

NOTE: We are using VOIP process for call kit. Every user attends the call then it will goes to joins the zoom meeting.

Please check and share your thoughts :slight_smile:

Thanks !

@carson.zoom

2020-04-30 13:14:20.614022+0500 FocusPoint[5090:81862] old data has cpoied done
2020-04-30 13:14:20.616777+0500 FocusPoint[5090:81862] [logging-persist] cannot open file at line 43353 of [378230ae7f]
2020-04-30 13:14:20.617012+0500 FocusPoint[5090:81862] [logging-persist] os_unix.c:43353: (0) open(/Users/NxGeN/Library/Developer/CoreSimulator/Devices/E5D88330-EB7C-45A4-9E1A-F503DE2AF616/data/Containers/Data/Application/A84AD306-F434-46EA-8316-55E627D9B2D4/Documents/data/zoomus.tmp.db) - Undefined error: 0
2020-04-30 13:14:20.623571+0500 FocusPoint[5090:81862] [logging] table zoom_meet_participants already exists in “create table zoom_meet_participants (itemID integer64, name text, avatar text,snsID text, snsType integer, deviceID text,roleType integer);”
2020-04-30 13:14:20.626991+0500 FocusPoint[5090:81862] [logging] table zoom_kv already exists in “create table zoom_kv (key text, value text, section text);”
MobileRTC Version: Optional(“4.6.21666.0428”)
error was 0

When I clicks join meeting. The following error crashes my app.

MobileRTC.initialize(withDomain: kSDKDomain, enableLog: true)
MobileRTC.shared().setMobileRTCDomain(kSDKDomain)

Warnings on both lines with error:

2020-04-30 13:24:35.694209+0500 FocusPoint[5281:88329] -[FocusPoint.AppDelegate window]: unrecognized selector sent to instance 0x600002de8340
2020-04-30 13:24:35.759437+0500 FocusPoint[5281:88329] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[FocusPoint.AppDelegate window]: unrecognized selector sent to instance 0x600002de8340’
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23c7127e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff513fbb20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23c91fd4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 UIKitCore 0x00007fff480c0f17 -[UIResponder doesNotRecognizeSelector:] + 302
4 CoreFoundation 0x00007fff23c759f6 forwarding + 838
5 CoreFoundation 0x00007fff23c77f78 _CF_forwarding_prep_0 + 120
6 MobileRTC 0x0000000105864a65 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 812176
7 CoreFoundation 0x00007fff23b9b5bc CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
8 CoreFoundation 0x00007fff23b9aa35 _CFXRegistrationPost1 + 421
9 CoreFoundation 0x00007fff23b9a7a1 ___CFXNotificationPost_block_invoke + 193
10 CoreFoundation 0x00007fff23c988b3 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1811
11 CoreFoundation 0x00007fff23b9a0f6 _CFXNotificationPost + 950
12 MobileRTC 0x00000001056c5e4b _Z10ios_getpidv + 251173
13 MobileRTC 0x0000000105d33d6c _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 5855127
14 MobileRTC 0x0000000105d1877e _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 5743017
15 MobileRTC 0x0000000105d10095 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 5708480
16 MobileRTC 0x0000000105d0efc0 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 5704171
17 MobileRTC 0x0000000105d107b1 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 5710300
18 MobileRTC 0x0000000105e4bc2f _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 7001690
19 MobileRTC 0x000000010582ad04 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 575279
20 FocusPoint 0x0000000104f4b6ba $s10FocusPoint25MeetingZoomViewControllerC04joinC0yySSSgF + 3018
21 FocusPoint 0x0000000104f4aa1f $s10FocusPoint25MeetingZoomViewControllerC04joinC0yyypF + 1679
22 FocusPoint 0x0000000104f4aac0 $s10FocusPoint25MeetingZoomViewControllerC04joinC0yyypFTo + 80
23 UIKitCore 0x00007fff48093fff -[UIApplication sendAction:to:from:forEvent:] + 83
24 UIKitCore 0x00007fff47a6c00e -[UIControl sendAction:to:forEvent:] + 223
25 UIKitCore 0x00007fff47a6c358 -[UIControl _sendActionsForEvents:withEvent:] + 398
26 UIKitCore 0x00007fff47a6b2b7 -[UIControl touchesEnded:withEvent:] + 481
27 UIKitCore 0x00007fff480cebbf -[UIWindow _sendTouchesForEvent:] + 2604
28 UIKitCore 0x00007fff480d04c6 -[UIWindow sendEvent:] + 4596
29 UIKitCore 0x00007fff480ab53b -[UIApplication sendEvent:] + 356
30 UIKitCore 0x00007fff4812c71a __dispatchPreprocessedEventFromEventQueue + 6847
31 UIKitCore 0x00007fff4812f1e0 __handleEventQueueInternal + 5980
32 CoreFoundation 0x00007fff23bd4471 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
33 CoreFoundation 0x00007fff23bd439c __CFRunLoopDoSource0 + 76
34 CoreFoundation 0x00007fff23bd3b74 __CFRunLoopDoSources0 + 180
35 CoreFoundation 0x00007fff23bce87f __CFRunLoopRun + 1263
36 CoreFoundation 0x00007fff23bce066 CFRunLoopRunSpecific + 438
37 GraphicsServices 0x00007fff384c0bb0 GSEventRunModal + 65
38 UIKitCore 0x00007fff48092d4d UIApplicationMain + 1621
39 FocusPoint 0x0000000104f3ab1b main + 75
40 libdyld.dylib 0x00007fff5227ec25 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

Hi @carson.zoom,

did you get any info regarding my questions ?

Thanks!

Any update? @carson.zoom

Stuck on this error? No way out?
I am using XCODE Version 11.
MobileRTC Version: 4.6.21666.0428

2020-05-02 13:05:55.718193+0500 FocusPoint[2972:77869] old data has cpoied done
2020-05-02 13:05:55.723004+0500 FocusPoint[2972:77869] [logging-persist] cannot open file at line 43353 of [378230ae7f]
2020-05-02 13:05:55.723202+0500 FocusPoint[2972:77869] [logging-persist] os_unix.c:43353: (0) open(/Users/NxGeN/Library/Developer/CoreSimulator/Devices/34CDFEC9-AB76-4D53-AD3C-4C846AA3D6D5/data/Containers/Data/Application/31C4C9BC-BF0E-43CB-A854-894B06971FAA/Documents/data/zoomus.tmp.db) - Undefined error: 0
2020-05-02 13:05:55.730022+0500 FocusPoint[2972:77869] [logging] table zoom_meet_participants already exists in “create table zoom_meet_participants (itemID integer64, name text, avatar text,snsID text, snsType integer, deviceID text,roleType integer);”
2020-05-02 13:05:55.732570+0500 FocusPoint[2972:77869] [logging] table zoom_kv already exists in “create table zoom_kv (key text, value text, section text);”
MobileRTC Version: Optional(“4.6.21666.0428”)
error was 0
meetingNO: 1231231234
2020-05-02 13:06:06.786372+0500 FocusPoint[2972:77869] -[FocusPoint.AppDelegate window]: unrecognized selector sent to instance 0x600003a4c460
2020-05-02 13:06:06.851906+0500 FocusPoint[2972:77869] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[FocusPoint.AppDelegate window]: unrecognized selector sent to instance 0x600003a4c460’
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23c7127e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff513fbb20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23c91fd4 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 UIKitCore 0x00007fff480c0f17 -[UIResponder doesNotRecognizeSelector:] + 302
4 CoreFoundation 0x00007fff23c759f6 forwarding + 838
5 CoreFoundation 0x00007fff23c77f78 _CF_forwarding_prep_0 + 120
6 MobileRTC 0x0000000104a71a65 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 812176
7 CoreFoundation 0x00007fff23b9b5bc CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
8 CoreFoundation 0x00007fff23b9aa35 _CFXRegistrationPost1 + 421
9 CoreFoundation 0x00007fff23b9a7a1 ___CFXNotificationPost_block_invoke + 193
10 CoreFoundation 0x00007fff23c988b3 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1811
11 CoreFoundation 0x00007fff23b9a0f6 _CFXNotificationPost + 950
12 MobileRTC 0x00000001048d2e4b _Z10ios_getpidv + 251173
13 MobileRTC 0x0000000104f40d6c _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 5855127
14 MobileRTC 0x0000000104f2577e _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 5743017
15 MobileRTC 0x0000000104f1d095 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 5708480
16 MobileRTC 0x0000000104f1bfc0 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 5704171
17 MobileRTC 0x0000000104f1d7b1 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 5710300
18 MobileRTC 0x0000000105058c2f _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 7001690
19 MobileRTC 0x0000000104a37d04 _Z16TermSBPTUIModulePN3Cmm22ICmmMessageQueueClientE + 575279
20 FocusPoint 0x00000001041585f5 $s10FocusPoint25MeetingZoomViewControllerC04joinC0yySSSgF + 2773
21 FocusPoint 0x0000000104157a4f $s10FocusPoint25MeetingZoomViewControllerC04joinC0yyypF + 1679
22 FocusPoint 0x0000000104157af0 $s10FocusPoint25MeetingZoomViewControllerC04joinC0yyypFTo + 80
23 UIKitCore 0x00007fff48093fff -[UIApplication sendAction:to:from:forEvent:] + 83
24 UIKitCore 0x00007fff47a6c00e -[UIControl sendAction:to:forEvent:] + 223
25 UIKitCore 0x00007fff47a6c358 -[UIControl _sendActionsForEvents:withEvent:] + 398
26 UIKitCore 0x00007fff47a6b2b7 -[UIControl touchesEnded:withEvent:] + 481
27 UIKitCore 0x00007fff480cebbf -[UIWindow _sendTouchesForEvent:] + 2604
28 UIKitCore 0x00007fff480d04c6 -[UIWindow sendEvent:] + 4596
29 UIKitCore 0x00007fff480ab53b -[UIApplication sendEvent:] + 356
30 UIKitCore 0x00007fff4812c71a __dispatchPreprocessedEventFromEventQueue + 6847
31 UIKitCore 0x00007fff4812f1e0 __handleEventQueueInternal + 5980
32 CoreFoundation 0x00007fff23bd4471 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
33 CoreFoundation 0x00007fff23bd439c __CFRunLoopDoSource0 + 76
34 CoreFoundation 0x00007fff23bd3b74 __CFRunLoopDoSources0 + 180
35 CoreFoundation 0x00007fff23bce87f __CFRunLoopRun + 1263
36 CoreFoundation 0x00007fff23bce066 CFRunLoopRunSpecific + 438
37 GraphicsServices 0x00007fff384c0bb0 GSEventRunModal + 65
38 UIKitCore 0x00007fff48092d4d UIApplicationMain + 1621
39 FocusPoint 0x0000000104147b4b main + 75
40 libdyld.dylib 0x00007fff5227ec25 start + 1
41 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

Hi saroroo123,

Thanks for the detailed explanations. It looks like you are using Callkit to trigger your own app and then join a meeting. Please have a try to use the following interface to unmute the video after successfully join the meeting:

(MobileRTCVideoError)muteMyVideo:(BOOL)mute;

Hope this helps. Thanks!

Hi iqbalbhabha,

Thanks for the reply. Are you using MWPhotoBrowser? If yes, are you using the interface setSelected?

Thanks!

No I am not using any MWPhotoBrowser… I have an sdk which do not embeds in my build even.

Thanks for the reply. Could you provide a full .crash file so that we could further investigate?

Hi iqbalbhabha
Is there a method in your own project called “setSelected:”? If you try to change a method name to try it, because we used MWPhotoBrowser in our project, we can see that one of the methods in it is in conflict with yours

Hi @carson.zoom,

Thanks for the reply. it’s not working for me. Between could you reproduce this in your side ? and Because the problem is when the device is locked using pattern/face id and user gets the call using call kit means then user going to unlock the phone first. Once phone unlocked then the meeting gets started but problem is call kit displaying the another screen in order to open the app. In that screen camera is not opened and Meeting running on background. Once user taps on the App means then we can see the meeting window but video is disabled. so we need to refresh the meeting window OR we need to open the camera. So please share your thoughts about this.

Thanks!

Hi @carson.zoom,

Hope you are doing good. Did you got any info regarding my clarification ?

Thanks!

let context : MobileRTCSDKInitContext = MobileRTCSDKInitContext.init()
context.domain = "zoom.us"
context.enableLog = true
MobileRTC.shared().initialize(context)

use above code to set domain. Zoom not mentioned but there setDomain() method is deprecated.
SWIFT 4.2
IOS 13
This solves issue. thank you

@carson.zoom @saroroo123

Hi saroroo123,

Thanks for the reply and hope you are doing good as well. Unfortunately I do not have any updates regarding the issue you are facing right now. We have tried to reproduce the issue(not exactly the way you are doing but similar, implementing the way you are doing requires some additional efforts) you are facing but the interface I mentioned above works for us. It is an expected behavior to have the video off when the screen is locked, but the video should turn back on when the screen is unlocked. Not sure why you are not able to experience that. We will continue investigating this and see there is anything that we could find.

Thanks!

Hi sachinr,

Thanks for using Zoom SDK. Yes, the setDomain() interface has been deprecated. You may refer to the implementation in the demo app for this SDK initialization: https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/SDKPresenters/how_to_init_auth_sdk/how_to_init_sdk/SDKInitPresenter.m#L19

Thanks!