Git Product home page Git Product logo

chapter01's Introduction

Chapter01-GEEKTIME

例子里集成了Breakpad 来获取发生 native crash 时候的系统信息和线程堆栈信息。

注意:由于例子里提供的 minidump_stackwalker 可能由于环境不同,无法启动,建议同学自行编译来获取工具,具体教程可见https://github.com/google/breakpad

编译环境

Android Studio 3.2 CMAKE NDK(使用ndk 16-19版本)

项目构建

例子采用 CMAKE 来构建 breakpad 库, 项目可直接导入 AndroidStudio 运行

例子支持armeabi-v7a,arm64-v8a,x86 三种平台。

  1. 点击crash按钮应用会发生一个native崩溃

  2. 生成的 crash信息,如果授予Sdcard权限会优先存放在/sdcard/crashDump下,便于我们做进一步的分析。反之会放到目录 /data/data/com.dodola.breakpad/files/crashDump

截图

Dump 日志分析

  1. 将抓取到的日志拉取到本地中
  2. 使用例子中提供的 tools/mac/minidump_stackwalker 工具来根据 minidump 文件生成堆栈跟踪log
	 ./tools/mac/minidump_stackwalk crashDump/***.dmp >crashLog.txt 
  1. 打开文件后可以看到一个详细的 crash 日志,如下
Operating system: Android
                  0.0.0 Linux 4.4.78-perf-gdd4cbe9-00529-g1a92c1c #1 SMP PREEMPT Thu Nov 22 03:44:52 CST 2018 armv8l
CPU: arm
     ARMv1 Qualcomm part(0x51008010) features: half,thumb,fastmult,vfpv2,edsp,neon,vfpv3,tls,vfpv4,idiva,idivt
     8 CPUs

GPU: UNKNOWN

Crash reason:  SIGSEGV /SEGV_MAPERR
Crash address: 0x0
Process uptime: not available

Thread 0 (crashed)//crash 发生时候的线程
 0  libcrash-lib.so + 0x77e//发生 crash 的位置和寄存器信息
     r0 = 0x00000000    r1 = 0x00000001    r2 = 0xff80f2bc    r3 = 0xebe31230
     r4 = 0xec2850d4    r5 = 0x00000001    r6 = 0x00000000    r7 = 0xff80f2a8
     r8 = 0x00000056    r9 = 0xebe6f000   r10 = 0xff80f3a8   r12 = 0xcf1d8fd8
     fp = 0xff80f334    sp = 0xff80f294    lr = 0xcf1d579b    pc = 0xcf1d577e
    Found by: given as instruction pointer in context

    Stack contents:
     ff80f294 00 00 00 00 30 12 e3 eb bc f2 80 ff bc f2 80 ff  ....0...........
     ff80f2a4 30 12 e3 eb 98 f5 80 ff 65 40 32 cf              0.......e@2.    
    Possible instruction pointers:

 1  base.odex + 0x9063
     sp = 0xff80f2b0    pc = 0xcf324065
    Found by: stack scanning

    Stack contents:
     ff80f2b0 d4 50 28 ec                                      .P(.            
    Possible instruction pointers:

 2  dalvik-LinearAlloc (deleted) + 0xd2
     sp = 0xff80f2b4    pc = 0xec2850d4
    Found by: stack scanning

    Stack contents:
     ff80f2b4 74 05 81 ff 01 00 00 00 68 0c 84 13              t.......h...    
    Possible instruction pointers:

 3  dalvik-main space (region space) (deleted) + 0xc40c66
     sp = 0xff80f2c0    pc = 0x13840c68
    Found by: stack scanning

    Stack contents:
     ff80f2c0 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     ff80f2d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     ff80f2e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     ff80f2f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
     ff80f300 00 00 00 00 01 00 00 00 00 00 00 00 98 f5 80 ff  ................
     ff80f310 56 00 00 00 a8 f3 80 ff 34 f3 80 ff e3 7f b5 eb  V.......4.......
    Possible instruction pointers:

 4  libart.so + 0x3e1fe1
     sp = 0xff80f320    pc = 0xebb57fe3
    Found by: stack scanning

    Stack contents:
     ff80f320 00 00 00 00 68 0c 84 13                          ....h...        
    Possible instruction pointers:
  1. 符号解析,可以使用 ndk 中提供的addr2line来根据地址进行一个符号反解的过程,该工具在 $NDK_HOME/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-addr2line

注意:此处要注意一下平台,如果是 arm64位的 so,解析是需要使用 aarch64-linux-android-4.9下的工具链

arm-linux-androideabi-addr2line -f -C -e sample/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi-v7a/libcrash-lib.so 0x77e                           
//输出结果如下
Crash()

补充内容

关于在 x86模拟器下无法生成 crash 日志问题的解决方法

在 x86 模拟器下无法生成日志的解决方法如下:

  1. 将 ndk 切换到 16b,下载地址: https://developer.android.com/ndk/downloads/older_releases?hl=zh-cn mac 版:https://dl.google.com/android/repository/android-ndk-r16b-darwin-x86_64.zip
  2. 在 Androidstudio 里设置 ndk 路径为ndk-16b的路径
  3. 在 sample 和 breakpad-build 的 build.gradle 配置里增加如下配置
 externalNativeBuild {
            cmake {
                cppFlags "-std=c++11"
                arguments "-DANDROID_TOOLCHAIN=gcc"
            }
        }

相关内容

https://github.com/google/breakpad 例子里只提供了 Mac 的工具,如果需要其他平台的工具,可以去编译源码获得,可以参照 breakpad 项目的说明文档来编译获取。

chapter01's People

Contributors

dodola avatar shwenzhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chapter01's Issues

模拟器上运行无dump文件,更换了ndk-16b出现以下错误

externalNativeBuild { cmake { path "src/main/cpp/CMakeLists.txt" cppFlags "-std=c++11" arguments "-DANDROID_TOOLCHAIN=gcc" } }

FAILURE: Build failed with an exception.

  • Where:
    Build file '/Users/jiangzehu/GeekTime/Chapter01/breakpad-build/build.gradle' line: 29

  • What went wrong:
    A problem occurred evaluating project ':breakpad-build'.

Could not find method cppFlags() for arguments [-std=c++11] on object of type com.android.build.gradle.internal.dsl.CmakeOptions.

有人遇到过吗

Symbol not found

使用Chapter01的代码编译安装后,运行生成的dmp文件移动到桌面,
使用 minidump_stackwalk crashDump /***.dmp > crashLog.txt 执行失败。
显示:
dyld: Symbol not found: __ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE
Referenced from: /Users/steven/Downloads/Chapter01-master/tools/mac/minidump_stackwalk
Expected in: /usr/lib/libstdc++.6.dylib
in /Users/steven/Downloads/Chapter01-master/tools/mac/minidump_stackwalk
Abort trap: 6

从网上资料看应该是minidump执行还需要symbol文件,但是不见有.so文件可以转换。

关于 breakpad 构建的一些疑问

您好,作者,我在查看breakpad makefile的时候,发现如下注释

breakpad/android/google_breakpad/Android.mk

# Breakpad uses inline ARM assembly that requires the library
# to be built in ARM mode. Otherwise, the build will fail with
# cryptic assembler messages like:
#   Compile++ thumb  : google_breakpad_client <= crash_generation_client.cc
#   /tmp/cc8aMSoD.s: Assembler messages:
#   /tmp/cc8aMSoD.s:132: Error: invalid immediate: 288 is out of range
#   /tmp/cc8aMSoD.s:244: Error: invalid immediate: 296 is out of range
LOCAL_ARM_MODE := arm

注释里提到因为内联了一些arm平台的汇编代码,所以必须在arm的模式下构建。那为啥我们可以正常编译出x86的so呢?

期待您的回复,感激不尽。

这是我找到的一点资料

无法将dmp文件解析成txt

自己编译了breakpad,使用编译后的microdump_stackwalk 执行命令, ./tools/mac/microdump_stackwalk test2 > crashLog.txt

报如下错误,网上查不到相关解决方法

`
basic_code_modules.cc:111: INFO: No module at 0x0

stackwalker.cc:270: ERROR: Unknown CPU type 0x0, can't choose a stackwalker implementation

microdump_processor.cc:82: ERROR: No stackwalker found for microdump.

microdump_stackwalk.cc:118: ERROR: MicrodumpProcessor::Process failed (code = 3)
`

用minidump_stackwalk分析dmp文件失败

我使用的是macOS 10.13.6
我成功把crash文件抓取到本地并且本地编译了minidump_stackwalk,但是使用工具的时候,terminal会报很多错误,用google搜索也找不到答案

➜  processor git:(5467393a) ✗ ./minidump_stackwalk crashDump/e9c42b5d-8a0f-480d-d086608e-54b9110c.dmp >crashLog.txt
2018-12-09 23:42:35: minidump.cc:5103: INFO: Minidump opened minidump crashDump/e9c42b5d-8a0f-480d-d086608e-54b9110c.dmp
2018-12-09 23:42:35: minidump.cc:5233: INFO: Minidump not byte-swapping minidump
2018-12-09 23:42:35: minidump.cc:5876: INFO: GetStream: type 15 not present
2018-12-09 23:42:35: minidump.cc:5876: INFO: GetStream: type 1197932545 not present
2018-12-09 23:42:35: minidump.cc:5876: INFO: GetStream: type 1197932546 not present
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /system/bin/app_process64
2018-12-09 23:42:35: minidump.cc:2147: INFO: MinidumpModule could not determine debug_file for /dev/ashmem/dalvik-main space (region space) (deleted)
2018-12-09 23:42:35: minidump.cc:2237: INFO: MinidumpModule could not determine debug_identifier for /dev/ashmem/dalvik-main space (region space) (deleted)
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /dev/ashmem/dalvik-main space (region space) (deleted)
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /data/dalvik-cache/arm64/system@[email protected]
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /data/dalvik-cache/arm64/system@[email protected]
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /data/dalvik-cache/arm64/system@[email protected]
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /data/dalvik-cache/arm64/system@[email protected]
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /data/dalvik-cache/arm64/system@[email protected]
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /data/dalvik-cache/arm64/system@[email protected]
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /data/dalvik-cache/arm64/system@[email protected]
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /data/dalvik-cache/arm64/system@[email protected]
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /data/dalvik-cache/arm64/system@[email protected]
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /data/dalvik-cache/arm64/system@[email protected]
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /data/dalvik-cache/arm64/system@[email protected]
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /data/dalvik-cache/arm64/system@[email protected]
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /data/dalvik-cache/arm64/system@[email protected]
2018-12-09 23:42:35: minidump.cc:2269: INFO: MinidumpModule could not determine version for /data/dalvik-cache/arm64/system@[email protected]

无法 dump crash 文件

dyld: Symbol not found: __ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE
Referenced from: /Users/chenchuan/StudioProjects/Chapter01/./tools/mac/minidump_stackwalk
Expected in: /usr/lib/libstdc++.6.dylib
in /Users/chenchuan/StudioProjects/Chapter01/./tools/mac/minidump_stackwalk
[1] 8483 abort ./tools/mac/minidump_stackwalk > crashLog.txt

dumpcallback 无法回调java函数

在DumpCallback中无法直接通过jni回调java函数。是否需要fork其他进程的方式进行?那么应该怎么处理才能正确获取应用崩溃时候的系统信息

mac(m1)抓取到nump文件之后使用minidump_stalkwalk分析堆栈信息失败

2021-07-18 15:56:34: minidump.cc:5089: INFO: Minidump opened minidump 17F575B9-84A9-49CE-B3DB-CD02E04E71D0.dmp
2021-07-18 15:56:34: minidump.cc:5219: INFO: Minidump not byte-swapping minidump
2021-07-18 15:56:34: minidump.cc:5871: INFO: GetStream: type 15 not present
2021-07-18 15:56:34: minidump.cc:5871: INFO: GetStream: type 7 not present
2021-07-18 15:56:34: minidump.cc:5871: INFO: GetStream: type 7 not present
2021-07-18 15:56:34: minidump.cc:5871: INFO: GetStream: type 1197932545 not present
2021-07-18 15:56:34: minidump.cc:5871: INFO: GetStream: type 6 not present
2021-07-18 15:56:34: minidump.cc:5871: INFO: GetStream: type 1197932546 not present
2021-07-18 15:56:34: minidump.cc:5871: INFO: GetStream: type 4 not present
2021-07-18 15:56:34: minidump.cc:5871: INFO: GetStream: type 14 not present
2021-07-18 15:56:34: minidump.cc:5871: INFO: GetStream: type 5 not present
2021-07-18 15:56:34: minidump.cc:5871: INFO: GetStream: type 3 not present
2021-07-18 15:56:34: minidump_processor.cc:180: ERROR: Minidump 17F575B9-84A9-49CE-B3DB-CD02E04E71D0.dmp has no thread list
2021-07-18 15:56:34: minidump_stackwalk.cc:108: ERROR: MinidumpProcessor::Process failed
2021-07-18 15:56:34: minidump.cc:5061: INFO: Minidump closing minidump

minidump_stackwalk 运行报错

./tools/mac/minidump_stackwalk ./crashDump/***.dmp > ./crashDump/crash.txt

报错:

dyld: Symbol not found: __ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE
  Referenced from: /Users/yvescheung/project/Chapter01/./tools/mac/minidump_stackwalk
  Expected in: /usr/lib/libstdc++.6.dylib
 in /Users/yvescheung/project/Chapter01/./tools/mac/minidump_stackwalk
zsh: abort      ./tools/mac/minidump_stackwalk ./crashDump/***.dmp > ./crashDump/crash.txt

使用 arm-linux-androideabi-addr2line 解析 log 时遇到 显示 ?? ??:0 的问题

问题描述

已经成功获取 crashLog.txt, 但是解析的时候遇到错误:

york@ubuntu:~/AndroidStudioProjects/Chapter01/tools/mac$ aarch64-linux-android-addr2line -f -C -e /home/york/AndroidStudioProjects/Chapter01/sample/build/intermediates/transforms/mergeJniLibs/debug/0/lib/armeabi-v7a/libcrash-lib.so 0x600
??
??:0

Google 搜索到的解决方案(未验证)

搜索许久,发现这篇博客上说:

解决出现 ??:0 , 没法展示源代码行数的问题
在Android.mk 文件中:

Java代码

LOCAL_CFLAGS := -D__STDC_CONSTANT_MACROS -Wl,-Map=test.map -g  

补充2个编译参数

-Wl,-Map=test.map -g .

增加gcc警告和调试标志

问题

sample 里用的是 CMAKE, 写法与 .mk 有所区别,能指导一下如何配置这个属性去解决这个问题吗?

couldn't find "libbreakpad-core.so"

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.dodola.breakpad-jCDdH1ua8M1bzPaGxwn39w==/base.apk"],nativeLibraryDirectories=[/data/app/com.dodola.breakpad-jCDdH1ua8M1bzPaGxwn39w==/lib/arm, /data/app/com.dodola.breakpad-jCDdH1ua8M1bzPaGxwn39w==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]] couldn't find "libbreakpad-core.so"

在生成crashlog.txt 的时候会有如下错误,但不影响log生成以及分析

2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /vendor/lib64/egl/libGLESv2_adreno.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libvixl-arm.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libart-compiler.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libopenjdk.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libjavacore.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libmediandk.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libmedia_jni.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libcamera2ndk.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libmtp.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libandroid.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libart.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libmediadrm.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libmediaplayerservice.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libstagefright_omx.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libwilhelm.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libmedia_helper.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libmars-service.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libsensor.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libpdfium.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libicuuc.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libdng_sdk.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libcamera_client.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libaudioclient.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/[email protected] could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libft2.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libinput.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libhwui.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/[email protected] could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/[email protected] could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libEGL.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libmediacore4g_vivo_public.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/[email protected] could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libvulkan.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libicui18n.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libdrmframework.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libmedia_omx.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/[email protected] could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libandroidfw.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libbinder.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libstagefright.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libtinyxml2.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libandroid_runtime.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libmediautils.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libhidltransport.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libmediaextractor.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libunwindstack.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libheif.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/[email protected] could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/[email protected] could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/[email protected] could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libgui.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libcamera_metadata.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libhwbinder.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libmediametrics.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/[email protected] could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/[email protected] could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libstagefright_foundation.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libmars-featureclient.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libpdx_default_transport.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libsoundtrigger.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libimg_utils.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libc++.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libvintf.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libmedia.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libepmhelper.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libminikin.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libdexfile.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/[email protected] could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/[email protected] could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/libmediadrmmetrics_lite.so could not be stored 2019-10-11 11:24:01: basic_code_modules.cc:70: ERROR: Module /system/lib64/[email protected] could not be stored 2019-10-11 11:24:01: stackwalker_arm64.cc:193: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001 2019-10-11 11:24:01: stackwalker_arm64.cc:c1: ERROR: Unable to read caller_fp from last_fp: 0x12c7349800000001

项目无法运行

Android Studio3.2.1,CMAKE,NDK都有,项目运行,因为gradle默认是milestone_1,下载很慢,我就改成了5.0-all,结果Make Project出现以下错误,很奇怪,是Android Studio本身的问题么?
image

crashDump 目录下没有崩溃日志文件

根据 README.md 里面的方法,成功运行了项目,然后授予存储权限、点击按钮项目崩溃,在 /sdcard/crashDump/ 目录下没有任何文件:

~/Documents/AndroidAdvanceWithGeektime/Chapter01 master*
❯ adb pull /sdcard/crashDump/ ~/Desktop
/sdcard/crashDump/: 0 files pulled.

无论是在真机测试(Android 7.1)还是用模拟器 (Android 9.0 和 Android 5.1) 测试都出现了这样的情况。
请问是还需要作其他操作么?

关于break-build这个module怎么来?

Demo中的module,breakpad-build这个module,看了一下src目录与下载下来编译之后的google/breakpad中的src目录基本相似,是单独新建一个C++moudule把这个src拷贝进去吗?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.