signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) crash only on some devices - android

I have been getting this crash on Xiaomi devices mainly while on most other devices the crash does not occur. The crash seems random and happens anytime while using the app. I cant seem to find any solution and Do no know how to track down the crash. Any help would be useful. Below are the crash logs.
2019-03-05 15:11:50.992 16683-16683/? A/DEBUG: Build fingerprint: 'xiaomi/cereus/cereus:8.1.0/O11019/V10.0.6.0.OCGMIFH:user/release-keys'
2019-03-05 15:11:50.992 16683-16683/? A/DEBUG: Revision: '0'
2019-03-05 15:11:50.992 16683-16683/? A/DEBUG: ABI: 'arm'
2019-03-05 15:11:50.992 16683-16683/? A/DEBUG: pid: 15781, tid: 15794, name: FinalizerDaemon >>> com.avadna.luneblaze <<<
2019-03-05 15:11:50.993 16683-16683/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2
2019-03-05 15:11:50.993 16683-16683/? A/DEBUG: Cause: null pointer dereference
2019-03-05 15:11:50.993 16683-16683/? A/DEBUG: r0 aba25568 r1 00000006 r2 00000006 r3 00000002
2019-03-05 15:11:50.993 16683-16683/? A/DEBUG: r4 aba25568 r5 00000000 r6 00000000 r7 91b56c48
2019-03-05 15:11:50.993 16683-16683/? A/DEBUG: r8 00000000 r9 a329a200 sl 00000000 fp 91b569ec
2019-03-05 15:11:50.993 16683-16683/? A/DEBUG: ip 00000002 sp 91b56950 lr ad8c2b19 pc 00000002 cpsr 20070010
2019-03-05 15:11:51.124 16638-16659/? I/zygote: Waiting for a blocking GC ProfileSaver
2019-03-05 15:11:51.277 565-565/? I/Proximity: distance = 1
2019-03-05 15:11:51.364 16683-16683/? A/DEBUG: backtrace:
2019-03-05 15:11:51.364 16683-16683/? A/DEBUG: #00 pc 00000002 <unknown>
2019-03-05 15:11:51.364 16683-16683/? A/DEBUG: #01 pc 00046b17 /system/lib/libbinder.so (android::Parcel::freeDataNoInit()+34)
2019-03-05 15:11:51.364 16683-16683/? A/DEBUG: #02 pc 00046aed /system/lib/libbinder.so (android::Parcel::~Parcel()+4)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #03 pc 000bb52d /system/lib/libandroid_runtime.so (android::android_os_Parcel_destroy(_JNIEnv*, _jclass*, long long)+6)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #04 pc 005f23bf /system/framework/arm/boot-framework.oat (offset 0x5f1000) (android.os.Binder.restoreCallingIdentity [DEDUPED]+102)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #05 pc 00406775 /system/lib/libart.so (art_quick_invoke_stub_internal+68)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #06 pc 0040b9eb /system/lib/libart.so (art_quick_invoke_static_stub+226)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #07 pc 000b0317 /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+174)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #08 pc 00201973 /system/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+226)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #09 pc 001fcf01 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+592)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #10 pc 003f19a5 /system/lib/libart.so (MterpInvokeStatic+184)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #11 pc 003f8d94 /system/lib/libart.so (ExecuteMterpImpl+14612)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #12 pc 001e3955 /system/lib/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+344)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #13 pc 001e8019 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+148)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #14 pc 001fcee9 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+568)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #15 pc 003f1837 /system/lib/libart.so (MterpInvokeDirect+250)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #16 pc 003f8d14 /system/lib/libart.so (ExecuteMterpImpl+14484)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #17 pc 001e3955 /system/lib/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+344)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #18 pc 001e8019 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+148)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #19 pc 001fcee9 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+568)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #20 pc 003f098b /system/lib/libart.so (MterpInvokeVirtual+482)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #21 pc 003f8c14 /system/lib/libart.so (ExecuteMterpImpl+14228)
2019-03-05 15:11:51.365 16683-16683/? A/DEBUG: #22 pc 001e3955 /system/lib/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+344)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #23 pc 001e8019 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+148)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #24 pc 001fcee9 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+568)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #25 pc 003f1837 /system/lib/libart.so (MterpInvokeDirect+250)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #26 pc 003f8d14 /system/lib/libart.so (ExecuteMterpImpl+14484)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #27 pc 001e3955 /system/lib/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+344)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #28 pc 001e8019 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+148)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #29 pc 001fcee9 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+568)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #30 pc 003f098b /system/lib/libart.so (MterpInvokeVirtual+482)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #31 pc 003f8c14 /system/lib/libart.so (ExecuteMterpImpl+14228)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #32 pc 001e3955 /system/lib/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+344)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #33 pc 001e8019 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+148)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #34 pc 001fcee9 /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+568)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #35 pc 003f1577 /system/lib/libart.so (MterpInvokeInterface+1078)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #36 pc 003f8e14 /system/lib/libart.so (ExecuteMterpImpl+14740)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #37 pc 001e3955 /system/lib/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+344)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #38 pc 001e7f61 /system/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*)+92)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #39 pc 003e6275 /system/lib/libart.so (artQuickToInterpreterBridge+924)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #40 pc 0040acf1 /system/lib/libart.so (art_quick_to_interpreter_bridge+32)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #41 pc 00406775 /system/lib/libart.so (art_quick_invoke_stub_internal+68)
2019-03-05 15:11:51.366 16683-16683/? A/DEBUG: #42 pc 0040b8e5 /system/lib/libart.so (art_quick_invoke_stub+228)
2019-03-05 15:11:51.367 16683-16683/? A/DEBUG: #43 pc 000b02f3 /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+138)
2019-03-05 15:11:51.367 16683-16683/? A/DEBUG: #44 pc 003571f1 /system/lib/libart.so (art::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::ArgArray*, art::JValue*, char const*)+52)
2019-03-05 15:11:51.367 16683-16683/? A/DEBUG: #45 pc 00357fe7 /system/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+322)
2019-03-05 15:11:51.367 16683-16683/? A/DEBUG: #46 pc 00377ac9 /system/lib/libart.so (art::Thread::CreateCallback(void*)+836)
2019-03-05 15:11:51.367 16683-16683/? A/DEBUG: #47 pc 00047507 /system/lib/libc.so (__pthread_start(void*)+22)
2019-03-05 15:11:51.367 16683-16683/? A/DEBUG: #48 pc 0001af75 /system/lib/libc.so (__start_thread+32)

