应用程序与本机代码崩溃

时间:2017-12-05 03:32:13

标签: android android-ndk java-native-interface crashlytics .so

Crashed: .onlineradioapp|
0  gralloc.rk30board.so           0xb4a2d616 bool art::interpreter::DoCall<false, true>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)
1  gralloc.rk30board.so           0xb4a315c9 (Missing)
2  gralloc.rk30board.so           0xb48e2465 art::JValue art::interpreter::ExecuteGotoImpl<true, false>(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue)
3  gralloc.rk30board.so           0xb4a1349d artInterpreterToInterpreterBridge
4  gralloc.rk30board.so           0xb4a2d031 bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)
5  gralloc.rk30board.so           0xb48f2fef art::JValue art::interpreter::ExecuteGotoImpl<false, false>(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue)
6  gralloc.rk30board.so           0xb4a133dd artInterpreterToInterpreterBridge
7  gralloc.rk30board.so           0xb4a2d031 bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)
8  gralloc.rk30board.so           0xb48f2c1b art::JValue art::interpreter::ExecuteGotoImpl<false, false>(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue)
9  gralloc.rk30board.so           0xb4a133dd artInterpreterToInterpreterBridge
10 gralloc.rk30board.so           0xb4a2d031 bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)
11 gralloc.rk30board.so           0xb4a30de9 (Missing)
12 gralloc.rk30board.so           0xb48f308b art::JValue art::interpreter::ExecuteGotoImpl<false, false>(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue)
13 gralloc.rk30board.so           0xb4a133dd artInterpreterToInterpreterBridge
14 gralloc.rk30board.so           0xb4a2d031 bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)
15 gralloc.rk30board.so           0xb48f2c1b art::JValue art::interpreter::ExecuteGotoImpl<false, false>(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue)
16 gralloc.rk30board.so           0xb4a133dd artInterpreterToInterpreterBridge
17 gralloc.rk30board.so           0xb4a2d031 bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)
18 gralloc.rk30board.so           0xb48f2c1b art::JValue art::interpreter::ExecuteGotoImpl<false, false>(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue)
19 gralloc.rk30board.so           0xb4a133dd artInterpreterToInterpreterBridge
20 gralloc.rk30board.so           0xb4a2d031 bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)
21 gralloc.rk30board.so           0xb48f2c1b art::JValue art::interpreter::ExecuteGotoImpl<false, false>(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue)
22 gralloc.rk30board.so           0xb4a133dd artInterpreterToInterpreterBridge
23 gralloc.rk30board.so           0xb4a2d031 bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)
24 gralloc.rk30board.so           0xb48f2c1b art::JValue art::interpreter::ExecuteGotoImpl<false, false>(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue)
25 gralloc.rk30board.so           0xb4a133dd artInterpreterToInterpreterBridge
26 gralloc.rk30board.so           0xb4a2d031 bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)
27 gralloc.rk30board.so           0xb48f2c1b art::JValue art::interpreter::ExecuteGotoImpl<false, false>(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue)
28 gralloc.rk30board.so           0xb4a133dd artInterpreterToInterpreterBridge
29 gralloc.rk30board.so           0xb4a2d031 bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)
30 gralloc.rk30board.so           0xb48f2c1b art::JValue art::interpreter::ExecuteGotoImpl<false, false>(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue)
31 gralloc.rk30board.so           0xb4a133dd artInterpreterToInterpreterBridge
32 gralloc.rk30board.so           0xb4a2d031 bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)
33 gralloc.rk30board.so           0xb4a30de9 (Missing)
34 gralloc.rk30board.so           0xb48f308b art::JValue art::interpreter::ExecuteGotoImpl<false, false>(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue)
35 gralloc.rk30board.so           0xb4a131b5 art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*)
36 gralloc.rk30board.so           0xb4c1973b artQuickToInterpreterBridge
37 gralloc.rk30board.so           0xb491d003 (Missing)
38 boot.oat                       0x73b4e2bb (Missing)

我已经看到在Fabric上面报告了许多崩溃报告以及上面的日志,无论如何要理解它并找到解决方案吗?我已在许多设备上进行了测试,但我无法生成上述日志。 7天内Fabric console约有300封崩溃报告。我刚刚在新的更新中启用了CrashlyticsNdk()。 任何人都可以帮我确定问题。

谢谢。

2 个答案:

答案 0 :(得分:3)

这里我经过长时间的调试后回答了我自己的问题,我在JNI代码中发现了一个错误

旧代码

char signToken[endingNumber - startingNumber];
    int at = 0;
    for (int i = startingNumber; i < endingNumber; i++) {
        signToken[at] = cstr[i];
        at++;
    }
    signToken[at] = '\0';

新代码

 char signToken[endingNumber - startingNumber + 1];
    int at = 0;
    for (int i = startingNumber; i < endingNumber; i++) {
        signToken[at] = cstr[i];
        at++;
    }
    signToken[at] = '\0';

这是一个子字符串的简单登录,其中我的字符串大小等于字符串的长度,但是在将大小更新为N + 1之后它是字符串+ 1的长度,我已经解决了我的问题。

答案 1 :(得分:2)

我认为您有旧版本或文件gralloc.rk30board中存在问题。您需要更新它。 试试This 希望这会帮助你。 :)