Application crash using native code

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) 

I saw that many crash reports are reported to Fabric using the above log, is there anyway to figure this out and find a solution for it? I tested on many devices, but I can not create the above log. About 300 crash reports on Fabric console over 7 days. I just included CrashlyticsNdk() in a new update. Can anyone help me identify the problem.

Thanks.

+7
android android-ndk jni crashlytics
source share
2 answers

here I answer my question after a long debugging, I found an error in the JNI code

old code

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

new code

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

this is a simple login for a substring, where I took the string size equal to the length of the string, but the length of the string + 1 after updating the size to N + 1, I solved my problem.

+3
source share

I think you have an older version or have problems in the gralloc.rk30board file. So you need to update it. try it. Hope this helps you. :)

+2
source share

All Articles