wasabeef / Blurry

Blurry is an easy blur library for Android
Apache License 2.0
5.59k stars 604 forks source link

Unexpected Crash: ArrayIndexOutOfBoundsException #113

Open rtsketo opened 3 years ago

rtsketo commented 3 years ago

Bug Reporting

Steps to Reproduce

Unknown

Actual Results (include screenshots)

Fatal Exception: java.lang.ArrayIndexOutOfBoundsException
length=2; index=2
java.util.ArrayList.clear (ArrayList.java:569)
android.view.ViewGroup.dispatchDraw (ViewGroup.java:4222)
android.view.View.draw (View.java:20376)
android.view.View.draw (View.java:20238)
android.view.ViewGroup.drawChild (ViewGroup.java:4421)
android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
android.view.View.draw (View.java:20236)
android.view.ViewGroup.drawChild (ViewGroup.java:4421)
android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
android.view.View.draw (View.java:20236)
android.view.ViewGroup.drawChild (ViewGroup.java:4421)
android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
android.view.View.draw (View.java:20236)
android.view.ViewGroup.drawChild (ViewGroup.java:4421)
android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
android.view.View.draw (View.java:20236)
android.view.ViewGroup.drawChild (ViewGroup.java:4421)
android.view.ViewGroup.dispatchDraw (ViewGroup.java:4207)
android.view.View.draw (View.java:20376)
com.android.internal.policy.DecorView.draw (DecorView.java:980)
android.view.View.buildDrawingCacheImpl (View.java:19616)
android.view.View.buildDrawingCache (View.java:19476)
android.view.View.getDrawingCache (View.java:19382)
android.view.View.getDrawingCache (View.java:19347)
jp.wasabeef.blurry.internal.Blur.of (Blur.java:40)
jp.wasabeef.blurry.Blurry$ImageComposer.into (Blurry.java:212)

Expected Results (include screenshots)

Not to crash.

OS details

rtsketo commented 3 years ago

It was occurred in 3.0.0. Please ignore this issue if it's already fixed in 4.0.0.