Two crashes that occur frequently(Solar2D 2023.3691)

There are two crashes that occur frequently but we have no idea how to solve them. Does anyone have any ideas on how to solve them?


[split_config.arm64_v8a.apk]
SIGSEGV

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 9486 >>> com.myapp.test_app <<<

backtrace:
  #00  pc 0x000000000000ad70  /data/app/com.myapp.test_app-1mKCdMh6YFJK7f2huzLX2Q==/split_config.arm64_v8a.apk
  #01  pc 0x000000000010df14  /data/app/com.myapp.test_app-1mKCdMh6YFJK7f2huzLX2Q==/split_config.arm64_v8a.apk!libcorona.so
  #02  pc 0x000000000010de18  /data/app/com.myapp.test_app-1mKCdMh6YFJK7f2huzLX2Q==/split_config.arm64_v8a.apk!libcorona.so
  #03  pc 0x00000000001229cc  /data/app/com.myapp.test_app-1mKCdMh6YFJK7f2huzLX2Q==/split_config.arm64_v8a.apk!libcorona.so
  #04  pc 0x0000000000121b7c  /data/app/com.myapp.test_app-1mKCdMh6YFJK7f2huzLX2Q==/split_config.arm64_v8a.apk!libcorona.so
  #05  pc 0x00000000000110a8  /data/app/com.myapp.test_app-1mKCdMh6YFJK7f2huzLX2Q==/oat/arm64/base.odex (art_jni_trampoline+152)
  #06  pc 0x0000000002011bb4  /memfd:/jit-cache (com.ansca.corona.Controller.updateRuntimeState+980)
  #07  pc 0x0000000002018d24  /memfd:/jit-cache (com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun+2948)
  #08  pc 0x000000000013763c  /apex/com.android.runtime/lib64/libart.so (art_quick_osr_stub+60)
  #09  pc 0x000000000033a268  /apex/com.android.runtime/lib64/libart.so (art::jit::Jit::MaybeDoOnStackReplacement(art::Thread*, art::ArtMethod*, unsigned int, int, art::JValue*)+1688)
  #10  pc 0x00000000005ad99c  /apex/com.android.runtime/lib64/libart.so (MterpMaybeDoOnStackReplacement+212)
  #11  pc 0x0000000000136350  /apex/com.android.runtime/lib64/libart.so (MterpHelpers+240)
  #12  pc 0x000000000017291a  /data/app/com.myapp.test_app-1mKCdMh6YFJK7f2huzLX2Q==/oat/arm64/base.vdex (com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun+946)
  #13  pc 0x00000000005a50a8  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+1168)
  #14  pc 0x0000000000131914  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20)
  #15  pc 0x0000000000172d1c  /data/app/com.myapp.test_app-1mKCdMh6YFJK7f2huzLX2Q==/oat/arm64/base.vdex (com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run+48)
  #16  pc 0x00000000002b56e0  /apex/com.android.runtime/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.9123860073240645759)+240)
  #17  pc 0x0000000000593ea8  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1024)
  #18  pc 0x0000000000140468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88)
  #19  pc 0x0000000000137334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548)
  #20  pc 0x00000000001460ac  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244)
  #21  pc 0x00000000004b2f58  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
  #22  pc 0x00000000004b4008  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416)
  #23  pc 0x00000000004f4558  /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1176)
  #24  pc 0x00000000000e24a4  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
  #25  pc 0x0000000000083d98  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

[split_config.armeabi_v7a.apk]
SIGSEGV
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 26478 >>> com.myapp.test_app <<<

