glide-transformations icon indicating copy to clipboard operation
glide-transformations copied to clipboard

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) crash spike after updating to 4.3.0

Open antonb03 opened this issue 3 years ago • 6 comments

After updating to 4.3.0 I saw a significant spike in crashes in the native library. I use BlurTransformation in my code and looks like the new version uses RenderScript to accomplish that which I suspect is causing an issue. Here is crashlog that I get.

backtrace:
  #00  pc 0000000000018bf8  /system/vendor/lib64/libRSDriver_adreno.so (rsdScriptSetGlobalVar(android::renderscript::Context const*, android::renderscript::Script const*, unsigned int, void*, unsigned long)+28)
  #00  pc 000000000003c6dc  /system/lib64/libRS_internal.so (android::renderscript::rsi_ScriptSetVarF(android::renderscript::Context*, void*, unsigned int, float)+68)
  #00  pc 0000000000042f50  /system/lib64/libRS_internal.so (android::renderscript::ThreadIO::playCoreCommands(android::renderscript::Context*, int)+680)
  #00  pc 00000000000272fc  /system/lib64/libRS_internal.so (android::renderscript::Context::threadProc(void*)+2152)
  #00  pc 0000000000099508  /system/lib64/libc.so (__pthread_start(void*)+36)
  #00  pc 0000000000023e18  /system/lib64/libc.so (__start_thread+68)

antonb03 avatar Jun 09 '21 12:06 antonb03

crash by log

glide-disk-cach(31903)

SIGSEGV(SEGV_MAPERR) 1 #00 pc 0000000000033848 /system/lib64/libRS_internal.so (android::renderscript::ObjectBase::decUserRef() const+20) [arm64-v8a::da3e09b46dec5afeaa9e038e75a0d7b1] 2 #01 pc 000000000003f868 /system/lib64/libRS_internal.so (android::renderscript::ThreadIO::playCoreCommands(android::renderscript::Context*, int)+356) [arm64-v8a::da3e09b46dec5afeaa9e038e75a0d7b1] 3 #02 pc 0000000000029b4c /system/lib64/libRS_internal.so (android::renderscript::Context::threadProc(void*)+1992) [arm64-v8a::da3e09b46dec5afeaa9e038e75a0d7b1] 4 #03 pc 0000000000068544 /system/lib64/libc.so (__pthread_start(void*)+196) [arm64-v8a::048ed7ac2adc18ebf942ec734b8b4507] 5 #04 pc 000000000001de40 /system/lib64/libc.so (__start_thread+16) [arm64-v8a::048ed7ac2adc18ebf942ec734b8b4507] 6 java:

ryanZhange avatar Oct 09 '21 08:10 ryanZhange

Hi, I also noticed a significant spike of crash after upgrading this library to 4.3.0. I also use the BlurTransformation inside my app. In fact I guess we are concerned by this part of the CHANGELOG --> - Remove support v8 renderscript (Please use BlurTransformation)

What does Please use BlurTransformation exactly mean ?

hatem-72 avatar Nov 15 '21 15:11 hatem-72

回退到4.2.0版本就可以了 4.3.0使用了RenderScript类进行高斯模糊 会出现上面的崩溃;4.2.0版本使用的是java层的算法实现的高斯模糊 没有问题

fengluoye2012 avatar Apr 26 '22 08:04 fengluoye2012

Can confirm I'm on 4.3.0 and seeing the same issue, thank you @fengluoye2012 I will try downgrading to 4.2.0 and see what happens

moulie415 avatar Sep 22 '22 12:09 moulie415

Downgrading to 4.2.0 will use fastbblur for blur bitmap, it is poor performance. Is there a better method to solve this issue?

hccya1988 avatar Feb 27 '23 03:02 hccya1988

same issue SIGSEGV(SEGV_MAPERR) in some devices at 4.3.0 , Downgrading to 4.2.0 helped

DemaHamson avatar Apr 24 '23 09:04 DemaHamson