You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2020-06-12 20:31:48.532 23211-23211/com.example.myapplication E/BlurBuilder: Could not set into imageview
at.favre.lib.dali.builder.exception.BlurWorkerException: androidx.renderscript.RSInvalidStateException: Bad bitmap type: HARDWARE
at at.favre.lib.dali.builder.blur.BlurWorker.process(BlurWorker.java:153)
at at.favre.lib.dali.builder.blur.BlurWorker.call(BlurWorker.java:48)
at at.favre.lib.dali.builder.blur.BlurWorker.call(BlurWorker.java:27)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:798)
Caused by: androidx.renderscript.RSInvalidStateException: Bad bitmap type: HARDWARE
at androidx.renderscript.Allocation.elementFromBitmap(Allocation.java:2654)
at androidx.renderscript.Allocation.typeFromBitmap(Allocation.java:2659)
at androidx.renderscript.Allocation.createFromBitmap(Allocation.java:2696)
at androidx.renderscript.Allocation.createFromBitmap(Allocation.java:2749)
at at.favre.lib.dali.blur.algorithms.RenderScriptGaussianBlur.blur(RenderScriptGaussianBlur.java:24)
at at.favre.lib.dali.builder.blur.BlurWorker.process(BlurWorker.java:129)
at at.favre.lib.dali.builder.blur.BlurWorker.call(BlurWorker.java:48)
at at.favre.lib.dali.builder.blur.BlurWorker.call(BlurWorker.java:27)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:798)
The text was updated successfully, but these errors were encountered:
Yes, looks like renderscript doesn't support hardware bitmaps. As a workaround for #19 and #20 I'm copying the bitmap to a new one with ARGB_8888 config.
The text was updated successfully, but these errors were encountered: