Repository: godot
Issue: Android crash in Production using OpenGL
Labels: platform:android,needs testing,crash

### Tested versions

4.3.stable

### System information

Android - Godot 4.3.stable - GLES3

### Issue description

Since I published my game, I have had several crashes in production I am not able to replicate. The issue happens with multiple devices, I could not find a pattern in either memory, chip or GPU.

The issue seems to be the same of this closed issue: https://github.com/godotengine/godot/issues/90884

The error detail is bellow:
Crash 1:

```
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 30466 >>> com.carameldogstudios.bbsurvivor <<<

backtrace:
  #00  pc 0x0000000003335e3c  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (ZSTD_CCtxParams_registerSequenceProducer) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #01  pc 0x000000000335897c  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (ZSTD_CCtxParams_registerSequenceProducer) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #02  pc 0x00000000010523f0  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (Java_org_godotengine_godot_plugin_GodotPlugin_nativeEmitSignal) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #03  pc 0x00000000035d4248  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (ZSTD_CCtxParams_registerSequenceProducer) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #04  pc 0x0000000003335e58  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (ZSTD_CCtxParams_registerSequenceProducer) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #05  pc 0x0000000003339958  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (ZSTD_CCtxParams_registerSequenceProducer) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #06  pc 0x0000000003335e8c  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (ZSTD_CCtxParams_registerSequenceProducer) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #07  pc 0x000000000335897c  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (ZSTD_CCtxParams_registerSequenceProducer) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #08  pc 0x00000000010523f0  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (Java_org_godotengine_godot_plugin_GodotPlugin_nativeEmitSignal) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #09  pc 0x00000000035d4248  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (ZSTD_CCtxParams_registerSequenceProducer) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #10  pc 0x0000000003335e58  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (ZSTD_CCtxParams_registerSequenceProducer) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #11  pc 0x0000000003339958  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (ZSTD_CCtxParams_registerSequenceProducer) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #12  pc 0x0000000003335e8c  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (ZSTD_CCtxParams_registerSequenceProducer) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #13  pc 0x00000000035d6fbc  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (ZSTD_CCtxParams_registerSequenceProducer) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #14  pc 0x0000000001a6e500  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (WebPBlendAlpha) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #15  pc 0x0000000001a6e184  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (WebPBlendAlpha) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #16  pc 0x0000000001a72bd4  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (WebPBlendAlpha) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #17  pc 0x0000000001a729cc  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (WebPBlendAlpha) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #18  pc 0x0000000003335e8c  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (ZSTD_CCtxParams_registerSequenceProducer) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #19  pc 0x00000000035cda94  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (ZSTD_CCtxParams_registerSequenceProducer) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #20  pc 0x00000000035cddb8  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (ZSTD_CCtxParams_registerSequenceProducer) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #21  pc 0x0000000001ac0610  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (WebPBlendAlpha) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #22  pc 0x0000000000e4655c  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (Java_org_godotengine_godot_plugin_GodotPlugin_nativeEmitSignal) (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #23  pc 0x0000000000dfc6a0  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (BuildId: a45484a1a8923d4ef90f7b94de1cce2e)
  #24  pc 0x0000000000e11440  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/split_config.arm64_v8a.apk!libgodot_android.so (Java_org_godotengine_godot_GodotLib_step+344)
  #25  pc 0x0000000000306bf8  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (art_jni_trampoline+104)
  #26  pc 0x000000000077e708  /apex/com.android.art/lib64/libart.so (nterp_helper+152)
  #27  pc 0x000000000033cfc4  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/base.apk (org.godotengine.godot.gl.GodotRenderer.onDrawFrame+20)
  #28  pc 0x00000000007803e4  /apex/com.android.art/lib64/libart.so (nterp_helper+7540)
  #29  pc 0x000000000033c29a  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/base.apk (org.godotengine.godot.gl.GLSurfaceView$GLThread.guardedRun+946)
  #30  pc 0x000000000077f5c4  /apex/com.android.art/lib64/libart.so (nterp_helper+3924)
  #31  pc 0x000000000033c76c  /data/app/~~7yp9IGVtNq17ZAbyhI2xtQ==/com.carameldogstudios.bbsurvivor-jWaMsSte6UV9rCNVB65bkw==/base.apk (org.godotengine.godot.gl.GLSurfaceView$GLThread.run+44)
  #32  pc 0x0000000000362774  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
  #33  pc 0x000000000034def0  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+132)
  #34  pc 0x0000000000943c28  /apex/com.android.art/lib64/libart.so (art::detail::ShortyTraits<(char)86>::Type art::ArtMethod::InvokeInstance<(char)86>(art::Thread*, art::ObjPtr<art::mirror::Object>, art::detail::ShortyTraits<>::Type...)+60)
  #35  pc 0x000000000063ea1c  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1344)
  #36  pc 0x000000000063e4cc  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallbackWithUffdGc(void*)+8)
  #37  pc 0x00000000000c163c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204)
  #38  pc 0x0000000000054930  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
```

