BlurTransformation crashs on Android 4.4
baole opened this issue · 0 comments
baole commented
Bug Reporting
Using glide-transformations 4.0.1
11-28 10:47:25.243 5546-5693/net.tandem E/GlideExecutor: Request threw uncaught throwable
java.lang.ArrayIndexOutOfBoundsException: length=112896; index=116326
at jp.wasabeef.glide.transformations.internal.FastBlur.blur(FastBlur.java:208)
at jp.wasabeef.glide.transformations.BlurTransformation.transform(BlurTransformation.java:73)
at jp.wasabeef.glide.transformations.BitmapTransformation.transform(BitmapTransformation.java:50)
at com.bumptech.glide.load.engine.DecodeJob.onResourceDecoded(DecodeJob.java:540)
at com.bumptech.glide.load.engine.DecodeJob$DecodeCallback.onResourceDecoded(DecodeJob.java:604)
at com.bumptech.glide.load.engine.DecodePath.decode(DecodePath.java:46)
at com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList(LoadPath.java:58)
at com.bumptech.glide.load.engine.LoadPath.load(LoadPath.java:43)
at com.bumptech.glide.load.engine.DecodeJob.runLoadPath(DecodeJob.java:507)
at com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher(DecodeJob.java:472)
at com.bumptech.glide.load.engine.DecodeJob.decodeFromData(DecodeJob.java:458)
at com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData(DecodeJob.java:410)
at com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady(DecodeJob.java:379)
at com.bumptech.glide.load.engine.SourceGenerator.onDataReady(SourceGenerator.java:112)
at com.bumptech.glide.load.model.UnitModelLoader$UnitFetcher.loadData(UnitModelLoader.java:57)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:302)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:269)
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:233)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)
Steps to Reproduce
Bitmap background = xxx;
Glide.with(this).load(background)
.apply(RequestOptions.bitmapTransform(new BlurTransformation(20, 8)))
.into(binder.blurry);
OS details
It works fine on Android 5.0+, and throws exceptions on Android 4.4
- Device: Emulator, Wiko
- OS: Android 4.4