2.0.10 安卓端闪退

  • Creator 版本:2.0.10

  • 目标平台: 安卓真机 小米note3 8.1.0

  • 重现方式:一直重启应用

下面是报错信息
--------- beginning of crash
2019-12-25 11:51:39.550 1054-1700/ W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
2019-12-25 11:51:39.550 1054-1700/ W/google-breakpad: Chrome build fingerprint:
2019-12-25 11:51:39.550 1054-1700/ W/google-breakpad: 2.5.2
2019-12-25 11:51:39.550 1054-1700/ W/google-breakpad: 40
2019-12-25 11:51:39.550 1054-1700/ W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ###
2019-12-25 11:51:39.704 1054-1700/ A/libc: Fatal signal 11 (SIGSEGV), code -6, fault addr 0x41e in tid 1700 (hwuiTask2), pid 1054 ()
概率性复现 有没有大佬遇到类似的 希望指导下

顶一下

一点堆栈信息都没有,这日志没法分析出什么问题。

@huanxinyin
是的 大佬 不知道是什么原因 正在一行代码一行代码的排查 logcat确实是一行堆栈报错都没有 上面已经是全部的信息了如果有报错堆栈就可以定位排查了

而且复现概率并不高 有的时候启动50才出一次 排查难度很大…

2019-12-25 19:25:04.683 18517-18517/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-12-25 19:25:04.683 18517-18517/? A/DEBUG: Build fingerprint: ‘Xiaomi/jason/jason:8.1.0/OPM1.171019.019/V10.3.1.0.OCHCNXM:user/release-keys’
2019-12-25 19:25:04.683 18517-18517/? A/DEBUG: Revision: ‘0’
2019-12-25 19:25:04.684 18517-18517/? A/DEBUG: ABI: ‘arm’
2019-12-25 19:25:04.684 18517-18517/? A/DEBUG: pid: 18286, tid: 18286, name: utao.abc:course >>> com.putao.abc:course <<<
2019-12-25 19:25:04.684 18517-18517/? A/DEBUG: signal 11 (SIGSEGV), code -6 (SI_TKILL), fault addr --------
2019-12-25 19:25:04.684 18517-18517/? A/DEBUG: r0 c0a675a4 r1 00000089 r2 00000016 r3 00000000
2019-12-25 19:25:04.684 18517-18517/? A/DEBUG: r4 00000000 r5 ffffffff r6 00000000 r7 000000f0
2019-12-25 19:25:04.684 18517-18517/? A/DEBUG: r8 c0a675a0 r9 e8cc34fc sl 00000016 fp 00000016
2019-12-25 19:25:04.684 18517-18517/? A/DEBUG: ip ffa3dfd0 sp ffa3dfc0 lr e638f34f pc e636104c cpsr 000d0010
2019-12-25 19:25:04.780 3028-3046/? I/octvm_klo: read wakeups from wakealarm_fd:1
2019-12-25 19:25:04.780 3028-3046/? I/octvm_klo: new timerfd interval:
itval.it_interval.tv_sec 1, itval.it_interval.tv_nsec 0
itval.it_value.tv_sec 0, itval.it_value.tv_nsec 999996145
2019-12-25 19:25:04.924 1246-1396/? I/ThermalEngine: handle_thresh_sig: SS Id SS-CLUSTER1-SP0, Read xo_therm 39000mC
2019-12-25 19:25:05.137 18517-18517/? A/DEBUG: backtrace:
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #00 pc 0001904c /system/lib/libc.so (syscall+28)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #01 pc 0004734b /system/lib/libc.so (__pthread_cond_timedwait(pthread_cond_internal_t*, pthread_mutex_t*, bool, timespec const*)+102)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #02 pc 0004cecd /system/lib/libhwui.so (android::uirenderer::renderthread::DrawFrameTask::postAndWait()+28)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #03 pc 0004ce69 /system/lib/libhwui.so (android::uirenderer::renderthread::DrawFrameTask::drawFrame()+24)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #04 pc 00bf70a3 /system/framework/arm/boot-framework.oat (offset 0x96c000) (android.app.backup.BackupDataOutput.writeEntityData_native [DEDUPED]+138)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #05 pc 00402175 /system/lib/libart.so (art_quick_invoke_stub_internal+68)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #06 pc 004073eb /system/lib/libart.so (art_quick_invoke_static_stub+226)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #07 pc 000afce7 /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+174)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #08 pc 002014e3 /system/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+226)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #09 pc 001fca71 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+592)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #10 pc 003ed4cb /system/lib/libart.so (MterpInvokeStatic+150)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #11 pc 003f4814 /system/lib/libart.so (ExecuteMterpImpl+14612)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #12 pc 001e34c5 /system/lib/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+344)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #13 pc 001e7b89 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+148)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #14 pc 001fca59 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+568)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #15 pc 003ec56b /system/lib/libart.so (MterpInvokeVirtual+462)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #16 pc 003f4694 /system/lib/libart.so (ExecuteMterpImpl+14228)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #17 pc 001e34c5 /system/lib/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+344)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #18 pc 001e7b89 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+148)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #19 pc 001fca59 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+568)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #20 pc 003ed383 /system/lib/libart.so (MterpInvokeDirect+218)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #21 pc 003f4794 /system/lib/libart.so (ExecuteMterpImpl+14484)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #22 pc 001e34c5 /system/lib/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+344)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #23 pc 001e7b89 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+148)
2019-12-25 19:25:05.138 18517-18517/? A/DEBUG: #24 pc 001fd6b9 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb1ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+436)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #25 pc 003ee4e3 /system/lib/libart.so (MterpInvokeDirectRange+154)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #26 pc 003f4a94 /system/lib/libart.so (ExecuteMterpImpl+15252)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #27 pc 001e34c5 /system/lib/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+344)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #28 pc 001e7b89 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+148)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #29 pc 001fca59 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+568)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #30 pc 003ed383 /system/lib/libart.so (MterpInvokeDirect+218)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #31 pc 003f4794 /system/lib/libart.so (ExecuteMterpImpl+14484)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #32 pc 001e34c5 /system/lib/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+344)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #33 pc 001e7b89 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+148)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #34 pc 001fca59 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+568)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #35 pc 003ec56b /system/lib/libart.so (MterpInvokeVirtual+462)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #36 pc 003f4694 /system/lib/libart.so (ExecuteMterpImpl+14228)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #37 pc 001e34c5 /system/lib/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+344)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #38 pc 001e7b89 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+148)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #39 pc 001fca59 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+568)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #40 pc 003ed0e7 /system/lib/libart.so (MterpInvokeInterface+1054)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #41 pc 003f4894 /system/lib/libart.so (ExecuteMterpImpl+14740)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #42 pc 001e34c5 /system/lib/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+344)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #43 pc 001e7ad1 /system/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*)+92)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #44 pc 003e1e69 /system/lib/libart.so (artQuickToInterpreterBridge+924)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #45 pc 004066f1 /system/lib/libart.so (art_quick_to_interpreter_bridge+32)
2019-12-25 19:25:05.139 18517-18517/? A/DEBUG: #46 pc 000035f7 /dev/ashmem/dalvik-jit-code-cache (deleted)

@huanxinyin
改了一些东西 能出来些信息了 不过都是系统库文件 没有进到cocos的so里面

来结案了…
导致闪退的原因没有确认…不过找到了大概位置…
最终解决办法是移除videoPlayer模块
因为项目要发web和移动 然后web端用了系统的播放器 安卓端接的第三方sdk 所以我的做法是在node上挂了videoplayer组件 然后进入场景在onload判断如果是移动端在remove掉组件(自己的写法问题 应该是node不挂 判断web端载add组件比较好)所以我猜测是在videoPlayer在安卓端初始化的时候出了一些问题导致崩溃 具体原因未知(因为未有任何有价值的崩溃信息 而且复现概率极低) 不过我移除组件后测了将近100多次未复现此问题
暂时先这样…如果上线后还出现我再回复…