iOS app crashing when we updated cometchat from 2.0.13 to 2.1.2 (or 2.1.3)

iOS app (caller) crashing when we updated cometchat from 2.0.13 to 2.1.2 (or 2.1.3):

*** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Invariant Violation: "CometChatRTCComponent" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called.', reason: 'Unhandled JS Exception: Invariant Violation: "CometChatRTCComponent" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. ..., stack:
runApplication@353:1948
<unknown>@7:1004
value@41:3685
<unknown>@41:841
value@41:2939
value@41:813
value@<null>:<null>

web application (our call recipient) was switched to use version 2.1.2

Hello @tomas_itcraft,

Can you please confirm that you have followed the steps mentioned in the react-native setup documentation?

React Native SDK Setup: https://prodocs.cometchat.com/docs/react-native-setup

Warm Regards,

CometChat Pro
Mayur Bhandari

@mayur.bhandari problem is on native iOS app with native CometChatPro 2.1.2 library

Hello @tomas_itcraft,

Okay got it. I have asked the iOS team to look into this and they will get back to you.

Warm Regards,

CometChat Pro
Mayur Bhandari

Hello @tomas_itcraft ,

Please upgrade to v2.1.3. It will resolve your issue.

Also, can you please let us know where the app is crashing exactly, like performing a call or in a messaging?

v 2.1.3 also crashing, but not immediately like version v 2.1.2 but after a few seconds - with the same error as above. the app crashes after establishing a video connection with the caller. in addition, on the iOS app I see 2x video preview of my camera instead of a video preview from the camera of the other participant

Hi @tomas_itcraft,

I have checked the same in our iOS Swift Chat app and everything is working as expected. Here is the link of our iOS Swift Chat app:

I have checked this logging in with two devices and then having a call between them. User A logged into one device and user B in another and then user A called user B. Call was connected and everything was working fine.

Can you share the video so that we can have better understanding of the issue faced.

Regards,
Jeet Kapadia

Hello,

as I said we use iOS application / Android application as a caller and web application as a recipient. On the web app, we have version 2.1.2 of your software and on the iOS app, we had also version 2.1.2. The app also crashing on version 2.1.3 (the same reason).

I tested it on simulators and real devices with iOS 13 and iOS 14.

Video: https://www.dropbox.com/s/mpmn2pjmzhb05l9/cometchat.mov?dl=0

Hi @tomas_itcraft,

Thank you for sharing the video. Our team is looking into it. We will get back to you once we have an update on the same.

Regards,
Jeet Kapadia

Hi @tomas_itcraft

Can you please deintegrate the pod and delete the podlock.file and xcworkspace and then do a pod install since this issue has been fixed in 2.1.3. Do let us know if you still face any issue

Thanks
Nishant Tiwari

It’s not crashing after call but I don’t see see the other interlocutor but only myself

after click on view marked in the screen below:

app crashes:

Exception NSException * "Unhandled JS Exception: TypeError: null is not an object (evaluating 'N.pinParticipant'), stack:\n<unknown>@497:12391\n<unknown>@494:573\n<unknown>@<null>:<null>\nonPress@494:2412\ntouchableHandlePress@216:2188\ntouchableHandlePress@<null>:<null>\n_performSideEffectsForTransition@206:9621\n_performSideEffectsForTransition@<null>:<null>\n_receiveSignal@206:8357\n_receiveSignal@<null>:<null>\ntouchableHandleResponderRelease@206:5645\ntouchableHandleResponderRelease@<null>:<null>\nb@96:1197\nk@96:1340\nC@96:1394\nN@96:1692\nA@96:2482\nforEach@<null>:<null>\nz@96:2282\n<unknown>@96:13914\n_e@96:88659\nNe@96:13582\nUe@96:13755\nreceiveTouches@96:14547\nvalue@37:3685\n<unknown>@37:841\nvalue@37:2939\nvalue@37:813\nvalue@<null>:<null>\n" 0x00000002836251a0

Hi @tomas_itcraft

We recommend you to use 2.1.3 as this issue has already been fixed in 2.1.3 Please let us know if you still face the same issue

Thanks
Nishant Tiwari

this crash is from version 2.1.3

Why do I see myself on the web app and the OS app, not the second person?

Hello @tomas_itcraft,

Can you please check if there are any console errors on the web? It looks like the call is not getting connected for some reason. It would be helpful if you could share the error logs in the console if any.

Warm Regards,

CometChat Pro
Mayur Bhandari

Today we get another crash:

https://paste.ofcode.org/Eww9vG8erybzMEzA7rVGVm

Hello,
I am trying to update CometChat and establish successful video call with a bit of @tomas_itcraft support.

Above issues still occurs on 2.1.3 version of the SDK, but it happens significant less often on CometChatUIKit version 2.1.7, so this is kind of success.

However after update https://github.com/cometchat-pro/ios-swift-chat-ui-kit to the newest version, 2.1.7 I faced issue related to video.

Below screenshot is from iOS device that calls to Web. As you can see main video is empty. Miniature is ok.

I tried to change mode:

CometChatPro.CometChat.CallMode

from default:

self.callSetting = CallSettings.CallSettingsBuilder(callView: self.view, sessionId: session).setMode(mode: .MODE_SINGLE).build()

to:

self.callSetting = CallSettings.CallSettingsBuilder(callView: self .view, sessionId: session).setMode(mode: .MODE_SPOTLIGHT).build()

And I got good effect with visible video.

This is one of the critical issues. Mode “MODE_SINGLE” doesn’t work properly.

Further, after clicking on the “end” button I very often got the same JavaScript error like @tomas_itcraft posted above.

Also, as you can see my face from camera is visible on two views - main and miniature. This is also not correct behavior and that’s big blocker for us. This is the most priority for us.

@mayur.bhandari you asked about logs from the Web, here you are (I erased sensitive logs, but completely useless for you):

(my post is separated for 3 single, because “new users can’t add post with more than one photo” :slight_smile:)

Our Web is on newest 2.1.2 version from https://www.npmjs.com/package/@cometchat-pro/chat/v/2.1.2