Found the solution and seems to be working for me as of now. The issue was trying to parse google location object with Gson. Seems like you should not try parsing native classes for some reason.
Same issue as this one

Related

HeifDecoderImpl causes 'decStrong() called too many times'

My Android app "Photo Compare" (https://github.com/sniederb/photocompare) uses a "Subsampling Scale Image View" (from Dave Morrissey) to display images, and allows zooming and panning. This almost always works well, but on Android 11 with HEIC images, the activity crashes as soon as I zoom in.
The aborting thread is
runtime.cc:655] Aborting thread:
runtime.cc:655] "HeifDecode" prio=6 tid=32 Native
runtime.cc:655] | group="" sCount=0 dsCount=0 flags=0 obj=0x12c40020 self=0xe9022210
runtime.cc:655] | sysTid=18958 nice=-2 cgrp=top-app sched=0/0 handle=0xc6e561e0
runtime.cc:655] | state=R schedstat=( 98486663 91130505 137 ) utm=2 stm=7 core=2 HZ=100
runtime.cc:655] | stack=0xc6d5b000-0xc6d5d000 stackSize=1008KB
runtime.cc:655] | held mutexes= "abort lock"
runtime.cc:655] native: #00 pc 00542d9e /apex/com.android.art/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+110)
runtime.cc:655] native: #01 pc 006a0897 /apex/com.android.art/lib/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const+1015)
runtime.cc:655] native: #02 pc 0069a171 /apex/com.android.art/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const+65)
runtime.cc:655] native: #03 pc 006522c5 /apex/com.android.art/lib/libart.so (art::AbortState::DumpThread(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Thread*) const+53)
runtime.cc:655] native: #04 pc 00639abb /apex/com.android.art/lib/libart.so (art::Runtime::Abort(char const*)+2587)
runtime.cc:655] native: #05 pc 00025a23 /apex/com.android.art/lib/libartbase.so (std::__1::__function::__func<void (*)(char const*), std::__1::allocator<void (*)(char const*)>, void (char const*)>::operator()(char const*&&)+35)
runtime.cc:655] native: #06 pc 0001588f /system/lib/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+79)
runtime.cc:655] native: #07 pc 00006dbd /system/lib/liblog.so (__android_log_assert+285)
runtime.cc:655] native: #08 pc 000102a2 /system/lib/libutils.so (android::RefBase::decStrong(void const*) const+146)
runtime.cc:655] native: #09 pc 00004de4 /system/lib/libheif.so (android::HeifDecoderImpl::decodeAsync()+436)
runtime.cc:655] native: #10 pc 00004c23 /system/lib/libheif.so (android::HeifDecoderImpl::DecodeThread::threadLoop()+35)
runtime.cc:655] native: #11 pc 00015116 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+374)
runtime.cc:655] native: #12 pc 00098fee /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+174)
runtime.cc:655] native: #13 pc 000147d9 /system/lib/libutils.so (thread_data_t::trampoline(thread_data_t const*)+457)
runtime.cc:655] native: #14 pc 000e6974 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+100)
runtime.cc:655] native: #15 pc 00078567 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+71)
runtime.cc:655] (no managed stack frames)
and the crash report states
2021-01-09 14:12:53.736 19089-19089/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-01-09 14:12:53.736 19089-19089/? A/DEBUG: Build fingerprint: 'google/sdk_gphone_x86_arm/generic_x86_arm:11/RSR1.201013.001/6903271:userdebug/dev-keys'
2021-01-09 14:12:53.736 19089-19089/? A/DEBUG: Revision: '0'
2021-01-09 14:12:53.737 19089-19089/? A/DEBUG: ABI: 'x86'
2021-01-09 14:12:53.737 19089-19089/? A/DEBUG: Timestamp: 2021-01-09 14:12:53+0100
2021-01-09 14:12:53.737 19089-19089/? A/DEBUG: pid: 18085, tid: 18958, name: HeifDecode >>> ch.want.imagecompare <<<
2021-01-09 14:12:53.737 19089-19089/? A/DEBUG: uid: 10153
2021-01-09 14:12:53.737 19089-19089/? A/DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2021-01-09 14:12:53.738 19089-19089/? A/DEBUG: Abort message: 'decStrong() called on 0xc7e43d10 too many times'
2021-01-09 14:12:53.738 19089-19089/? A/DEBUG: eax 00000000 ebx 000046a5 ecx 00004a0e edx 00000006
2021-01-09 14:12:53.738 19089-19089/? A/DEBUG: edi f4a5681e esi c6e559c0
2021-01-09 14:12:53.738 19089-19089/? A/DEBUG: ebp f7517b90 esp c6e55968 eip f7517b99
2021-01-09 14:12:53.744 19089-19089/? A/DEBUG: backtrace:
2021-01-09 14:12:53.745 19089-19089/? A/DEBUG: #00 pc 00000b99 [vdso] (__kernel_vsyscall+9)
2021-01-09 14:12:53.745 19089-19089/? A/DEBUG: #01 pc 0005ad68 /apex/com.android.runtime/lib/bionic/libc.so (syscall+40) (BuildId: 6e3a0180fa6637b68c0d181c343e6806)
2021-01-09 14:12:53.745 19089-19089/? A/DEBUG: #02 pc 00076511 /apex/com.android.runtime/lib/bionic/libc.so (abort+209) (BuildId: 6e3a0180fa6637b68c0d181c343e6806)
2021-01-09 14:12:53.745 19089-19089/? A/DEBUG: #03 pc 00639a4d /apex/com.android.art/lib/libart.so (art::Runtime::Abort(char const*)+2477) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
2021-01-09 14:12:53.745 19089-19089/? A/DEBUG: #04 pc 00025a23 /apex/com.android.art/lib/libartbase.so (std::__1::__function::__func<void (*)(char const*), std::__1::allocator<void (*)(char const*)>, void (char const*)>::operator()(char const*&&)+35) (BuildId: 41e9e0cbb5db4bb6875333d66af6569f)
2021-01-09 14:12:53.746 19089-19089/? A/DEBUG: #05 pc 0001588f /system/lib/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+79) (BuildId: 3abc3ce4c3b633a64b14c50cb931a64b)
2021-01-09 14:12:53.746 19089-19089/? A/DEBUG: #06 pc 00006dbd /system/lib/liblog.so (__android_log_assert+285) (BuildId: bbac430fc6349b937996bb914e70c060)
2021-01-09 14:12:53.746 19089-19089/? A/DEBUG: #07 pc 000102a2 /system/lib/libutils.so (android::RefBase::decStrong(void const*) const+146) (BuildId: ab4be013cda31e8c45d48aa23a89d0f8)
2021-01-09 14:12:53.746 19089-19089/? A/DEBUG: #08 pc 00004de4 /system/lib/libheif.so (android::HeifDecoderImpl::decodeAsync()+436) (BuildId: 49a068f457bf8577f622fb97089c3c5d)
2021-01-09 14:12:53.746 19089-19089/? A/DEBUG: #09 pc 00004c23 /system/lib/libheif.so (android::HeifDecoderImpl::DecodeThread::threadLoop()+35) (BuildId: 49a068f457bf8577f622fb97089c3c5d)
2021-01-09 14:12:53.746 19089-19089/? A/DEBUG: #10 pc 00015116 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+374) (BuildId: ab4be013cda31e8c45d48aa23a89d0f8)
2021-01-09 14:12:53.747 19089-19089/? A/DEBUG: #11 pc 00098fee /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+174) (BuildId: 588f2cd5873ff4273bb25b25edb82606)
2021-01-09 14:12:53.747 19089-19089/? A/DEBUG: #12 pc 000147d9 /system/lib/libutils.so (thread_data_t::trampoline(thread_data_t const*)+457) (BuildId: ab4be013cda31e8c45d48aa23a89d0f8)
2021-01-09 14:12:53.747 19089-19089/? A/DEBUG: #13 pc 000e6974 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+100) (BuildId: 6e3a0180fa6637b68c0d181c343e6806)
My understanding so far is that the HeifDecoderImpl is asked to decode image regions asynchronously (this is what "Subsampling Scale Image View" does, afaik), and in doing so attempts to free a resource too often, resulting in RefBase trying to decrease the strong reference count too often.
As an app programmer, I'm stumped and unsure if there's anything I can do here. Both HeifDecoderImpl and RefBase appear to be core Android code. Do I need to review the "Subsampling Scale Image View" library? Any pointer is appreciated.
It appears the error occurs due to the default Bitmap.Config of Bitmap.Config.RGB_565 used by SubsamplingScaleImageView (acutally in SkiaImageDecoder.java, part of that package). By switching to
SubsamplingScaleImageView.setPreferredBitmapConfig(Bitmap.Config.ARGB_8888);
the error disappears.

