Android开发测试会经常遇到crash。
(1)cd /data/tombstones/
(2)adb pull /data/tombstones/tombston_00 (保存路径)
(3)打开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/[email protected]@[email protected]@classes.dex
(4)在终端,cd到库文件目录下:addr2line -e (库文件.so) 00015ab1 得到库文件JNI层出错地方