aws-samples / amazon-chime-react-native-demo

A React Native demo application for Android and iOS using the Amazon Chime SDK.
MIT No Attribution
100 stars 24 forks source link

Amazon Chime SDK integration crashes on android (React Native) #206

Open maksymdm opened 7 months ago

maksymdm commented 7 months ago

I'm trying to integrate Amazon Chime SDK 0.18.3 into the React Native app. I need both video and audio meetings. I used the demo from https://github.com/aws-samples/amazon-chime-react-native-demo as a reference. On iOS it works fine and without any issues. But on Android, it crashes when someone leaves the meeting with more than one attendee. All of the attendees have an active camera. When all attendees are in the meeting without an active camera the app doesn't crash.

Steps to reproduce the behaviour:

  1. Start a meeting
  2. Join several attendees from other devices or web
  3. Try to leave the meeting from another device or web
  4. Android app crashes

Environment: "react-native": "0.72.7" amazon-chime-sdk-media:0.18.3 amazon-chime-sdk:0.18.3

I'm facing this issue on all Android devices

In the logs I found the following: call to OpenGL ES API with no current context (logged once per thread) A java_vm_ext.cc:578] JNI DETECTED ERROR IN APPLICATION: JNI CallLongMethodV called with pending exception java.lang.IllegalArgumentException: Object is set to null. java_vm_ext.cc:578] at boolean android.opengl.EGL14.eglMakeCurrent(android.opengl.EGLDisplay, android.opengl.EGLSurface, android.opengl.EGLSurface, android.opengl.EGLContext) (EGL14.java:-2) java_vm_ext.cc:578] at java.lang.Object com.amazonaws.services.chime.sdk.meetings.internal.video.gl.DefaultEglRenderer$releaseEglSurface$1.invokeSuspend(java.lang.Object (DefaultEglRenderer.kt:139) java_vm_ext.cc:578] at void kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(java.lang.Object) (ContinuationImpl.kt:33) java_vm_ext.cc:578] at void kotlinx.coroutines.DispatchedTask.run() (DispatchedTask.kt:106) java_vm_ext.cc:578] at void android.os.Handler.handleCallback(android.os.Message(Handler.java:938) java_vm_ext.cc:578] at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:99) java_vm_ext.cc:578] at void android.os.Looper.loop() (Looper.java:246) java_vm_ext.cc:578] at void android.os.HandlerThread.run() (HandlerThread.java:67) java_vm_ext.cc:578] java_vm_ext.cc:578] in call to CallLongMethodV java_vm_ext.cc:578] from boolean android.opengl.EGL14.eglMakeCurrent(android.opengl.EGLDisplay, android.opengl.EGLSurface, android.opengl.EGLSurface, android.opengl.EGLContext)

I've tried different versions of the Amazon Chime SDK but still facing this issue.

stale[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.