Crash when run apk file with size over 2GB

When I installed APK game local (build by cocos2d-x) (copy over USB) with resources over size 2GB, check log adb has error, google play store has popup keep stopping and i cannot run my apk :
A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 16853 (BlockingExecuto), pid 12159 (android.vending)
E/crash_dump32: unknown process state: t
A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
A/DEBUG: Build fingerprint: 'samsung/beyond2ltexx/beyond2:10/QP1A.190711.020/G975FXXU9DTJA:user/release-keys'
A/DEBUG: Revision: '26'
A/DEBUG: ABI: 'arm'
A/DEBUG: Timestamp:
2020-12-08 11:56:49+0700
A/DEBUG: pid: 12159, tid: 16853, name: BlockingExecuto >>> com.android.vending <<<
A/DEBUG: uid: 10109
A/DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
A/DEBUG: Abort message: 'ubsan: implicit-conversion'
A/DEBUG: r0 00000000 r1 000041d5 r2 00000006 r3 c479f180
A/DEBUG: r4 c479f194 r5 c479f178 r6 00002f7f r7 0000016b
A/DEBUG: r8 c479f190 r9 c479f180 r10 c479f1b0 r11 c479f1a0
A/DEBUG: ip 000041d5 sp c479f150 lr f58893b7 pc f58893ca
A/DEBUG: backtrace:
A/DEBUG: #00 pc 000603ca /apex/com.android.runtime/lib/bionic/libc.so (abort+166) (BuildId: 51d80220c9e0c42255369657a8641799)
A/DEBUG: #01 pc 000118d4 /system/lib/libutils.so (abort_with_message(char const*)+24) (BuildId: da88f99cb4c80fe4fe393ef8e8fd5c71)
A/DEBUG: #02 pc 000119cc /system/lib/libutils.so (__ubsan_handle_implicit_conversion_minimal_abort+24) (BuildId: da88f99cb4c80fe4fe393ef8e8fd5c71)
A/DEBUG: #03 pc 0000a1f9 /system/lib/libutils.so (android::FileMap::create(char const*, int, long long, unsigned int, bool)+336) (BuildId: da88f99cb4c80fe4fe393ef8e8fd5c71)
A/DEBUG: #04 pc 00021cd5 /system/lib/libandroidfw.so (android::ApkAssets::Open(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&, android::Asset::AccessMode) const+236) (BuildId: c2985fc4fb507640b2e6e08af143b74f)
A/DEBUG: #05 pc 0002124f /system/lib/libandroidfw.so (android::ApkAssets::LoadImpl(android::base::unique_fd_implandroid::base::DefaultCloser, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&, std::__1::unique_ptr<android::Asset, std::__1::default_deleteandroid::Asset>, std::__1::unique_ptr<android::LoadedIdmap const, std::__1::default_delete<android::LoadedIdmap const>>, bool, bool)+390) (BuildId: c2985fc4fb507640b2e6e08af143b74f)
A/DEBUG: #06 pc 00021069 /system/lib/libandroidfw.so (android::ApkAssets::Load(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&, bool)+40) (BuildId: c2985fc4fb507640b2e6e08af143b74f)
A/DEBUG: #07 pc 0014914b /system/lib/libandroid_runtime.so (android::NativeLoad(_JNIEnv*, _jclass*, _jstring*, unsigned char, unsigned char, unsigned char)+442) (BuildId: 80997d838eed4d8a33e6074aaefa721e)
A/DEBUG: #08 pc 002e8ae9 /system/framework/arm/boot-framework.oat (art_jni_trampoline+136) (BuildId: 08d023656c5c190cd87e02dca8cd73789c24a32e)
A/DEBUG: #09 pc 00442c2b /system/framework/arm/boot-framework.oat (android.content.pm.PackageParser.parseApkLiteInner+250) (BuildId: 08d023656c5c190cd87e02dca8cd73789c24a32e)
A/DEBUG: #10 pc 0044ad41 /system/framework/arm/boot-framework.oat (android.content.pm.PackageParser.parseMonolithicPackageLite+96) (BuildId: 08d023656c5c190cd87e02dca8cd73789c24a32e)
A/DEBUG: #11 pc 00450d17 /system/framework/arm/boot-framework.oat (android.content.pm.PackageParser.parseMonolithicPackage+70) (BuildId: 08d023656c5c190cd87e02dca8cd73789c24a32e)
A/DEBUG: #12 pc 00439495 /system/framework/arm/boot-framework.oat (android.content.pm.PackageManager.getPackageArchiveInfo+196) (BuildId: 08d023656c5c190cd87e02dca8cd73789c24a32e)
A/DEBUG: #13 pc 00eeaa41 /data/app/com.android.vending-9uL9ZPy1nPnI_iSyOwpVqw==/oat/arm/base.odex (com.google.android.finsky.verifier.impl.VerifyInstallTask.j+328)
A/DEBUG: #14 pc 000d7bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #15 pc 0042e22b /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+246) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #16 pc 000dffcb /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+194) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #17 pc 00210141 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+280) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #18 pc 0020ba83 /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*)+774) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #19 pc 00425947 /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+310) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #20 pc 000d2994 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+20) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #21 pc 0112a122 /data/app/com.android.vending-9uL9ZPy1nPnI_iSyOwpVqw==/oat/arm/base.vdex (com.google.android.finsky.verifier.impl.VerifyAppsInstallTask.Z+62)
A/DEBUG: #22 pc 004254a9 /apex/com.android.runtime/lib/libart.so (MterpInvokeDirect+980) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #23 pc 000d2914 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_direct+20) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #24 pc 0112ae72 /data/app/com.android.vending-9uL9ZPy1nPnI_iSyOwpVqw==/oat/arm/base.vdex (com.google.android.finsky.verifier.impl.VerifyAppsInstallTask.mH+1588)
A/DEBUG: #25 pc 00428b03 /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtualQuick+1118) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #26 pc 000d6594 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual_quick+20) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #27 pc 0112ba8a /data/app/com.android.vending-9uL9ZPy1nPnI_iSyOwpVqw==/oat/arm/base.vdex (com.google.android.finsky.verifier.impl.VerifyInstallTask.mH+82)
A/DEBUG: #28 pc 001eb9bd /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.14245495856725529891+192) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #29 pc 001f01a1 /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+124) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #30 pc 00417c89 /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+808) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #31 pc 000dc5a1 /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #32 pc 0061b5a3 /data/app/com.android.vending-9uL9ZPy1nPnI_iSyOwpVqw==/oat/arm/base.odex (amgs.run+58)
A/DEBUG: #33 pc 002a8fcf /system/framework/arm/boot.oat (java.util.concurrent.ThreadPoolExecutor.runWorker+1014) (BuildId: 583c1081e85d9d8b674ee07cd01998bc18f28442)
A/DEBUG: #34 pc 002a6c4f /system/framework/arm/boot.oat (java.util.concurrent.ThreadPoolExecutor$Worker.run+54) (BuildId: 583c1081e85d9d8b674ee07cd01998bc18f28442)
A/DEBUG: #35 pc 005dad1f /data/app/com.android.vending-9uL9ZPy1nPnI_iSyOwpVqw==/oat/arm/base.odex (akoy.run+78)
A/DEBUG: #36 pc 00183749 /system/framework/arm/boot.oat (java.lang.Thread.run+64) (BuildId: 583c1081e85d9d8b674ee07cd01998bc18f28442)
A/DEBUG: #37 pc 000d7bc5 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #38 pc 0042e117 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+250) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #39 pc 000dffb7 /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+174) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #40 pc 0036fc27 /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: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #41 pc 00370919 /apex/com.android.runtime/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+304) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #42 pc 003a18a7 /apex/com.android.runtime/lib/libart.so (art::Thread::CreateCallback(void*)+978) (BuildId: 4f8c69e84af2316a61452c2d70d699f2)
A/DEBUG: #43 pc 000a75b3 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20) (BuildId: 51d80220c9e0c42255369657a8641799)
A/DEBUG: #44 pc 00061b33 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: 51d80220c9e0c42255369657a8641799)
E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_01
If I decrease resources less than 2GB, i can run app normally. Anyone can help me, plz ?
As your log suggests, the issue lies in the function android::FileMap::create()
where off64_t type is used to call mmap(), when mmap64() should have been called instead.
It has been fixed by Google since then (commit) but unfortunately it will not be deployed until Android R, as stated in this thread in the google issue tracker.
Meanwhile the best is to stay below the 2Go limit so off64_t values doesn't trigger UBSan: implicit conversion that make your app crash.

