opentok / opentok-react-native

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

Fatal Exception: java.lang.RuntimeException: eglCreateWindowSurface: EGL error: 0x3003 #588

Closed Panda-ref closed 3 months ago

Panda-ref commented 2 years ago

Bug Report

"opentok-react-native": "^0.20.1",
com.opentok.android:opentok-android-sdk:2.21.4

Relevant logs and/or screenshots

Fatal Exception: java.lang.RuntimeException: eglCreateWindowSurface: EGL error: 0x3003
       at com.opentok.android.grafika.gles.EglCore.a(:35)
       at com.opentok.android.grafika.gles.EglCore.a(:50)
       at com.opentok.android.grafika.gles.a.a(:8)
       at com.opentok.android.grafika.gles.WindowSurface.<init>(:3)
       at com.opentok.android.TextureViewRenderer$Renderer.run(:16)
Device
Brand:samsung
Model:Galaxy Fold
Orientation: Portrait
RAM free: 4.06 GB
Disk free: 437.98 GB
Operating System
Version:Android 12
Orientation: Portrait
Rooted:No
enricop89 commented 2 years ago

Can you provide steps to reproduce please?

vineus commented 2 years ago

hey @enricop89 !

I have the same issue, on Android, when the component is umounted:

10-27 16:26:24.794 26488 27125 E AndroidRuntime: FATAL EXCEPTION: Thread-46
10-27 16:26:24.794 26488 27125 E AndroidRuntime: Process: com.alan.mind.app.debug, PID: 26488
10-27 16:26:24.794 26488 27125 E AndroidRuntime: java.lang.RuntimeException: invalid surface: null
10-27 16:26:24.794 26488 27125 E AndroidRuntime:        at com.opentok.android.grafika.gles.EglCore.a(Unknown Source:28)
10-27 16:26:24.794 26488 27125 E AndroidRuntime:        at com.opentok.android.grafika.gles.a.a(Unknown Source:8)
10-27 16:26:24.794 26488 27125 E AndroidRuntime:        at com.opentok.android.grafika.gles.WindowSurface.<init>(Unknown Source:3)
10-27 16:26:24.794 26488 27125 E AndroidRuntime:        at com.opentok.android.TextureViewRenderer$Renderer.run(Unknown Source:16)

package version: opentok-react-native: 0.20.4

I have it only when

    <OTSession
   ....
         options={{ androidOnTop: "publisher", useTextureViews: true }}

if I remove useTextureViews: true: no issue

devwithzachary commented 1 year ago

Thank you for this, have you tested against the latest package version? 0.21.1

vineus commented 1 year ago

Thank you for this, have you tested against the latest package version? 0.21.1

yes, same behavior on "opentok-react-native": "0.21.1"

pietgk commented 1 year ago

any status update?

beHaze commented 3 months ago

Please reach out to Vonage support (https://api.support.vonage.com/hc/en-us) if you’re still facing issues.