Closed tomek29k closed 4 years ago
@enricop89 Enrico, can you pass this bug to OpenTok SDK team? I'd say it's pretty severe. Thanks!
Any updates on this? I am having the same issue.
I have the same issues with the same RN red-box error and traceback.
It happens ONLY while disconnecting the session that has screen sharing subscriber.
Maybe because I use this branch https://github.com/ggoldens/opentok-react-native/tree/fix-destroy-publisher (current master branch on opentok-react-natvie
has issues on Android)
On the screenshot - Java row that triggers the crash.
@ggoldens do you need more feedback?
I have the same issue, like @tomek29k mentioned.
opentok-android-sdk@2.16.2
opentok-react-native@0.12.1
Currently I implemented Live-Room-Video-Chat (one-to-one).
<OTSession
ref={this.otSessionRef}
apiKey={roomInfo.apiKey}
sessionId={roomInfo.sessionId}
token={roomInfo.token}
eventHandlers={this.sessionEventHandlers}
>
<View style={{ flex: 5}}>
<OTPublisher
properties={this.publisherProperties}
eventHandlers={this.publisherEventHandlers}
style={{ flex: 1 }}
/>
</View>
<View
onLayout={event => {
this.find_dimesions(event.nativeEvent.layout);
}}
style={{ flex: 5 }}
>
<OTSubscriber
properties={this.subscriberProperties}
eventHandlers={this.subscriberEventHandlers}
style={{ flex: 1 }}
streamProperties={this.state.streamProperties}
/>
</View>
</OTSession>
Above example code disconnect guest session using signal from owner and working fine.
<OTSession
ref={this.otSessionRef}
apiKey={roomInfo.apiKey}
sessionId={roomInfo.sessionId}
token={roomInfo.token}
eventHandlers={this.sessionEventHandlers}
>
<View style={{ flex: 5}}>
// Creating another Virtual Publisher
<OTPublisher
properties={this.virtualPublisherProperties}
eventHandlers={this.virtualPublisherEventHandlers}
style={{ height: 0, overflow: 'hidden', }}
/>
<OTPublisher
properties={this.publisherProperties}
eventHandlers={this.publisherEventHandlers}
style={{ flex: 1 }}
/>
</View>
<View
onLayout={event => {
this.find_dimesions(event.nativeEvent.layout);
}}
style={{ flex: 5 }}
>
<OTSubscriber
properties={this.subscriberProperties}
eventHandlers={this.subscriberEventHandlers}
style={{ flex: 1 }}
streamProperties={this.state.streamProperties}
/>
</View>
</OTSession>
Above example code, after trying to create a new virtual publisher(attempt to streaming external music in to session) disconnect guest session using signal from owner and produce error:
i have the same issues. Any Updates?
As a workaround edit node_module/opentok-react-native/andorid/build.gradle
,
and change the line from
implementation 'com.opentok.android:opentok-android-sdk:2.16.1
to
implementation 'com.opentok.android:opentok-android-sdk:2.16.2
It is causing the crash because the react version still using an older native SDK. The newest SDK has fixed the crashing problem. see link
As a workaround edit
node_module/opentok-react-native/andorid/build.gradle
, and change the line fromimplementation 'com.opentok.android:opentok-android-sdk:2.16.1
toimplementation 'com.opentok.android:opentok-android-sdk:2.16.2
It is causing the crash because the react version still using an older native SDK. The newest SDK has fixed the crashing problem. see link
@aslampr07 I already use v2.16.2
. Yes, it helps, but still there is a crash while disconnecting the session that has screen sharing subscriber.
@ASerga can you please checkout the branch '0.12.2' of this repository I think they have fixed the issue, but haven't merged with the master branch.
@aslampr07 I have tried. It didn't help.
Hello guys, apologize for the inconveniences and the delay on this. It looks that there's an issue on the native SDK. I am able to reproduce this issue with a pure android app. I just reported it to the native team. Will keep you posted.
Thanks for reporting!
@ggoldens We seem to experience this problem all the time. Any updates? :pray:
@ggoldens We seem to experience this problem all the time. Any updates? 🙏
Yes, It's really critical :( @ggoldens is there an issue in Opentok Android SDK?
We released today Android SDK 2.16.3 patch. Please try to update the version on android/build.gradle file and test the issue.
Tried updating versions, still having problems:
React Native version: 0.59.5 opentok-react-native version: 0.12.1 OpenTok Android SDK version: 2.16.3
Throws an error for OTSession connect expecting 3 arguments and instead receiving 2.
https://github.com/opentok/opentok-react-native/issues/366#issuecomment-562043082
Can you guys test the branch 0.12.2? If you see it ok I'll push it asap. Thanks!
FYI v0.12.2 it's released. Please confirm us if you still see the issue. Thanks!
It seems SDK 2.16.3 has solved the problem for us, haven't tried v0.12.2 yet but will try today. Many thanks @ggoldens!
Thanks for the feedback @tomek29k !
Will close this issue since it seems to be solved using the latest android SDK.
Bug Report
Android (Galaxy S9):
opentok-android-sdk@2.16.2
opentok-react-native@0.12.1
Current behavior
Steps to reproduce
Relevant logs and/or screenshots