opentok / opentok-react-native

OpenTok React Native - a library for OpenTok iOS and Android SDKs
https://tokbox.com/
MIT License
209 stars 155 forks source link

[Android] App crash with error `ILLegal callback invocation from native module.` #639

Open kevin-mcs opened 1 year ago

kevin-mcs commented 1 year ago

Bug Report

Current behavior

Android app crashes whenever I try to Connect for video session in my application it crashes in sometimes.

Steps to reproduce

My Project version and package version "opentok-react-native": "0.20.4", "react": "17.0.2" "react-native": "0.68.2",

What is the current bug behavior?

Android app crashes whenever I try to Connect for video session in my application it crashes after some seconds with below error in Android studio log-cat.

FATAL EXCEPTION: mqt_native_modules
Process: com.fiverr.doctorapp, PID: 29657
java.lang.RuntimeException: ILLegal callback invocation from native module. This callback type only permits a single invocation from native code
    at com.facebook.react.bridge.CallbackImpl. invoke (CallbackImpl. java:26)
    at com.opentokreactnative.OTSessionManager.onConnected(OTSessionManager.java:593)
    at com.opentok.android.Session.c (Unknown Source:4)
    at com.opentok.android.Session.$r8$lambda$S(g80MmHLagUV9v3S490eoPGMuc(Unknown Source:0)
    at com. opentok.android.Session$$ExternalSyntheticLambda30.run(Unknown Source:2)
    at android.os.Handler.handleCallback(Handler.java:883)
    at android.os.Handler.dispatchMessage (Handler.java: 100)
    at android.os.Looper.Loop(Looper. java: 214)
    at com.facebook.react.bridge.queue.MessageQueueThreadImpL$4.run(MessageQueue

Relevant logs and/or screenshots

Screenshot 2023-01-09 at 3 27 27 PM

abdulajet commented 1 year ago

can you try the lastest version of the library please?

kevin-mcs commented 1 year ago

can you try the lastest version of the library please?

Yes I have tried with latest version also. But same issue is happening. @abdulajet

pietgk commented 9 months ago

any status update regarding this issue?

beHaze commented 1 week ago

We have released 2.27.6, try with this version. Please reach out to Vonage support (https://api.support.vonage.com/hc/en-us) if you’re still facing issues.