Flutter release apk crashes although debug version works fine

I am working on application which uses these packages
flutter_local_notifications: ^1.4.4+2
android_alarm_manager: ^0.4.5+11
provider: ^4.3.1
http: ^0.12.2
shared_preferences: ^0.5.8
cached_network_image: ^2.2.0+1
reviews_slider: ^1.0.5
flutter_screenutil: ^2.3.0
scroll_to_index: ^1.0.6
and it works fine in the debug version but when I create a release version it crashes The message that I receive
and the error is
Build fingerprint: 'xiaomi/onc/onc:9/PKQ1.181021.001/V11.0.6.0.PFLMIXM:user/release-keys'
Revision: '0'
ABI: 'arm64'
pid: 7383, tid: 7383, name: ry.zonedelivery >>> com.zonedelivery.zonedelivery <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
Abort message: '[FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(76)] Check failed: CheckException(env).
'
x0 0000000000000000 x1 0000000000001cd7 x2 0000000000000006 x3 0000000000000008
x4 0000000000800000 x5 0000000000800000 x6 0000000000800000 x7 0000800000000000
x8 0000000000000083 x9 f6d71a4470a7e267 x10 0000000000000000 x11 fffffffc7ffffbdf
x12 0000000000000001 x13 0000000000000070 x14 0000000000000000 x15 00006c977aa9f8c0
x16 0000007f993c42c0 x17 0000007f992f3bc4 x18 0000000000000010 x19 0000000000001cd7
x20 0000000000001cd7 x21 0000007fcab9d588 x22 0000000000000002 x23 0000000000000095
x24 0000007efbfc9f80 x25 0000007ef90fe440 x26 0000007efdeb2000 x27 0000007f18a1de00
x28 0000007efbf87000 x29 0000007fcab9d570
sp 0000007fcab9d530 lr 0000007f992e7084 pc 0000007f992e70ac
backtrace:
#00 pc 00000000000220ac /system/lib64/libc.so (abort+116)
#01 pc 00000000002af058 /data/app/com.zonedelivery.zonedelivery-4d2RJrQKN4uoup8dF8morw==/lib/arm64/libflutter.so (offset 0x290000)
#02 pc 00000000002a3828 /data/app/com.zonedelivery.zonedelivery-4d2RJrQKN4uoup8dF8morw==/lib/arm64/libflutter.so (offset 0x290000)
#03 pc 00000000002a223c /data/app/com.zonedelivery.zonedelivery-4d2RJrQKN4uoup8dF8morw==/lib/arm64/libflutter.so (offset 0x290000)
#04 pc 00000000002dda94 /data/app/com.zonedelivery.zonedelivery-4d2RJrQKN4uoup8dF8morw==/lib/arm64/libflutter.so (offset 0x290000)
#05 pc 00000000002b068c /data/app/com.zonedelivery.zonedelivery-4d2RJrQKN4uoup8dF8morw==/lib/arm64/libflutter.so (offset 0x290000)
#06 pc 00000000002b27dc /data/app/com.zonedelivery.zonedelivery-4d2RJrQKN4uoup8dF8morw==/lib/arm64/libflutter.so (offset 0x290000)
#07 pc 0000000000014ff8 /system/lib64/libutils.so (android::Looper::pollInner(int)+836)
#08 pc 0000000000014c18 /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+60)
#09 pc 0000000000127798 /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44)
#10 pc 0000000000df0f7c /system/framework/arm64/boot-framework.oat (offset 0xa3d000) (android.media.MediaExtractor.seekTo [DEDUPED]+140)
#11 pc 00000000017a7920 /system/framework/arm64/boot-framework.oat (offset 0xa3d000) (android.os.MessageQueue.next+240)
#12 pc 0000000001f7efdc /system/framework/arm64/boot-framework.oat (offset 0xa3d000) (android.os.Looper.loop+636)
#13 pc 0000000000f29688 /system/framework/arm64/boot-framework.oat (offset 0xa3d000) (android.app.ActivityThread.main+664)
#14 pc 000000000055704c /system/lib64/libart.so (art_quick_invoke_static_stub+604)
#15 pc 00000000000cfce8 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
#16 pc 000000000045dcfc /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
#17 pc 000000000045f750 /system/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1440)
#18 pc 00000000003ef450 /system/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52)
#19 pc 000000000078eed4 /system/framework/arm64/boot-core-oj.oat (offset 0x2dc000) (java.lang.Class.getDeclaredMethodInternal [DEDUPED]+180)
#20 pc 000000000247de18 /system/framework/arm64/boot-framework.oat (offset 0xa3d000) (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+136)
#21 pc 000000000248a1b8 /system/framework/arm64/boot-framework.oat (offset 0xa3d000) (com.android.internal.os.ZygoteInit.main+2104)
#22 pc 000000000055704c /system/lib64/libart.so (art_quick_invoke_static_stub+604)
#23 pc 00000000000cfce8 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+232)
#24 pc 000000000045dcfc /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
#25 pc 000000000045d95c /system/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+424)
#26 pc 0000000000362d70 /system/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+652)
#27 pc 00000000000b287c /system/lib
I realized that the problem is R8 shrinking technique because it removes some needed code from the local Notification package and to solve it you need to keep the needed code by adding it to the proguard-rules file
it's mentioned here in their documentation.

Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xe9103aa560080 in tid 31072 (ReferenceQueueD), pid 31058

