Open mlessio opened 9 years ago
Hi @mlessio Thanks a lot for your report (:
What do you mean by "in v2" ?
Could you tel us which version of the library you are using as well as the configuration of blur engine (blur radius, renderscript enabled, etc.)?
Hope we will be able to solve it (:
Genymotion Samsung Galaxa S4, API level 19 mRadius = 8; mDownScaleFactor = 4.0f; dependency: compile 'fr.tvbarthel.blurdialogfragment:lib:2.1.4'
Hi @Nook2007 (=
Thanks for all the details.
It seems to be the same issue as : https://github.com/tvbarthel/BlurDialogFragment/issues/2
The ArrayIndexOutOfBoundsException might be only thown on genymotion devices. The first reports was for a nexus 10 emulated thanks to Genymotion but it worked fine for a real nexus 10.
I found another issue from another "blur project" on GitHub with the same exception : https://github.com/kikoso/android-stackblur/issues/10
I will try to find more information in order to understand what's happening (=
+1
So on occasion I see this problem as well.
I dug into the code a bit and realized it's because it was using an older version (circa 2012) of the Stack Blur algorithm. Will create a PR with the latest version of the Stack Blur, which should fix this problem.
+1,how to fix this bug
+1
Library version: 2.2.0
The issue is still opened in API 19 when we use SupportBlurDialogFragment or BlurDialogFragment. Is there any possible workaround?
FATAL EXCEPTION: AsyncTask #2 java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:300) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355) at java.util.concurrent.FutureTask.setException(FutureTask.java:222) at java.util.concurrent.FutureTask.run(FutureTask.java:242) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 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) Caused by: java.lang.ArrayIndexOutOfBoundsException: length=2304; index=2532 at fr.tvbarthel.lib.blurdialogfragment.FastBlurHelper.doBlur(FastBlurHelper.java:132) at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine.blur(BlurDialogEngine.java:422) at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine.access$400(BlurDialogEngine.java:42) at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine$BlurAsyncTask.doInBackground(BlurDialogEngine.java:593) at fr.tvbarthel.lib.blurdialogfragment.BlurDialogEngine$BlurAsyncTask.doInBackground(BlurDialogEngine.java:550) at android.os.AsyncTask$2.call(AsyncTask.java:288)
Hi, only on a Samsung Galaxy S4 i9500 i get this crash when i try to open a SupportBlurDialogFragment:
Hope it helps!