opentok / opentok-android-sdk-samples

Sample applications illustrating best practices using OpenTok Android SDK.
https://tokbox.com/developer/sdks/android/
MIT License
210 stars 169 forks source link

Crash issue EglCore #459

Closed wlTrunks closed 1 year ago

wlTrunks commented 1 year ago

Describe the bug Where is a crashes in the sdk

To Reproduce 1.Start session 2.Start camera

Expected behavior Not crashing

Device (please compete the following information):

Additional context Last Exception Backtrace: java.lang.RuntimeException java.lang.RuntimeException: invalid surface: null 0 com.opentok.android.grafika.gles.EglCore.a(SourceFile:0) 1 com.opentok.android.grafika.gles.a.a(SourceFile:0) 2 com.opentok.android.grafika.gles.WindowSurface.<init>(SourceFile:0) 3 com.opentok.android.TextureViewRenderer$Renderer.run(SourceFile:0) STREAMLAYE-81-qppbHVZLOTMBpDCSyaZ-callstack.txt

jintgeorge commented 1 year ago

@wlTrunks Can you please try with the latest SDK version.

alexmprog commented 1 year ago

@jintgeorge Issue was reproduced on OpenTok Android SDK | Version/Revision: android-2.25.0/d4431ca9bcd213d5f2faa19289fa919cfeac7e97 --- same stacktrace:


java.lang.RuntimeException: invalid surface: null
--

1 |   | com.opentok.android.grafika.gles.EglCore.a (SourceFile:)
2 |   | com.opentok.android.grafika.gles.a.a (SourceFile:)
3 |   | com.opentok.android.grafika.gles.WindowSurface.<init> (SourceFile:)
4 |   | com.opentok.android.TextureViewRenderer$Renderer.run (SourceFile:)
v-kpheng commented 1 year ago

@alexmprog, the latest version is 2.25.2. Can you try on that please? Thanks!

ivgvard commented 1 year ago

Describe the bug: Periodically appear error during start a video call. Added log screen from success and error case, if it help.

error success

Devices:

xiaomi:redmi:note-9-pro android:31
version: opentok-android-sdk:2.25.2

samsung:SM-A515F android:33
version: opentok-android-sdk:2.25.2

samsung:SM-G990B android:33
version: opentok-android-sdk:2.25.2

samsung:SM-S918B android:33
version: opentok-android-sdk:2.25.2

Sony:XQ-CC54 android:33
version: opentok-android-sdk:2.25.2 

FATAL EXCEPTION: Thread-30

Process: PID:
java.lang.RuntimeException: invalid surface: null at com.opentok.android.grafika.gles.EglCore.a(Unknown Source:30) at com.opentok.android.grafika.gles.a.a(Unknown Source:8) at com.opentok.android.grafika.gles.WindowSurface.(Unknown Source:3) at com.opentok.android.TextureViewRenderer$Renderer.run(Unknown Source:16)

vphuong1205 commented 4 months ago

I am facing the same issue here for some user from Play store with opentok-android-sdk:2.26.2 Please check it: Exception java.lang.RuntimeException: invalid surface: null at com.opentok.android.grafika.gles.EglCore.a at com.opentok.android.grafika.gles.a.a at com.opentok.android.grafika.gles.WindowSurface. at com.opentok.android.TextureViewRenderer$Renderer.run

Sample attributes: [HONOR HNREA (HONOR 90)] [Android 13 (SDK 33)]