bumptech / glide

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

native crash sometimes #4731

Open hijunmeng opened 2 years ago

hijunmeng commented 2 years ago

Glide Version:4.11.0

Integration libraries:okhttp-4.9.1

Device/Android Version:android10

Issue details / Repro steps / Use case background: crash sometimes

Glide load line / GlideModule (if any) / list Adapter code (if any):

 Glide.with(imageview)
                    .load("")
                    .placeholder(R.drawable.default_single_avatar)
                    .into(imageview);

Layout XML:

<FrameLayout xmlns:android="...

Stack trace / LogCat:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Tombstone maker: 'xCrash 3.0.0'
Crash type: 'native'
Start time: '2022-01-20T17:00:44.842+0800'
Crash time: '2022-01-20T17:17:34.801+0800'
App ID: 'com.xxx.xxx'
App version: '1.2.3-beta456-patch789'
Rooted: 'No'
API level: '29'
OS version: '10'
Kernel version: 'Linux version 4.14.116 #1 SMP PREEMPT Tue Jan 7 22:57:13 CST 2020 (aarch64)'
ABI list: 'arm64-v8a,armeabi-v7a,armeabi'
Manufacturer: 'HUAWEI'
Brand: 'HONOR'
Model: 'BKL-AL20'
Build fingerprint: 'HONOR/BKL-AL20/HWBKL:10/HUAWEIBKL-AL20/10.0.0.156C00:user/release-keys'
ABI: 'arm64'
pid: 5001, tid: 5780, name: glide-source-th  >>> com.xxx.xxx <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x60
    x0  0000007d6db17240  x1  0000007cf47e8804  x2  0000007d6db17240  x3  0000000000000001
    x4  0000000013a80070  x5  0000000000000006  x6  0000000013a80090  x7  0000000000000020
    x8  0000007d6db17248  x9  0000000000000060  x10 0000000000430000  x11 0000007d79b4b1dc
    x12 0000007d79b4b224  x13 0000007d79b4b26c  x14 0000007d79b4b2cc  x15 0000000000000000
    x16 0000007cf47e87f0  x17 000000000000fa09  x18 0000007c4a904000  x19 0000007d6db17240
    x20 0000000000000000  x21 0000000013a00590  x22 0000000013a80070  x23 0000000013497378
    x24 0000000070a180f0  x25 0000000013a00590  x26 0000007cbe78ccb0  x27 0000000000000001
    x28 0000000000000000  x29 0000007cf47e87e0
    sp  0000007cf47e87d0  lr  000000007268814c  pc  0000007dfca3a338

backtrace:
    #00 pc 0000000000185338  /system/lib64/libandroid_runtime.so (_ZN7android13BitmapWrapper10freePixelsEv+36)
    #01 pc 00000000002d3148  /system/framework/arm64/boot-framework.oat (art_jni_trampoline+152)
    #02 pc 0000000000657580  /system/framework/arm64/boot-framework.oat (android.graphics.Bitmap.recycle+112)
    #03 pc 0000000000104490  /memfd:/jit-cache (deleted)
FMProducts commented 2 years ago

I also have this problem on some smartphones. Can't find solutions

qingyangCode commented 1 year ago

I also have similar problems, which all occur on Huawei equipment