App Crash happens

Hi @Carson_Chen

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_Chen

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_Chen,

did you get any info regarding my questions ?

Thanks!

Any update? @Carson_Chen

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_Chen,

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_Chen,

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_Chen @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!

Hi @Carson_Chen,

Thanks for the reply, Yes regarding your reply “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.” this what current i am facing issue like camera is disabled when device locked but when I unlock the device and going to meeting window page still camera/video is not get turned back on automatically. I need to enable the start video button at bottom manually. It’s really strange issue. Please investigate in your side. Hope good news will come soon. Thanks in advance :slight_smile:

Hi @saroroo123,

Thanks for the reply. Understand. Currently, the roadblock is we are not able to observe the same situation as you are experiencing. And normally even if the camera is off, using the muteMyVideo should turn the camera back on. Not sure why you are experiencing a different situation. We will continue to investigate this. Will keep you posted.

Thanks!

Hi @Carson_Chen

Thanks for the info.

Let us know if you have additional questions! :slight_smile:

-Tommy

Hi @tommy, @Carson_Chen

Currently our backend team facing one issue while creating meeting. Our backend team set the settings as,
host_video: "false"
participant_video: "false"

while creating the meeting. For hide the video for meetings in meeting window. But video is not getting hided. We check the zoom response log and we got the zoom response as,

host_video: "true"
participant_video: "true"

how this is possible ? because we are requesting the video’s are false but we got video as true from zoom log’s.

Here is the request and response log’s

REQUEST

{
“topic”: “My Meeting”,
“type”: “2”,
“password”: “IpBx31Re3W”,
“settings”: {
“host_video”: false,
“participant_video”: false,
“join_before_host”: true,
“use_pmi”: false,
“audio”: “both”
}
}

RESPONSE

{
“uuid”: “iJ7zFoaORUqNQ+uWg/0DdQ==”,
“id”: 92513720725,
“host_id”: “_eirdsOCSa-Dp-ftMzgd3g”,
“topic”: “My Meeting”,
“type”: 2,
“status”: “waiting”,
“start_time”: “2020-06-04T16:11:11Z”,
“duration”: 60,
“timezone”: “Asia/Kolkata”,
“created_at”: “2020-06-04T16:11:11Z”,
“start_url”: “https://CARE.zoom.us/s/92513720725?zak=eyJ6bV9za20iOiJ6bV9vMm0iLCJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJjbGllbnQiLCJ1aWQiOiJfZWlyZHNPQ1NhLURwLWZ0TXpnZDNnIiwiaXNzIjoid2ViIiwic3R5IjoxMDAsIndjZCI6ImF3MSIsImNsdCI6MCwic3RrIjoiZmhjd2FKaGpyN0FqMGs1U3lVRExhd3VtMXVaMVcxWlRMTmhHdlpzWHZhTS5CZ1VnVGxCbFdHMXdWVU52VmtSREswdDVVRkZuUm1sd2J6TTRURTVXVkhsWVoybEFZakExTURnNU1UZzRNalJsTldVelltTTFNRFJtTUdWalkyVTVZek5sT1RRNU5UWmhOVEEyT0RjM1lUWXlOakZqT1RVMVpqQTBPRFZrTURabE9UTm1Nd0FNTTBOQ1FYVnZhVmxUTTNNOUFBTmhkekUiLCJleHAiOjE1OTEyOTQyNzEsImlhdCI6MTU5MTI4NzA3MSwiYWlkIjoiUlFsRDZNZGZRbU9mOFhqTkFIQldvQSIsImNpZCI6IiJ9.ei3PPxsqCdfq3YiPQ5jD_USEPsfemP45TJj-8lNWgRQ”,
“join_url”: “https://CARE.zoom.us/j/92513720725?pwd=T3lJdlVUVlFNbzkybHlUVTl2ME9kUT09”,
“password”: “IpBx31Re3W”,
“h323_password”: “348342”,
“pstn_password”: “348342”,
“encrypted_password”: “T3lJdlVUVlFNbzkybHlUVTl2ME9kUT09”,
“settings”: {
“host_video”: true,
“participant_video”: true,
“cn_meeting”: false,
“in_meeting”: false,
“join_before_host”: true,
“mute_upon_entry”: false,
“watermark”: false,
“use_pmi”: false,
“approval_type”: 2,
“audio”: “both”,
“auto_recording”: “none”,
“enforce_login”: false,
“enforce_login_domains”: “”,
“alternative_hosts”: “”,
“close_registration”: false,
“registrants_confirmation_email”: true,
“waiting_room”: false,
“global_dial_in_countries”: [“US”],
“global_dial_in_numbers”: [{
“country_name”: “US”,
“city”: “San Jose”,
“number”: “+1 6699006833”,
“type”: “toll”,
“country”: “US”
}, {
“country_name”: “US”,
“city”: “Tacoma”,
“number”: “+1 2532158782”,
“type”: “toll”,
“country”: “US”
}, {
“country_name”: “US”,
“city”: “Germantown”,
“number”: “+1 3017158592”,
“type”: “toll”,
“country”: “US”
}, {
“country_name”: “US”,
“city”: “Chicago”,
“number”: “+1 3126266799”,
“type”: “toll”,
“country”: “US”
}, {
“country_name”: “US”,
“city”: “Houston”,
“number”: “+1 3462487799”,
“type”: “toll”,
“country”: “US”
}, {
“country_name”: “US”,
“city”: “New York”,
“number”: “+1 6468769923”,
“type”: “toll”,
“country”: “US”
}, {
“country_name”: “US”,
“city”: “”,
“number”: “+1 8887880099”,
“type”: “tollfree”,
“country”: “US”
}, {
“country_name”: “US”,
“city”: “”,
“number”: “+1 8335480276”,
“type”: “tollfree”,
“country”: “US”
}, {
“country_name”: “US”,
“city”: “”,
“number”: “+1 8335480282”,
“type”: “tollfree”,
“country”: “US”
}, {
“country_name”: “US”,
“city”: “”,
“number”: “+1 8778535247”,
“type”: “tollfree”,
“country”: “US”
}],
“registrants_email_notification”: true,
“meeting_authentication”: false
}
}

Please check it and let us know your response as soon as possible, Because our live user’s facing this problem.

Thanks!