I call the glide method in the viewpage + fragment.Then when I change the viewpage states or click the fragment into the detail activity,the app would crash.The faster I changed,the faster the APP crashes.
Why do you report this crash? Is it related to disk cache?
Recently, we found many times throw this exception
--------- beginning of crash
11-20 15:28:46.368 22100 14281 F google-breakpad: Microdump skipped (uninteresting)
11-20 15:28:46.417 13699 14281 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 14281 (glide-disk-cach)
11-20 15:28:46.596 22106 22106 F DEBUG : * *
11-20 15:28:46.597 22106 22106 F DEBUG : Build fingerprint: 'HUAWEI/MHA-AL00/HWMHA:7.0/HUAWEIMHA-AL00/C00B231:user/release-keys'
11-20 15:28:46.597 22106 22106 F DEBUG : Revision: '0'
11-20 15:28:46.597 22106 22106 F DEBUG : ABI: 'arm'
11-20 15:28:46.597 22106 22106 F DEBUG : pid: 13699, tid: 14281, name: glide-disk-cach >>> com.smartvideo.phone <<<
11-20 15:28:46.597 22106 22106 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x4
11-20 15:28:46.597 22106 22106 F DEBUG : r0 00000004 r1 cc3f9060 r2 c86d55e0 r3 cc3f8fa4
11-20 15:28:46.597 22106 22106 F DEBUG : r4 cc3f9044 r5 cc3f9050 r6 c86d55e0 r7 cc3f96bc
11-20 15:28:46.597 22106 22106 F DEBUG : r8 00000000 r9 00000000 sl cc3f95b4 fp cc3f8fa0
11-20 15:28:46.597 22106 22106 F DEBUG : ip ee19f15c sp cc3f8d78 lr edf1202d pc edf0f9b2 cpsr 000a0030
11-20 15:28:46.607 22106 22106 F DEBUG :
11-20 15:28:46.607 22106 22106 F DEBUG : backtrace:
11-20 15:28:46.607 22106 22106 F DEBUG : #00 pc 001309b2 /vendor/lib/libskia.so (_ZN15SkShaderBlitterC1ERK8SkPixmapRK7SkPaintPN8SkShader7ContextE+61)
11-20 15:28:46.608 22106 22106 F DEBUG : #1 pc 00133029 /vendor/lib/libskia.so (_ZN23SkARGB32_Shader_BlitterC2ERK8SkPixmapRK7SkPaintPN8SkShader7ContextE+24)
11-20 15:28:46.608 22106 22106 F DEBUG : #2 pc 001308f7 /vendor/lib/libskia.so
11-20 15:28:46.608 22106 22106 F DEBUG : #3 pc 00130729 /vendor/lib/libskia.so (_ZN9SkBlitter6ChooseERK8SkPixmapRK8SkMatrixRK7SkPaintP16SkSmallAllocatorILj3ELj1500EEb+936)
11-20 15:28:46.608 22106 22106 F DEBUG : #4 pc 001462cb /vendor/lib/libskia.so
11-20 15:28:46.608 22106 22106 F DEBUG : #5 pc 0014720f /vendor/lib/libskia.so (ZNK6SkDraw8drawRectERK6SkRectRK7SkPaintPK8SkMatrixPS1+606)
11-20 15:28:46.608 22106 22106 F DEBUG : #6 pc 00128461 /vendor/lib/libskia.so (_ZN14SkBitmapDevice8drawRectERK6SkDrawRK6SkRectRK7SkPaint+22)
11-20 15:28:46.608 22106 22106 F DEBUG : #7 pc 00139ff5 /vendor/lib/libskia.so (_ZN8SkCanvas10onDrawRectERK6SkRectRK7SkPaint+336)
11-20 15:28:46.608 22106 22106 F DEBUG : #8 pc 0013cc0b /vendor/lib/libskia.so (_ZN8SkCanvas14drawRectCoordsEffffRK7SkPaint+162)
11-20 15:28:46.608 22106 22106 F DEBUG : #9 pc 7449d123 /data/dalvik-cache/arm/system@[email protected] (offset 0x17b3000)
Please fill out the issue template when filing new issues.
What is your Glide load line? What version of Glide are you using? What version of Android is this? Is it specific to one device or version of Android?
@sjudd sorry.I was wrong
GlideVersion:4.3.1
Android Version:Android7.0
Device Version:HUAWEI EMUI5.0
Just one device/version of Android?
Also do you have a more complete stack trace? It looks like this is only a partial error?
@sjudd ,I sent you by mail.
Thanks this is a new one to me. I don't have any great ideas, but I'll see what I can find out.
Do you have steps or a Glide load line that you could provide that show how you can reproduce this? A sample app would be even better.
@JwyinKevin What DecodeFormat are you using? Can you please provide your full Glide load line? Have you set DecodeFormat anywhere in your app and if so to what?
@sjudd I have recently asked for leave so I don't have a tracking problem.I'm very sorry. I using DecodeFormat for AppGlideModule.
@GlideModule
public final class ExAppGlideModule extends AppGlideModule {
@Override
public void applyOptions(Context context, GlideBuilder builder) {
builder.setMemoryCache(new LruResourceCache(MAX_MEMORY_CACHE));
builder.setDecodeFormat(DecodeFormat.PREFER_ARGB_8888);
builder.setDiskCache(new InternalCacheDiskCacheFactory(context, DISK_CACHE_NAME, MAX_DISK_CACHE));
}
}
Glide load line use:
GlideApp.with(context).load(url).placeholder(imageurl).add(new CenterCrop()).into(imageView);
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.
Thanks. Unfortunately no one I've talked to has any ideas.
If you're able to provide a sample app that can reproduce this, please do so. We probably won't be able to make further progress with a repro case.
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.
I met too
@shfouc if you can reproduce this, please provide more detail and a sample app we can use to reproduce the issue.
@sjudd I also experienced almost the same problem but it only happened a few times when I transfer from fragment to fragment and scroll up and down on the recyclerview
these are the only logs I got after the app crashed.
invalid address or address of corrupt block 0x553fe0a8 passed to dlfree
Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 24599 (glide-source-th)
Device: User-Agent: Dalvik/1.6.0 (Linux; U; Android 4.4.2; Flare_Lite_2 Build/KOT49H)
Glide version: 4.0.0
code below is in a RecyclerView.Holder
public void setImage(String string) {
RequestOptions options = new RequestOptions();
options.centerCrop()
.transform(new RoundedCorners(2));
GlideApp.with(mContext)
.load(string)
.thumbnail(0.5f)
.diskCacheStrategy(DiskCacheStrategy.ALL)
.apply(options)
.into(mImageView);
}
public void setImage(int resId) {
GlideApp.with(mContext)
.load(resId)
.into(new SimpleTarget<Drawable>() {
@Override
public void onResourceReady(Drawable resource, Transition<? super Drawable> transition) {
resource.setAlpha(70);
mImageView.setImageDrawable(resource);
}
});
}
Google brought me here:
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc in tid 27773 (glide-source-th), pid 27062
See comments above. If you can reproduce this, attach a failing test case or a sample app please.
My solution was clearing the disk cache (or just the app's cache).
It might work for you if you implemented some custom disk caching.
For what it is worth, we are seeing this one too, and after discussing it with other devs, we are not the only ones.
It seems to mostly affect Samsung phones on Android 8.
Sadly we don't have a repro scenario, we are trying to get our hands on one of these phones in order to understand this better.
Actually, I have been able to completely get rid of native crashes by cleaning up our Target code.
It turns out that one of our targets had a very embarrassing issue that made old resource cleanup fail.
I suggest to other reproducing this issue to do a deep review of their Target usage and to make sure they are satisfying it's contract.
Dio cane
Mi fanno schifo i negri puzzolenti
We're seeing a similar issue, but only on Android 7 and 7.1.
A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 7408 (glide-source-th)
I am also seeing a similar issue on LG K3 2017 (Android 6)
A/libc(24297): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xdeadbaad in tid 25205 (glide-source-th)
10-21 00:19:54.811 22148-22535/? A/libc: Fatal signal 11 (SIGSEGV) at 0x386a1800 (code=1), thread 22535 (mediaserver)
10-21 00:19:54.816 22148-22536/? A/libc: Fatal signal 11 (SIGSEGV) at 0x2cc3b800 (code=1), thread 22536 (Binder_2)
10-21 00:20:06.386 22591-22702/? A/libc: Fatal signal 11 (SIGSEGV) at 0x2d106800 (code=1), thread 22702 (Binder_2)
10-21 00:26:47.736 22749-23629/? A/libc: Fatal signal 11 (SIGSEGV) at 0xd1acf800 (code=1), thread 23629 (Binder_3)
10-21 00:26:47.741 22749-23627/? A/libc: Fatal signal 11 (SIGSEGV) at 0xb7ba4800 (code=1), thread 23627 (Binder_5)
10-21 00:27:00.091 23682-23772/? A/libc: Fatal signal 11 (SIGSEGV) at 0x70c61000 (code=1), thread 23772 (Binder_2)
10-21 00:28:04.756 23826-24048/? A/libc: Fatal signal 11 (SIGSEGV) at 0x7250e800 (code=1), thread 24048 (mediaserver)
10-21 00:28:17.376 24107-24152/? A/libc: Fatal signal 11 (SIGSEGV) at 0x16bbf800 (code=1), thread 24152 (Binder_5)
10-21 00:29:40.521 24213-24473/? A/libc: Fatal signal 11 (SIGSEGV) at 0xc653c800 (code=1), thread 24473 (Binder_3)
10-21 00:29:40.926 23086-23227/? A/libc: Fatal signal 11 (SIGSEGV) at 0x00000018 (code=1), thread 23227 (glide-source-th)
10-21 00:30:18.081 24534-24920/? A/libc: Fatal signal 11 (SIGSEGV) at 0xec7dd800 (code=1), thread 24920 (Binder_1)
I also have this issue (Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xaad19840 in tid 6249 (glide-source-th), pid 6165), and I don't know what to do
same issue on only one device Motorola E. but hey..let's close everything we cannot fix
We are getting this issue on Samsung galaxy grand 2. I can share the build also.
This issue is in Asus and Redmi Note 7 Android phone also.
same issue on only one device Motorola E. but hey..let's close everything we cannot fix
The same issue is in Samsung galaxy grand 2 (Android 4.4), Asus and Redmi Note 7 (Android 9). This is due to a corrupt local video file in which the File descriptor failed to get the thumbnail from the video path.
I am getting too many crashes due to glide. I am using Glide 4.9.0 version. I tried 4.10.0 also but getting the same issue. In this case, the thumbnail does not load. When I scroll recycler view multiple time it suddenly crashes.
Thanks in advance for supporting us. Please fix it or share a workaround to stop crashes in the app.
Thank you!
Almost the same issue on samsung J2 Prime, android 6.0
Glide 4.10.0
12-19 10:07:20.476 328-328/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
12-19 10:07:20.476 328-328/? A/DEBUG: Build fingerprint: 'samsung/grandppltedtvvj/grandppltedtv:6.0.1/MMB29T/G532MTVJU1ASA1:user/release-keys'
12-19 10:07:20.476 328-328/? A/DEBUG: Revision: '5'
12-19 10:07:20.476 328-328/? A/DEBUG: ABI: 'arm'
12-19 10:07:20.476 328-328/? A/DEBUG: pid: 19824, tid: 19903, name: glide-source-th >>> my.package.name <<<
12-19 10:07:20.476 328-328/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
12-19 10:07:20.496 328-328/? A/DEBUG: Abort message: 'art/runtime/indirect_reference_table.cc:67] JNI ERROR (app bug): see above.'
12-19 10:07:20.496 328-328/? A/DEBUG: r0 00000000 r1 00004dbf r2 00000006 r3 996ee978
12-19 10:07:20.496 328-328/? A/DEBUG: r4 996ee980 r5 996ee930 r6 0000000b r7 0000010c
12-19 10:07:20.496 328-328/? A/DEBUG: r8 00000043 r9 b42fde44 sl 9a7fc39b fp b42e3820
12-19 10:07:20.496 328-328/? A/DEBUG: ip 00000006 sp 996ec780 lr b6cabde5 pc b6cae1d4 cpsr 40070010
12-19 10:07:20.516 328-328/? A/DEBUG: backtrace:
12-19 10:07:20.516 328-328/? A/DEBUG: #00 pc 000431d4 /system/lib/libc.so (tgkill+12)
12-19 10:07:20.516 328-328/? A/DEBUG: #01 pc 00040de1 /system/lib/libc.so (pthread_kill+32)
12-19 10:07:20.516 328-328/? A/DEBUG: #02 pc 0001c7e7 /system/lib/libc.so (raise+10)
12-19 10:07:20.516 328-328/? A/DEBUG: #03 pc 00019a65 /system/lib/libc.so (__libc_android_abort+34)
12-19 10:07:20.516 328-328/? A/DEBUG: #04 pc 00017600 /system/lib/libc.so (abort+4)
12-19 10:07:20.516 328-328/? A/DEBUG: #05 pc 0031caed /system/lib/libart.so (_ZN3art7Runtime5AbortEv+200)
12-19 10:07:20.516 328-328/? A/DEBUG: #06 pc 000f37e9 /system/lib/libart.so (_ZN3art10LogMessageD2Ev+2092)
12-19 10:07:20.516 328-328/? A/DEBUG: #07 pc 001d413b /system/lib/libart.so (_ZN3art22IndirectReferenceTable17AbortIfNoCheckJNIEv+62)
12-19 10:07:20.516 328-328/? A/DEBUG: #08 pc 0033c783 /system/lib/libart.so (_ZNK3art6Thread13DecodeJObjectEP8_jobject+806)
12-19 10:07:20.516 328-328/? A/DEBUG: #09 pc 003e2957 /system/lib/libart.so (_ZN3art28RememberForGcArgumentVisitor15FixupReferencesEv+30)
12-19 10:07:20.516 328-328/? A/DEBUG: #10 pc 003e5fb9 /system/lib/libart.so (artQuickResolutionTrampoline+772)
12-19 10:07:20.516 328-328/? A/DEBUG: #11 pc 000ea4b3 /system/lib/libart.so (art_quick_resolution_trampoline+34)
12-19 10:07:20.516 328-328/? A/DEBUG: #12 pc 016915db /data/app/my.package.name-1/oat/arm/base.odex (offset 0x1426000)
12-19 10:07:20.816 327-1025/? E/NetlinkEvent: NetlinkEvent::decode(): buffer'change@/devices/battery/power_supply/battery' size:709,format:0
12-19 10:07:20.816 218-293/? E/NetlinkEvent: NetlinkEvent::decode(): buffer'change@/devices/battery/power_supply/battery' size:709,format:0
Not sure but I think problem is in icon uri. I am trying to load the icon from resources as uri:
val uri = Uri.Builder()
.scheme(ContentResolver.SCHEME_ANDROID_RESOURCE)
.authority(context.resources.getResourcePackageName(R.drawable.layer_list_user_icon_default))
.appendPath(context.resources.getResourceTypeName(R.drawable.layer_list_user_icon_default))
.appendPath(context.resources.getResourceEntryName(R.drawable.layer_list_user_icon_default))
.build().toString()
fun Context.loadBitmap(uri: Uri, width: Int, height: Int, onSuccess: (Bitmap) -> Unit, onFailure: (Drawable?) -> Unit = {}) {
GlideApp.with(this)
.asBitmap()
.load(uri)
.into(object : CustomTarget<Bitmap>(width, height) {
override fun onLoadCleared(placeholder: Drawable?) {}
override fun onLoadFailed(errorDrawable: Drawable?) {
super.onLoadFailed(errorDrawable)
onFailure(errorDrawable)
}
override fun onResourceReady(resource: Bitmap, transition: Transition<in Bitmap>?) {
onSuccess(resource)
}
})
}
inline fun ImageView.loadUri(uri: Uri, block: GlideRequest<Drawable>.() -> GlideRequest<Drawable> = { this }) {
block(GlideApp.with(this).load(uri)).into(this)
}
fun Context.loadBitmap(url.toUri(), 100, 100, { bitmap ->
val drawable = RoundedBitmapDrawableFactory.create(resources, bitmap)
drawable.cornerRadius = 50F
bottomNavigationView.menu.findItem(R.id.profile).icon = drawable
})
profileIcon.loadUrl(url.toUri()) {
transform(CircleCrop())
}
I tried to replace the code with another uri http://simpleicon.com/wp-content/uploads/cute.png and the problem disappear.
Also the problem was solved when I move profileicon.loadUrl() method inside in loadBitmap() callback, maybe the reason of crash was a concurrency issue when Glide use the same drawable resource at the same time.
loadBitmap(url.toUri(), 100, 100, { bitmap ->
val drawable = RoundedBitmapDrawableFactory.create(resources, bitmap)
drawable.cornerRadius = 50F
bottomNavigationView.menu.findItem(R.id.profile).icon = drawable
profileIcon.loadUrl(url.toUri()) {
transform(CircleCrop())
}
})
same question, fix it please
Same issue
Fatal signal 11 (SIGSEGV), code 2, fault addr 0x3f800000 in tid 16545 (FinalizerDaemon), pid 16522
Android Huwai 6P, Samsang - Oreo
Please help.
I have integrated twilio also in My app.
same here
is it fixed?
same problem on a RecyclerView , a way to fix it ?
I just notice, the crash probability increase proportionately to the number of elements in lhe RecyclerView list.
But the problem don't occur always , so it should be a memory problem i suppose
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xf3b6 in tid 17691 (HeapTaskDaemon), pid 17675 (xample.gats_app)