帮忙看下在Android原生平台下闪退的bug

系统版本:Android 9.0
CPU ABI:armeabi-v7a

  • Creator 版本:2.4.2

  • 目标平台:Android

  • 重现方式:启动闪退

  • 首个报错:


Build fingerprint: ‘Infinix/H613/Infinix-X5516B:9/PPR1.180610.011/OPQ-190911V258:user/release-keys’
Revision: ‘0’
ABI: ‘arm’
pid: 22345, tid: 22677, name: GLThread 1067 >>> com.fm.blockmoving.aha <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4cb8
r0 00004cb8 r1 00004cbc r2 00004cc0 r3 80000000
r4 885f8ea0 r5 00000000 r6 aa138d8c r7 885f9018
r8 aa138d8c r9 885f8ff0 r10 00000000 r11 885f8ec8
ip 8d45ab1c sp 885f8e88 lr 8cb0c2c7 pc 8cb0c336

backtrace:
#00 pc 00985336 /data/app/com.fm.blockmoving.aha-iyiqEUsCQutkNBzxSxwiGQ==/lib/arm/libcocos2djs.so (v8::HandleScope::Initialize(v8::Isolate*)+122)
#01 pc 009852b5 /data/app/com.fm.blockmoving.aha-iyiqEUsCQutkNBzxSxwiGQ==/lib/arm/libcocos2djs.so (v8::HandleScope::HandleScope(v8::Isolate*)+4)
#02 pc 005dfc50 /data/app/com.fm.blockmoving.aha-iyiqEUsCQutkNBzxSxwiGQ==/lib/arm/libcocos2djs.so (se::ScriptEngine::cleanup()+88)
#03 pc 005dfef0 /data/app/com.fm.blockmoving.aha-iyiqEUsCQutkNBzxSxwiGQ==/lib/arm/libcocos2djs.so (se::ScriptEngine::init()+36)
#04 pc 005e1710 /data/app/com.fm.blockmoving.aha-iyiqEUsCQutkNBzxSxwiGQ==/lib/arm/libcocos2djs.so (se::ScriptEngine::start()+36)
#05 pc 0052fbcc /data/app/com.fm.blockmoving.aha-iyiqEUsCQutkNBzxSxwiGQ==/lib/arm/libcocos2djs.so (AppDelegate::applicationDidFinishLaunching()+168)
#06 pc 0053b97d /data/app/com.fm.blockmoving.aha-iyiqEUsCQutkNBzxSxwiGQ==/lib/arm/libcocos2djs.so (Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit+140)
#07 pc 000528c5 /data/app/com.fm.blockmoving.aha-iyiqEUsCQutkNBzxSxwiGQ==/oat/arm/base.odex (offset 0x52000) (org.cocos2dx.lib.Cocos2dxRenderer.nativeInit+132)
#08 pc 0040d975 /system/lib/libart.so (art_quick_invoke_stub_internal+68)
#09 pc 003e70b3 /system/lib/libart.so (art_quick_invoke_static_stub+222)
#10 pc 000a1027 /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+154)
#11 pc 001e5b89 /system/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+236)
#12 pc 001e0677 /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+814)
#13 pc 003e2be7 /system/lib/libart.so (MterpInvokeStatic+130)
#14 pc 00400894 /system/lib/libart.so (ExecuteMterpImpl+14612)
#15 pc 00c2a59e /data/app/com.fm.blockmoving.aha-iyiqEUsCQutkNBzxSxwiGQ==/oat/arm/base.vdex (org.cocos2dx.lib.Cocos2dxRenderer.onSurfaceCreated+18)
#16 pc 001c4df3 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.1556017550+378)
#17 pc 001c941f /system/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+82)
#18 pc 003d56f1 /system/lib/libart.so (artQuickToInterpreterBridge+880)
#19 pc 00411eff /system/lib/libart.so (art_quick_to_interpreter_bridge+30)
#20 pc 00901643 /system/framework/arm/boot-framework.oat (offset 0x38f000) (android.opengl.GLSurfaceView$GLThread.guardedRun+2938)
#21 pc 0090273d /system/framework/arm/boot-framework.oat (offset 0x38f000) (android.opengl.GLSurfaceView$GLThread.run+180)
#22 pc 0040d975 /system/lib/libart.so (art_quick_invoke_stub_internal+68)
#23 pc 003e6fb1 /system/lib/libart.so (art_quick_invoke_stub+224)
#24 pc 000a1015 /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+136)
#25 pc 00347b55 /system/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+52)
#26 pc 003488ad /system/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+320)
#27 pc 00369827 /system/lib/libart.so (art::thread::CreateCallback(void*)+866)
#28 pc 000632e5 /system/lib/libc.so (__pthread_start(void*)+22)
#29 pc 0001de49 /system/lib/libc.so (__start_thread+24)

  1. 确认下手机的架构
  2. 有没有同时调试两个Creator游戏
  3. 有没有在UI线程调用JS
  4. 我也看不出来报了什么错,只有上面的经验参考下

手机架构ARM。 这是在云测平台导出的错误log,理论上是不会同时运行两款Creator项目。
出现crash是在游戏打开后的1分钟左右,此时游戏内还没有从JAVA层调用JS的业务。不过也确认了下,所有的Cocos2dxJavascriptJavaBridge.evalString都是在runOnGLThread下执行。

从论坛中看到很多人说是由于Activity频繁切换导致的崩溃,但游戏在启动的1分钟内是不会调起其他acvitive。不知道是否还有其他解决思路哈?感谢感谢!!!