Android APP在运行过程中如出现crash异常,会产生tombstone文件,存放在/data/tombstones目录下。思路之一:我们可以通过分析tombstone来定位问题原因。
crash异常日志如下:
11-06 09:26:19.495 F/libc ( 993): Fatal signal 6 (SIGABRT), code -6 in tid 1046 (RenderThread)
11-06 09:26:19.496 W/ ( 191): debuggerd: handling request: pid=993 uid=1000 gid=1000 tid=1046
11-06 09:26:19.577 F/DEBUG ( 7490): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-06 09:26:19.577 F/DEBUG ( 7490): Build fingerprint: 'Android/rk3288/rk3288:7.1.2/NHG47K/wf06232042:userdebug/test-keys'
11-06 09:26:19.577 F/DEBUG ( 7490): Revision: '0'
11-06 09:26:19.577 F/DEBUG ( 7490): ABI: 'arm'
11-06 09:26:19.577 F/DEBUG ( 7490): pid: 993, tid: 1046, name: RenderThread >>> com.test.Digi <<<
11-06 09:26:19.577 F/DEBUG ( 7490): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
11-06 09:26:19.584 F/DEBUG ( 7490): Abort message: 'Encountered EGL error 12291 EGL_BAD_ALLOC during rendering'
11-06 09:26:19.584 F/DEBUG ( 7490): r0 00000000 r1 00000416 r2 00000006 r3 00000008
11-06 09:26:19.584 F/DEBUG ( 7490): r4 967df978 r5 00000006 r6 967df920 r7 0000010c
11-06 09:26:19.584 F/DEBUG ( 7490): r8 03fb7340 r9 00000000 sl b2f3453c fp b2f34538
11-06 09:26:19.584 F/DEBUG ( 7490): ip 00000016 sp 967def10 lr b511d857 pc b51200c0 cpsr 680f0010
11-06 09:26:19.