Crash 2
```
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 7017 >>> com.carameldogstudios.bbsurvivor <<<

backtrace:
  #00  pc 0x0000000003335e3c  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #01  pc 0x000000000335897c  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #02  pc 0x00000000010523f0  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #03  pc 0x00000000035d4248  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #04  pc 0x0000000003335e58  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #05  pc 0x0000000003339958  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #06  pc 0x0000000003335e8c  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #07  pc 0x000000000335897c  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #08  pc 0x00000000010523f0  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #09  pc 0x00000000035d4248  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #10  pc 0x0000000003335e58  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #11  pc 0x0000000003339958  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #12  pc 0x0000000003335e8c  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #13  pc 0x00000000035d6fbc  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #14  pc 0x0000000001a6e500  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #15  pc 0x0000000001a6e184  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #16  pc 0x0000000001a72bd4  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #17  pc 0x0000000001a729cc  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #18  pc 0x0000000003335e8c  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #19  pc 0x00000000035cda94  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #20  pc 0x00000000035cddb8  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #21  pc 0x0000000001ac0610  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #22  pc 0x0000000000e4655c  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #23  pc 0x0000000000dfc6a0  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so
  #24  pc 0x0000000000e11440  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/split_config.arm64_v8a.apk!libgodot_android.so (Java_org_godotengine_godot_GodotLib_step+344)
  #25  pc 0x000000000038abf8  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (art_jni_trampoline+104)
  #26  pc 0x000000000077e708  /apex/com.android.art/lib64/libart.so (nterp_helper+152)
  #27  pc 0x000000000033cfc4  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/base.apk (org.godotengine.godot.gl.GodotRenderer.onDrawFrame+20)
  #28  pc 0x00000000007803e4  /apex/com.android.art/lib64/libart.so (nterp_helper+7540)
  #29  pc 0x000000000033c29a  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/base.apk (org.godotengine.godot.gl.GLSurfaceView$GLThread.guardedRun+946)
  #30  pc 0x000000000077f5c4  /apex/com.android.art/lib64/libart.so (nterp_helper+3924)
  #31  pc 0x000000000033c76c  /data/app/~~SstVqPt66pd5YQuX02mIpQ==/com.carameldogstudios.bbsurvivor-3Aow31fyE23DmAffJX7fZQ==/base.apk (org.godotengine.godot.gl.GLSurfaceView$GLThread.run+44)
  #32  pc 0x0000000000362774  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
  #33  pc 0x000000000034def0  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+132)
  #34  pc 0x0000000000943c28  /apex/com.android.art/lib64/libart.so (art::detail::ShortyTraits<(char)86>::Type art::ArtMethod::InvokeInstance<(char)86>(art::Thread*, art::ObjPtr<art::mirror::Object>, art::detail::ShortyTraits<>::Type...)+60)
  #35  pc 0x000000000063ea1c  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1344)
  #36  pc 0x000000000063e4cc  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallbackWithUffdGc(void*)+8)
  #37  pc 0x0000000000104fc4  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
  #38  pc 0x000000000009e764  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68)
```


### Steps to reproduce

I do not know how to reproduce it, but it is affecting over 6% of my user base at this point. If possible I would like to ask for any clues of what features could cause it to give me some idea of what I can try to do to replicate the issue. 

### Minimal reproduction project (MRP)

Unfortunately I cannot provide an MRP, but please if any clue on how I can try to find the root cause in my project would be really helpful.