Many crashes in Android Devices : [libunity.so] ApiGLES::FillExtensions(dynamic_array<core::basic_string_ref<char>, 0ul>&)

Hello,
Since I upgraded from Unity version 2020 to 2021 LTS, I’m getting many crash reports due to ApiGLES issues. I can’t reproduce the issues locally. All Android versions have the issue.

Unity version: 2021.3.40 LTS

Here are stacktraces:

backtrace:
  #00  pc 0x000000000005f76c  /apex/com.android.runtime/lib/bionic/libc.so (strlen_a15+72)
  #01  pc 0x00000000004c5c70  /data/app/~~5xjumXeS7xr2GDZGy_aezQ==/com.vofo.ray-yIOAWQV67WmCv6BDE83O2g==/lib/arm/libunity.so (ApiGLES::FillExtensions(dynamic_array<core::basic_string_ref<char>, 0u>&)) (BuildId: df63f2b3420f3eaf3a2e730cb77c3658b444149d)
  #02  pc 0x00000000004c5920  /data/app/~~5xjumXeS7xr2GDZGy_aezQ==/com.vofo.ray-yIOAWQV67WmCv6BDE83O2g==/lib/arm/libunity.so (ApiGLES::Init(GfxContextGLES const&, GfxDeviceLevelGL&)) (BuildId: df63f2b3420f3eaf3a2e730cb77c3658b444149d)
  #03  pc 0x00000000004b2e88  /data/app/~~5xjumXeS7xr2GDZGy_aezQ==/com.vofo.ray-yIOAWQV67WmCv6BDE83O2g==/lib/arm/libunity.so (GfxDeviceGLES::Init(GfxDeviceLevelGL)) (BuildId: df63f2b3420f3eaf3a2e730cb77c3658b444149d)
  #04  pc 0x00000000004b2434  /data/app/~~5xjumXeS7xr2GDZGy_aezQ==/com.vofo.ray-yIOAWQV67WmCv6BDE83O2g==/lib/arm/libunity.so (CreateGLESGfxDevice(GfxDeviceRenderer)) (BuildId: df63f2b3420f3eaf3a2e730cb77c3658b444149d)
  #05  pc 0x000000000025f9bd  /data/app/~~5xjumXeS7xr2GDZGy_aezQ==/com.vofo.ray-yIOAWQV67WmCv6BDE83O2g==/lib/arm/libunity.so (CreateClientGfxDevice(GfxDeviceRenderer, GfxCreateDeviceFlags)) (BuildId: df63f2b3420f3eaf3a2e730cb77c3658b444149d)
  #06  pc 0x000000000049fcb0  /data/app/~~5xjumXeS7xr2GDZGy_aezQ==/com.vofo.ray-yIOAWQV67WmCv6BDE83O2g==/lib/arm/libunity.so (CreateGfxDevice(GfxDeviceRenderer, GfxCreateDeviceFlags)) (BuildId: df63f2b3420f3eaf3a2e730cb77c3658b444149d)
  #07  pc 0x000000000049ff70  /data/app/~~5xjumXeS7xr2GDZGy_aezQ==/com.vofo.ray-yIOAWQV67WmCv6BDE83O2g==/lib/arm/libunity.so (InitializeGfxDevice()) (BuildId: df63f2b3420f3eaf3a2e730cb77c3658b444149d)
  #08  pc 0x000000000023fc43  /data/app/~~5xjumXeS7xr2GDZGy_aezQ==/com.vofo.ray-yIOAWQV67WmCv6BDE83O2g==/lib/arm/libunity.so (AndroidGraphics::Startup()) (BuildId: df63f2b3420f3eaf3a2e730cb77c3658b444149d)
  #09  pc 0x000000000022fb61  /data/app/~~5xjumXeS7xr2GDZGy_aezQ==/com.vofo.ray-yIOAWQV67WmCv6BDE83O2g==/lib/arm/libunity.so (UnityInitApplication()) (BuildId: df63f2b3420f3eaf3a2e730cb77c3658b444149d)
  #10  pc 0x00000000002307d9  /data/app/~~5xjumXeS7xr2GDZGy_aezQ==/com.vofo.ray-yIOAWQV67WmCv6BDE83O2g==/lib/arm/libunity.so (UnityPlayerLoop()) (BuildId: df63f2b3420f3eaf3a2e730cb77c3658b444149d)
  #11  pc 0x000000000024157f  /data/app/~~5xjumXeS7xr2GDZGy_aezQ==/com.vofo.ray-yIOAWQV67WmCv6BDE83O2g==/lib/arm/libunity.so (nativeRender(_JNIEnv*, _jobject*)) (BuildId: df63f2b3420f3eaf3a2e730cb77c3658b444149d)
  #12  pc 0x00000000000a3f1b  /data/app/~~5xjumXeS7xr2GDZGy_aezQ==/com.vofo.ray-yIOAWQV67WmCv6BDE83O2g==/oat/arm/base.odex (art_jni_trampoline+74)
  #13  pc 0x000000000014b1ad  /data/app/~~5xjumXeS7xr2GDZGy_aezQ==/com.vofo.ray-yIOAWQV67WmCv6BDE83O2g==/oat/arm/base.odex (com.unity3d.player.UnityPlayer$e$1.handleMessage+1012)
  #14  pc 0x0000000000552e17  /system/framework/arm/boot-framework.oat (android.os.Handler.dispatchMessage+110)
  #15  pc 0x0000000000555917  /system/framework/arm/boot-framework.oat (android.os.Looper.loop+1446)
  #16  pc 0x000000000014bec3  /data/app/~~5xjumXeS7xr2GDZGy_aezQ==/com.vofo.ray-yIOAWQV67WmCv6BDE83O2g==/oat/arm/base.odex (com.unity3d.player.UnityPlayer$e.run+210)
  #17  pc 0x00000000000d39d5  /apex/com.android.art/lib/libart.so (art_quick_invoke_stub_internal+68)
  #18  pc 0x00000000004ead9b  /apex/com.android.art/lib/libart.so (art_quick_invoke_stub+282)
  #19  pc 0x000000000012bd2d  /apex/com.android.art/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+148)
  #20  pc 0x00000000003f8617  /apex/com.android.art/lib/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+374)
  #21  pc 0x00000000003f8727  /apex/com.android.art/lib/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+42)
  #22  pc 0x0000000000439825  /apex/com.android.art/lib/libart.so (art::Thread::CreateCallback(void*)+1056)
  #23  pc 0x00000000000aaf93  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40)
  #24  pc 0x0000000000064203  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
