bumptech / glide

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

glide-source-th(7262) SIGSEGV(SEGV_MAPERR) #5321

Open Zvirtuey opened 1 year ago

Zvirtuey commented 1 year ago

Glide Version: 4.14.2

Integration libraries: OKHttp 4.9.3

defaultConfig { ....... //blur renderscriptTargetApi 32 renderscriptSupportModeEnabled true

}

Device/Android Version: HuaWei/EMOTION、OPPO/PEQM00、XiaoMi/MIUI

Issue details / Repro steps / Use case background: Collect error logs

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

Glide.with(context).load(res)
        .apply(RequestOptions.bitmapTransform(BlurTransformation(radius)))
        .into(this)
-------------------------------------------------------------------------------
 val requestBuilder =
        Glide.with(this).load(url).apply(RequestOptions.bitmapTransform(CircleCrop()))
    if (block != null) {
        block.invoke(requestBuilder).into(this)
    } else {
        requestBuilder.into(this)
    }

Layout XML:

<FrameLayout xmlns:android="...

Stack trace / LogCat:


[#2024 SIGSEGV(SEGV_MAPERR)]

#00 pc 00000000000380c8 /vendor/lib64/libRSDriverArm.so (rsdScriptSetGlobalVar(android::renderscript::Context const*, android::renderscript::Script const*, unsigned int, void*, unsigned long)+16) [arm64-v8a::a368e5b1ef7f769096cf233d8952b00f]
2   #01 pc 0000000000034d58 /vendor/lib64/libRSDriverArm.so (rsdClScriptSetGlobalVar(android::renderscript::Context const*, android::renderscript::Script const*, unsigned int, void*, unsigned long)+40) [arm64-v8a::a368e5b1ef7f769096cf233d8952b00f]
3   #02 pc 000000000003c05c /system/lib64/vndk-sp-29/libRS_internal.so (android::renderscript::rsi_ScriptSetVarF(android::renderscript::Context*, void*, unsigned int, float)+68) [arm64-v8a::1da6da81c4e862d95460165ac390f15e]
4   #03 pc 00000000000425f8 /system/lib64/vndk-sp-29/libRS_internal.so (android::renderscript::ThreadIO::playCoreCommands(android::renderscript::Context*, int)+348) [arm64-v8a::1da6da81c4e862d95460165ac390f15e]
5   #04 pc 000000000002c2d0 /system/lib64/vndk-sp-29/libRS_internal.so (android::renderscript::Context::threadProc(void*)+2108) [arm64-v8a::1da6da81c4e862d95460165ac390f15e]
6   #05 pc 00000000000cf700 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) [arm64-v8a::ee89fe426e7c4f3077fd240aed71d225]
7   #06 pc 00000000000720e8 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) [arm64-v8a::ee89fe426e7c4f3077fd240aed71d225]
8   java:
9   [Failed to get Java stack]

#00 pc 000000000003814c /vendor/lib64/libRSDriverArm.so (rsdScriptSetGlobalObj(android::renderscript::Context const*, android::renderscript::Script const*, unsigned int, android::renderscript::ObjectBase*)+12) [arm64-v8a::a368e5b1ef7f769096cf233d8952b00f]
2   #01 pc 0000000000034dd0 /vendor/lib64/libRSDriverArm.so (rsdClScriptSetGlobalObj(android::renderscript::Context const*, android::renderscript::Script const*, unsigned int, android::renderscript::ObjectBase*)+32) [arm64-v8a::a368e5b1ef7f769096cf233d8952b00f]
3   #02 pc 00000000000425f8 /system/lib64/vndk-sp-29/libRS_internal.so (android::renderscript::ThreadIO::playCoreCommands(android::renderscript::Context*, int)+348) [arm64-v8a::1da6da81c4e862d95460165ac390f15e]
4   #03 pc 000000000002c2d0 /system/lib64/vndk-sp-29/libRS_internal.so (android::renderscript::Context::threadProc(void*)+2108) [arm64-v8a::1da6da81c4e862d95460165ac390f15e]
5   #04 pc 00000000000cf7c0 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) [arm64-v8a::b91c775ccc9b0556e91bc575a2511cd0]
6   #05 pc 00000000000721a8 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) [arm64-v8a::b91c775ccc9b0556e91bc575a2511cd0]
7   java:
8   [Failed to get Java stack]

<!-- Bonus points if you attach a relevant screenshot, screen recording or a small demo project -->
deputat007 commented 7 months ago

https://github.com/wasabeef/glide-transformations/issues/196