bumptech / glide

An image loading and caching library for Android focused on smooth scrolling
https://bumptech.github.io/glide/
Other
34.47k stars 6.11k forks source link

glide-source-th(29245) SIGBUS(BUS_ADRERR) #4388

Open Reallym404 opened 3 years ago

Reallym404 commented 3 years ago

use glide:4.11.0

Device/Android Version:小米 REDMI K30 5G/Android 10,level 29/arm64-v8a

00 pc 000000000003e2f8 /apex/com.android.runtime/lib64/bionic/libc.so [arm64-v8a] 2 #01 pc 00000000002a7cb8 /apex/com.android.runtime/lib64/libart.so (art::instrumentation::InstrumentationStackPopper::PopFramesTo(unsigned int, art::MutableHandle&)+520) [arm64-v8a] 3 #02 pc 000000000025c6f4 /system/framework/arm64/boot-core-libart.oat [arm64-v8a]

AND # glide-source-th(11528) SIGBUS(BUS_ADRERR) Device/Android Version: 小米 MI 10 PRO/Android 10,level 29/arm64-v8a

00 pc 000000000003e2f8 /apex/com.android.runtime/lib64/bionic/libc.so [arm64-v8a] 2 #01 pc 00000000002a7cbc /apex/com.android.runtime/lib64/libart.so (art::ArtMethod art::FindMethodFromCode<(art::InvokeType)3, false>(unsigned int, art::ObjPtr, art::ArtMethod, art::Thread)+8) [arm64-v8a] 3 #02 pc 000000000025c6f4 /system/framework/arm64/boot-core-libart.oat [arm64-v8a]

AND # glide-source-th(20899)SIGBUS(BUS_ADRERR) Device/Android Version: OPPO PCHM10/Android 9,level 28/arm64-v8a

00 pc 000000000001f488 /system/lib64/libc.so (memcpy+392) [arm64-v8a] 2 #01 pc 000000000037e42c /system/lib64/libart.so (art::JNI::SetByteArrayRegion(_JNIEnv, _jbyteArray, int, int, signed char const*)+812) [arm64-v8a] 3 #02 pc 0000000000005234 /system/framework/arm64/boot-core-libart.oat (oatdata+16948) [arm64-v8a]

have a lot of such native crashes in production app. Don't know what to do with it.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

DRius commented 2 years ago

I have the same problem and I can not fix it I just manage to reduce the frequency of appearance by cleaning the memory

A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xa4 in tid 14101 (glide-source-th)

zyyoona7 commented 2 years ago

have the same problem.

yinyinnie commented 1 year ago

I have the same problem and I can not fix it I just manage to reduce the frequency of appearance by cleaning the memory

A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xa4 in tid 14101 (glide-source-th)

it is not same problem. SIGSEGV is different signal

yinyinnie commented 1 year ago

have the same problem.

if your problem is SIGBUS(BUS_ADRERR), there are two possible reason: 1. the image your app is loading is modified by other thread at same time. 2. user phone 's disk is full. why have this problem? Glide use NIO, and android's NIO use mmap. there are two signals: SIGSEGV and SIGBUS corresponding with it.