My app is not crashing always, just after a while that i am working with it, it will crash.
i found other's solutions but they didn't help me.
Here's my tombstone trace:
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xe9103aa560080
x0 fe0e9103aa560080 x1 0000007338cb3b74 x2 000000741bc58080 x3 0000007329716980
x4 000000006f934234 x5 0000007397cd87d2 x6 0000007338cb37fc x7 0000000000000000
x8 3aa600b8aa7abcf2 x9 3aa600b8aa7abcf2 x10 0000000000430000 x11 00000073980db1dc
x12 00000073980db224 x13 00000073980db26c x14 00000073980db2cc x15 0000000000000000
x16 0000007338cb3b60 x17 0000000000000bc3 x18 0000007338516000 x19 0000007329716980
x20 000000738fc3d9f0 x21 000000741bc58080 x22 0000000015084a50 x23 0000007329716980
x24 0000000000000004 x25 0000007338cb5020 x26 0000007386e524b0 x27 0000000000000001
x28 0000000000000000 x29 0000007338cb3b50
sp 0000007338cb3b40 lr 0000000070ae4c44 pc 000000741bc5809c
back stack trace :
#00 pc 000000000015409c /system/lib64/libandroid_runtime.so (Bitmap_destruct(android::BitmapWrapper*)+28) (BuildId: 16a538ae30ac9b23d3aa61ecd2f04993)
#01 pc 000000000004cc40 /system/framework/arm64/boot-core-libart.oat (art_jni_trampoline+160) (BuildId: 1b333cb995e16deed34376285a37e8437bc6b597)
#02 pc 00000000020b891c /memfd:/jit-cache (deleted) (libcore.util.NativeAllocationRegistry$CleanerThunk.run+92)
#03 pc 00000000020dc418 /memfd:/jit-cache (deleted) (sun.misc.Cleaner.clean+104)
#04 pc 0000000000136334 /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#05 pc 0000000000145068 /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#06 pc 00000000002df390 /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#07 pc 00000000002da670 /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+912) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#08 pc 0000000000597adc /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+648) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#09 pc 0000000000130814 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#10 pc 00000000000f02fc /apex/com.android.runtime/javalib/core-oj.jar (java.lang.ref.ReferenceQueue.enqueueLocked+28)
#11 pc 000000000059a17c /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+1168) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#12 pc 0000000000130914 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#13 pc 00000000000f05d2 /apex/com.android.runtime/javalib/core-oj.jar (java.lang.ref.ReferenceQueue.enqueuePending+38)
#14 pc 000000000059a988 /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+1136) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#15 pc 0000000000130994 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#16 pc 00000000001a9604 /apex/com.android.runtime/javalib/core-libart.jar (java.lang.Daemons$ReferenceQueueDaemon.runInternal+52)
#17 pc 0000000000597dec /apex/com.android.runtime/lib64/libart.so (MterpInvokeVirtual+1432) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#18 pc 0000000000130814 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#19 pc 00000000001a8d32 /apex/com.android.runtime/javalib/core-libart.jar (java.lang.Daemons$Daemon.run+50)
#20 pc 00000000005995e0 /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1740) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#21 pc 0000000000130a14 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#22 pc 00000000000e4a6c /apex/com.android.runtime/javalib/core-oj.jar (java.lang.Thread.run+8)
#23 pc 00000000002affdc /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.1271440803783865717+240) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#24 pc 0000000000589124 /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1012) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#25 pc 000000000013f468 /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#26 pc 0000000000136334 /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#27 pc 0000000000145068 /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#28 pc 00000000004a93a8 /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#29 pc 00000000004aa43c /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#30 pc 00000000004ea1d4 /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1176) (BuildId: 93d83fbe5f93534e033d3a843284933f)
#31 pc 00000000000e2390 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 1ff700b4bab84f60b75913d4e6d82960)
#32 pc 0000000000083ab0 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 1ff700b4bab84f60b75913d4e6d82960)
How should i solve this issue?
This problem was because of a library which is image processor.
i removed the library and re-implemented feature myself ,then problem solved.

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) from /system/lib/libhwui.so