backtrace:
 #00  pc 0x0000000000005410  /data/app/com.myapp.test_app-xQAaJk81ehlm7FMVs6EdSw==/split_config.armeabi_v7a.apk
 #01  pc 0x000000000009783f  /data/app/com.myapp.test_app-xQAaJk81ehlm7FMVs6EdSw==/split_config.armeabi_v7a.apk!libcorona.so
 #02  pc 0x0000000000097855  /data/app/com.myapp.test_app-xQAaJk81ehlm7FMVs6EdSw==/split_config.armeabi_v7a.apk!libcorona.so
 #03  pc 0x00000000000977c7  /data/app/com.myapp.test_app-xQAaJk81ehlm7FMVs6EdSw==/split_config.armeabi_v7a.apk!libcorona.so
 #04  pc 0x00000000000977dd  /data/app/com.myapp.test_app-xQAaJk81ehlm7FMVs6EdSw==/split_config.armeabi_v7a.apk!libcorona.so
 #05  pc 0x00000000000a21b3  /data/app/com.myapp.test_app-xQAaJk81ehlm7FMVs6EdSw==/split_config.armeabi_v7a.apk!libcorona.so
 #06  pc 0x00000000000a1bdd  /data/app/com.myapp.test_app-xQAaJk81ehlm7FMVs6EdSw==/split_config.armeabi_v7a.apk!libcorona.so
 #07  pc 0x000000000001106f  /data/app/com.myapp.test_app-xQAaJk81ehlm7FMVs6EdSw==/oat/arm/base.odex (art_jni_trampoline+102)
 #08  pc 0x000000000200bf99  /memfd:/jit-cache (com.ansca.corona.Controller.updateRuntimeState+1048)
 #09  pc 0x00000000020176eb  /memfd:/jit-cache (com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun+2730)
 #10  pc 0x00000000000d7c0f  /apex/com.android.runtime/lib/libart.so (art_quick_osr_stub+46)
 #11  pc 0x0000000000256ef3  /apex/com.android.runtime/lib/libart.so (art::jit::Jit::MaybeDoOnStackReplacement(art::Thread*, art::ArtMethod*, unsigned int, int, art::JValue*)+1138)
 #12  pc 0x000000000042bdbf  /apex/com.android.runtime/lib/libart.so (MterpMaybeDoOnStackReplacement+134)
 #13  pc 0x00000000000d73f4  /apex/com.android.runtime/lib/libart.so (MterpHelpers+244)
 #14  pc 0x000000000017291a  /data/app/com.myapp.test_app-xQAaJk81ehlm7FMVs6EdSw==/oat/arm/base.vdex (com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun+946)
 #15  pc 0x00000000004250b9  /apex/com.android.runtime/lib/libart.so (MterpInvokeDirect+980)
 #16  pc 0x00000000000d2914  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_direct+20)
 #17  pc 0x0000000000172d1c  /data/app/com.myapp.test_app-xQAaJk81ehlm7FMVs6EdSw==/oat/arm/base.vdex (com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run+48)
 #18  pc 0x00000000001ec295  /apex/com.android.runtime/lib/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.11620454442779542773)+192)
 #19  pc 0x00000000001f0a79  /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+124)
 #20  pc 0x0000000000417899  /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+808)
 #21  pc 0x00000000000dc5a1  /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32)
 #22  pc 0x00000000000d7bc5  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68)
 #23  pc 0x000000000042dd27  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250)
 #24  pc 0x00000000000dffb7  /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+174)
 #25  pc 0x000000000036fac7  /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+54)
 #26  pc 0x00000000003707b9  /apex/com.android.runtime/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+304)
 #27  pc 0x00000000003a1277  /apex/com.android.runtime/lib/libart.so (art::Thread::CreateCallback(void*)+978)
 #28  pc 0x00000000000a6093  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
 #29  pc 0x0000000000060763  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)

hey, afaik we need to know which solar2d version you use to symbolize those backtrace, thanks.

refer: ndk-stack  |  Android NDK  |  Android Developers

Solar2D 2023.3691

1 Like

May related to audio onComplete bug caused crash, that is the issue [PLATFORM]: runtime bug #296.
Please check out, thanks.

I have also noticed many crashes related to audio onComplete (according to logs on the Play dashboard).

I don’t even use onComplete listeners anywhere in my code, and it still happens. It’s easily my biggest crash and I can’t find a way to stop it :frowning:

Instead of onComplete(). I have a table of play lengths and use a timer to spawn a new audio. I don’t have these crashes

Thanks, but how did you determine that these two crashes are related to the audio onComplete bug?

We had quite a few audio onComplete-related crashes before, but after fixing some MP3 files, we haven’t seen this type of crash again.

I am not pretty sure, no further information to debug or reproduce it, its difficult to say what its.
So I request you to check out, I’m sorry if there was any misunderstanding.

I use ndk-stack mentioned before, with AndroidDebugSymbols-2023.3691.zip on Solar2D 2023.3691, symbolized your backtrace and the top of stack show it crashed in Rtt_DELETE.
Combine known issues to indicate whether you are involved with onComplete issue.