行走的Coder

俱怀逸兴壮思飞,欲上青天览明月。

导航

由tombstone文件解析jni代码过程

Android开发测试会经常遇到crash。

(1)adb shell

(2)cd /data/tombstones/

(3)adb pull /data/tombstones/tombston_00   (保存路径)

(4)打开tombstone文件,找到backtrace:

backtrace:

    #00 pc 000239c2  /data/app/com.morpho.cinemagraph-1/lib/arm/libmorpho_cinema_graph.so (mor_cinegrph_Renderer_Ycc420Semiplanar_draw+2377)
    #01 pc 00021871  /data/app/com.morpho.cinemagraph-1/lib/arm/libmorpho_cinema_graph.so (mor_cinegrph_Renderer_renderWithMvec8Real+260)
    #02 pc 00019c0f  /data/app/com.morpho.cinemagraph-1/lib/arm/libmorpho_cinema_graph.so (mor_cinegrph_CinemaGraph_addImage+274)
    #03 pc 00016a93  /data/app/com.morpho.cinemagraph-1/lib/arm/libmorpho_cinema_graph.so (morpho_CinemaGraph_addImage+82)
    #04 pc 00015ab1  /data/app/com.morpho.cinemagraph-1/lib/arm/libmorpho_cinema_graph.so (Java_com_morpho_cinemagraph_MorphoCinemaGraph_addImage+100)
    #05 pc 00017f0d  /data/dalvik-cache/arm/data@app@com.morpho.cinemagraph-1@base.apk@classes.dex

(5)在终端,cd到库文件目录下:addr2line -e (库文件.so) 00015ab1  得到库文件JNI层出错地方

posted on 2016-09-12 17:54  行走的coder  阅读(432)  评论(0编辑  收藏  举报