backtrace:
  #00  pc 0x00000000000894c0  /apex/com.android.runtime/lib64/bionic/libc.so (strlen_default+16)
  #01  pc 0x00000000006374b8  /data/app/~~NSOeTwAVH3MluUNdojU4Ug==/com.vofo.ray-ZVbzj4bIwYeGwvA5ser2wA==/lib/arm64/libunity.so (ApiGLES::FillExtensions(dynamic_array<core::basic_string_ref<char>, 0ul>&)) (BuildId: 21a9a823f57de670c66ded8bb8cb46bb3fbbfa04)
  #02  pc 0x00000000006371ec  /data/app/~~NSOeTwAVH3MluUNdojU4Ug==/com.vofo.ray-ZVbzj4bIwYeGwvA5ser2wA==/lib/arm64/libunity.so (ApiGLES::Init(GfxContextGLES const&, GfxDeviceLevelGL&)) (BuildId: 21a9a823f57de670c66ded8bb8cb46bb3fbbfa04)
  #03  pc 0x00000000006261c0  /data/app/~~NSOeTwAVH3MluUNdojU4Ug==/com.vofo.ray-ZVbzj4bIwYeGwvA5ser2wA==/lib/arm64/libunity.so (GfxDeviceGLES::Init(GfxDeviceLevelGL)) (BuildId: 21a9a823f57de670c66ded8bb8cb46bb3fbbfa04)
  #04  pc 0x0000000000625898  /data/app/~~NSOeTwAVH3MluUNdojU4Ug==/com.vofo.ray-ZVbzj4bIwYeGwvA5ser2wA==/lib/arm64/libunity.so (CreateGLESGfxDevice(GfxDeviceRenderer)) (BuildId: 21a9a823f57de670c66ded8bb8cb46bb3fbbfa04)
  #05  pc 0x000000000037ea18  /data/app/~~NSOeTwAVH3MluUNdojU4Ug==/com.vofo.ray-ZVbzj4bIwYeGwvA5ser2wA==/lib/arm64/libunity.so (CreateClientGfxDevice(GfxDeviceRenderer, GfxCreateDeviceFlags)) (BuildId: 21a9a823f57de670c66ded8bb8cb46bb3fbbfa04)
  #06  pc 0x00000000006146c8  /data/app/~~NSOeTwAVH3MluUNdojU4Ug==/com.vofo.ray-ZVbzj4bIwYeGwvA5ser2wA==/lib/arm64/libunity.so (CreateGfxDevice(GfxDeviceRenderer, GfxCreateDeviceFlags)) (BuildId: 21a9a823f57de670c66ded8bb8cb46bb3fbbfa04)
  #07  pc 0x0000000000614944  /data/app/~~NSOeTwAVH3MluUNdojU4Ug==/com.vofo.ray-ZVbzj4bIwYeGwvA5ser2wA==/lib/arm64/libunity.so (InitializeGfxDevice()) (BuildId: 21a9a823f57de670c66ded8bb8cb46bb3fbbfa04)
  #08  pc 0x000000000035772c  /data/app/~~NSOeTwAVH3MluUNdojU4Ug==/com.vofo.ray-ZVbzj4bIwYeGwvA5ser2wA==/lib/arm64/libunity.so (AndroidGraphics::Startup()) (BuildId: 21a9a823f57de670c66ded8bb8cb46bb3fbbfa04)
  #09  pc 0x0000000000341840  /data/app/~~NSOeTwAVH3MluUNdojU4Ug==/com.vofo.ray-ZVbzj4bIwYeGwvA5ser2wA==/lib/arm64/libunity.so (UnityInitApplication()) (BuildId: 21a9a823f57de670c66ded8bb8cb46bb3fbbfa04)
  #10  pc 0x0000000000342548  /data/app/~~NSOeTwAVH3MluUNdojU4Ug==/com.vofo.ray-ZVbzj4bIwYeGwvA5ser2wA==/lib/arm64/libunity.so (UnityPlayerLoop()) (BuildId: 21a9a823f57de670c66ded8bb8cb46bb3fbbfa04)
  #11  pc 0x0000000000359a14  /data/app/~~NSOeTwAVH3MluUNdojU4Ug==/com.vofo.ray-ZVbzj4bIwYeGwvA5ser2wA==/lib/arm64/libunity.so (nativeRender(_JNIEnv*, _jobject*)) (BuildId: 21a9a823f57de670c66ded8bb8cb46bb3fbbfa04)
  #12  pc 0x000000000007591c  /data/app/~~NSOeTwAVH3MluUNdojU4Ug==/com.vofo.ray-ZVbzj4bIwYeGwvA5ser2wA==/oat/arm64/base.odex (art_jni_trampoline+124)
  #13  pc 0x0000000000133564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548)
  #14  pc 0x0000000000197e94  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+204)
  #15  pc 0x00000000003037d4  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376)
  #16  pc 0x00000000002fe8ec  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+884)
  #17  pc 0x0000000000634610  /apex/com.android.art/lib64/libart.so (MterpInvokeDirect+592)
  #18  pc 0x000000000012d914  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct+20)
  #19  pc 0x0000000000c6ee20  /data/app/~~NSOeTwAVH3MluUNdojU4Ug==/com.vofo.ray-ZVbzj4bIwYeGwvA5ser2wA==/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer.access$500)
  #20  pc 0x00000000006350ac  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+1120)
  #21  pc 0x000000000012d994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20)
  #22  pc 0x0000000000c6e484  /data/app/~~NSOeTwAVH3MluUNdojU4Ug==/com.vofo.ray-ZVbzj4bIwYeGwvA5ser2wA==/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer$e$1.handleMessage+252)
  #23  pc 0x00000000002f62c8  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.17758980315292165778)+268)
  #24  pc 0x0000000000620cfc  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+796)
  #25  pc 0x000000000013cff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88)
  #26  pc 0x000000000065ed18  /system/framework/arm64/boot-framework.oat (android.os.Handler.dispatchMessage+136)
  #27  pc 0x0000000000662358  /system/framework/arm64/boot-framework.oat (android.os.Looper.loop+1672)
  #28  pc 0x00000000001337e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568)
  #29  pc 0x0000000000197eb0  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
  #30  pc 0x00000000003037d4  /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+376)
  #31  pc 0x00000000002fe8ec  /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+884)
  #32  pc 0x0000000000634e70  /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+548)
  #33  pc 0x000000000012d994  /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20)
  #34  pc 0x0000000000c6e880  /data/app/~~NSOeTwAVH3MluUNdojU4Ug==/com.vofo.ray-ZVbzj4bIwYeGwvA5ser2wA==/oat/arm64/base.vdex (com.unity3d.player.UnityPlayer$e.run+40)
  #35  pc 0x00000000002f62c8  /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.17758980315292165778)+268)
  #36  pc 0x0000000000620cfc  /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+796)
  #37  pc 0x000000000013cff8  /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88)
  #38  pc 0x0000000000133564  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548)
  #39  pc 0x0000000000197e94  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+204)
  #40  pc 0x000000000052990c  /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
  #41  pc 0x000000000052ab0c  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+440)
  #42  pc 0x0000000000577b74  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1272)
  #43  pc 0x00000000000f4510  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64)
  #44  pc 0x000000000008ef34  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)