遇到这个问题
00 pc 00000000000f8ea4 /apex/com.android.runtime/lib64/libart.so [arm64-v8a::691979e9d66dfedf3fd32d27da323a02]
2
#01 pc 00000000000e8a38 /apex/com.android.runtime/lib64/libart.so [arm64-v8a::691979e9d66dfedf3fd32d27da323a02]
3
#02 pc 00000000000d6d34 /apex/com.android.runtime/lib64/libart.so (art::gc::accounting::ModUnionTableReferenceCache::VisitObjects(void (*)(art::mirror::Object*, void*), void*)+228) [arm64-v8a::691979e9d66dfedf3fd32d27da323a02]
4
#03 pc 00000000000e3638 /apex/com.android.runtime/lib64/libart.so (art::gc::collector::ConcurrentCopying::CopyingPhase()+1236) [arm64-v8a::691979e9d66dfedf3fd32d27da323a02]
5
#04 pc 00000000000e14e0 /apex/com.android.runtime/lib64/libart.so (art::gc::collector::ConcurrentCopying::RunPhases()+1148) [arm64-v8a::691979e9d66dfedf3fd32d27da323a02]
6
#05 pc 00000000000ffeb4 /apex/com.android.runtime/lib64/libart.so (art::gc::collector::GarbageCollector::Run(art::gc::GcCause, bool)+288) [arm64-v8a::691979e9d66dfedf3fd32d27da323a02]
7
#06 pc 000000000011f37c /apex/com.android.runtime/lib64/libart.so (art::gc::Heap::CollectGarbageInternal(art::gc::collector::GcType, art::gc::GcCause, bool)+2740) [arm64-v8a::691979e9d66dfedf3fd32d27da323a02]
8
#07 pc 0000000000131b5c /apex/com.android.runtime/lib64/libart.so (art::gc::Heap::ConcurrentGC(art::Thread*, art::gc::GcCause, bool)+124) [arm64-v8a::
用build.gradle 引入
implementation 。。。。。。。。。。。。。。
把jnilibs和libs下面的.so库删掉 build.gradle下面的 sourceset标签也删了
解决Android SIGSEGV(SEGV_MAPERR)错误
本文介绍了在遇到Android应用崩溃错误#2002 SIGSEGV(SEGV_MAPERR)时的排查过程,涉及libart.so库中的异常堆栈。问题可能与libart.so中的内存管理及并发复制垃圾收集有关。解决方案包括检查并清理build.gradle文件中的.so库引用,删除不必要的jnilibs和libs目录下的.so文件,以及调整sourceset配置。
3547

被折叠的 条评论
为什么被折叠?