This issue arises from the android run time.
Any idea what this is ?
I am using native code here which plays an audio file in the background. When I just start to play around with the ui of the app this issue pops up.
The app works fine in android 7 but breaks on android 10 specially on samsung devices.
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:10/QSR1.191030.002/5978551:userdebug/dev-keys'
Revision: '0'
ABI: 'x86'
Timestamp: 2020-02-19 00:21:31+0530
pid: 10918, tid: 10933, name: ReferenceQueueD >>> com.myapp.beta <<<
uid: 10133
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xbe04dbc0
eax be04dbbc ebx f1f2f9ac ecx 70bc7ba8 edx 00000000
edi 12f0fb10 esi df165880
ebp cc0d15e8 esp cc0d15d0 eip f1976406
backtrace:
#00 pc 001f1406 /system/lib/libhwui.so (SkPaint::~SkPaint()+150) (BuildId: 10d1e316b7aa14d35052a448bd944fde)
#01 pc 002dbd74 /system/lib/libhwui.so (android::Paint::~Paint()+52) (BuildId: 10d1e316b7aa14d35052a448bd944fde)
#02 pc 00162bd5 /system/lib/libandroid_runtime.so (android::PaintGlue::deletePaint(android::Paint*)+37) (BuildId: 6ceb9761bceb97a18c92f8a4b7072247)
#03 pc 0003601e /apex/com.android.runtime/lib/libjavacore.so (NativeAllocationRegistry_applyFreeFunction(_JNIEnv*, _jclass*, long long, long long)+30) (BuildId: 688305bcfab3d72450178332b5c29bc2)
#04 pc 0004e652 /system/framework/x86/boot-core-libart.oat (art_jni_trampoline+178) (BuildId: 6e90a1c34e5945941f1d1cb9bac9218325a4cd49)
#05 pc 0203d82a /memfd:/jit-cache (deleted) (libcore.util.NativeAllocationRegistry$CleanerThunk.run+122)
#06 pc 0209a2cc /memfd:/jit-cache (deleted) (sun.misc.Cleaner.clean+92)
#07 pc 020a77bf /memfd:/jit-cache (deleted) (java.lang.ref.ReferenceQueue.enqueueLocked+239)
#08 pc 020aabae /memfd:/jit-cache (deleted) (java.lang.ref.ReferenceQueue.enqueuePending+174)
#09 pc 0013e9a2 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+418) (BuildId: a0a062684495092d1756e30ba2dff37d)
#10 pc 00149a7a /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+298) (BuildId: a0a062684495092d1756e30ba2dff37d)
#11 pc 00332502 /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+386) (BuildId: a0a062684495092d1756e30ba2dff37d)
#12 pc 0032c19c /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*)+988) (BuildId: a0a062684495092d1756e30ba2dff37d)
#13 pc 00684d03 /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+643) (BuildId: a0a062684495092d1756e30ba2dff37d)
#14 pc 001389a1 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+33) (BuildId: a0a062684495092d1756e30ba2dff37d)
#15 pc 001b4104 /apex/com.android.runtime/javalib/core-libart.jar (java.lang.Daemons$ReferenceQueueDaemon.runInternal+52)
#16 pc 00681adc /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtual+1612) (BuildId: a0a062684495092d1756e30ba2dff37d)
#17 pc 00138821 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual+33) (BuildId: a0a062684495092d1756e30ba2dff37d)
#18 pc 001b382e /apex/com.android.runtime/javalib/core-libart.jar (java.lang.Daemons$Daemon.run+50)
#19 pc 006837bc /apex/com.android.runtime/lib/libart.so (MterpInvokeInterface+1980) (BuildId: a0a062684495092d1756e30ba2dff37d)
#20 pc 00138a21 /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_interface+33) (BuildId: a0a062684495092d1756e30ba2dff37d)
#21 pc 000ea918 /apex/com.android.runtime/javalib/core-oj.jar (java.lang.Thread.run+8)
#22 pc 002f8e0a /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.6689468213397061768+298) (BuildId: a0a062684495092d1756e30ba2dff37d)
#23 pc 002ffcc5 /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+181) (BuildId: a0a062684495092d1756e30ba2dff37d)
#24 pc 0066fbd9 /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+1209) (BuildId: a0a062684495092d1756e30ba2dff37d)
#25 pc 0014503d /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+77) (BuildId: a0a062684495092d1756e30ba2dff37d)
#26 pc 0013e7d2 /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+338) (BuildId: a0a062684495092d1756e30ba2dff37d)
#27 pc 00149a69 /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+281) (BuildId: a0a062684495092d1756e30ba2dff37d)
#28 pc 0055a513 /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+99) (BuildId: a0a062684495092d1756e30ba2dff37d)
#29 pc 0055b91a /apex/com.android.runtime/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+474) (BuildId: a0a062684495092d1756e30ba2dff37d)
#30 pc 005aaa51 /apex/com.android.runtime/lib/libart.so (art::Thread::CreateCallback(void*)+1585) (BuildId: a0a062684495092d1756e30ba2dff37d)
#31 pc 0011a8e5 /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+53) (BuildId: 76290498408016ad14f4b98c3ab6c65c)
#32 pc 000af6a7 /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+71) (BuildId: 76290498408016ad14f4b98c3ab6c65c)

Categories

Resources