天天看點

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8

Android 10 華為手機運作原生app報錯:

Timestamp: 2021-08-19 09:58:05+0800

2021-08-19 09:58:05.940 A/DEBUG: pid: 7178, tid: 7227, name: LeakCanary-Heap >>> com.jjkj.sbdj <<<

2021-08-19 09:58:05.940 A/DEBUG: uid: 10465

2021-08-19 09:58:05.940 A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8

2021-08-19 09:58:05.940 A/DEBUG: Cause: null pointer dereference

2021-08-19 09:58:05.940 A/DEBUG: r0 00000000 r1 bea28920 r2 00000004 r3 52c00000

2021-08-19 09:58:05.940 A/DEBUG: r4 000012b4 r5 70c6c020 r6 71238648 r7 712398e8

2021-08-19 09:58:05.940 A/DEBUG: r8 71238634 r9 bea28920 r10 ee9b617c r11 00002028

2021-08-19 09:58:05.940 A/DEBUG: ip 80000000 sp bea288c0 lr eb21b2f3 pc eb21b2d6

2021-08-19 09:58:06.067 A/DEBUG: backtrace:

2021-08-19 09:58:06.067 A/DEBUG: #00 pc 001922d6 /apex/com.android.runtime/lib/libart.so (ZN3art6mirror6Object15VisitReferencesILb1ELNS_17VerifyObjectFlagsE0ELNS_17ReadBarrierOptionE1ENS_2gc9collector17ConcurrentCopying16RefFieldsVisitorILb0EEES9_EEvRKT2_RKT3+2046) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.067 A/DEBUG: #01 pc 00186243 /apex/com.android.runtime/lib/libart.so (art::gc::collector::ConcurrentCopying::ImmuneSpaceScanObjVisitor::Callback(art::mirror::Object*, void*)+70) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.067 A/DEBUG: #02 pc 001795d3 /apex/com.android.runtime/lib/libart.so (art::gc::accounting::ModUnionTableReferenceCache::VisitObjects(void ()(art::mirror::Object, void*), void*)+162) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.067 A/DEBUG: #03 pc 0018262b /apex/com.android.runtime/lib/libart.so (art::gc::collector::ConcurrentCopying::CopyingPhase()+758) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.067 A/DEBUG: #04 pc 00180ef7 /apex/com.android.runtime/lib/libart.so (art::gc::collector::ConcurrentCopying::RunPhases()+910) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.067 A/DEBUG: #05 pc 0019746f /apex/com.android.runtime/lib/libart.so (art::gc::collector::GarbageCollector::Run(art::gc::GcCause, bool)+214) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.067 A/DEBUG: #06 pc 001ae775 /apex/com.android.runtime/lib/libart.so (art::gc::Heap::CollectGarbageInternal(art::gc::collector::GcType, art::gc::GcCause, bool)+1980) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.067 A/DEBUG: #07 pc 000ec363 /system/framework/arm/boot.oat (art_jni_trampoline+74) (BuildId: d6ea81505df17fe16eabb327ea98b75323334bc9)

2021-08-19 09:58:06.067 A/DEBUG: #08 pc 000e3bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #09 pc 004558bb /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #10 pc 000ebffd /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+160) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #11 pc 0022499f /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+274) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #12 pc 00220b07 /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+802) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #13 pc 0022c951 /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+15600) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #14 pc 000e9075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #15 pc 000e2acc /apex/com.android.runtime/javalib/core-oj.jar (java.lang.Runtime.gc)

2021-08-19 09:58:06.068 A/DEBUG: #16 pc 00200c95 /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.14250088896784669869+492) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #17 pc 00205543 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+146) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #18 pc 00220aed /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+776) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #19 pc 0022d977 /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+19734) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #20 pc 000e9075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #21 pc 00079f30 [anon:dalvik-classes3.dex extracted in memory from /data/app/com.jjkj.sbdj-t1i_b4GoLGb4MOpraLUqlg==/base.apk!classes3.dex] (leakcanary.GcTriggerKaTeX parse error: Expected 'EOF', got '#' at position 55: …A/DEBUG: #̲22 pc 00200c95 …onDumpHeapReceived$1.run)

2021-08-19 09:58:06.068 A/DEBUG: #28 pc 00200c95 /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.14250088896784669869+492) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #29 pc 00205543 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+146) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #30 pc 00220aed /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+776) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #31 pc 0022da1f /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+19902) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #32 pc 000e9075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #33 pc 0030c744 /system/framework/framework.jar (android.os.Handler.handleCallback)

2021-08-19 09:58:06.068 A/DEBUG: #34 pc 00200c95 /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.14250088896784669869+492) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #35 pc 00205543 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+146) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #36 pc 00220aed /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+776) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #37 pc 00229863 /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+3074) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #38 pc 000e9075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #39 pc 0030c5ac /system/framework/framework.jar (android.os.Handler.dispatchMessage)

2021-08-19 09:58:06.068 A/DEBUG: #40 pc 00200c95 /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.14250088896784669869+492) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #41 pc 00205543 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+146) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #42 pc 00220aed /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+776) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #43 pc 0022d977 /apex/com.android.runtime/lib/libart.so (void art::interpreter::ExecuteSwitchImplCpp<false, false>(art::interpreter::SwitchImplContext*)+19734) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #44 pc 000e9075 /apex/com.android.runtime/lib/libart.so (ExecuteSwitchImplAsm+4) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #45 pc 0033754c /system/framework/framework.jar (android.os.Looper.loop)

2021-08-19 09:58:06.068 A/DEBUG: #46 pc 0044d379 /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+1068) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #47 pc 000de994 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+20) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #48 pc 0030bc6c /system/framework/framework.jar (android.os.HandlerThread.run+56)

2021-08-19 09:58:06.068 A/DEBUG: #49 pc 00200bb3 /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.14250088896784669869+266) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #50 pc 00205465 /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+120) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #51 pc 0043ed29 /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+832) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #52 pc 000e85a1 /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #53 pc 000e3bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #54 pc 004558bb /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #55 pc 000ebffd /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+160) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #56 pc 003932bb /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+54) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #57 pc 00393fc5 /apex/com.android.runtime/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+300) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #58 pc 003c7f0b /apex/com.android.runtime/lib/libart.so (art::Thread::CreateCallback(void*)+982) (BuildId: f19139b4309180c887ec6b2ca9af235c)

2021-08-19 09:58:06.068 A/DEBUG: #59 pc 0009c547 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20) (BuildId: 86eafa5c12a5d92a0234bc4649e9b5e8)

2021-08-19 09:58:06.068 A/DEBUG: #60 pc 000559f7 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: 86eafa5c12a5d92a0234bc4649e9b5e8)

我的解決辦法:

把local.propertiers檔案改成:

sdk.dir=D:\Downloads\AS\sdk1\sdk1

ndk.dir=D:\Downloads\AS\sdk1\sdk1\ndk\android-ndk-r14b

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8

,然後clear,

重新開機Androidstudio,

解除安裝app,編譯并重裝app,

解決

參考:fseek crashes with sigsegv #562