sahasbhop / apng-view

Android custom Drawable view that can display and animate APNG resources.
Apache License 2.0
160 stars 30 forks source link

数组越界 #22

Open xjtn8gl opened 5 years ago

xjtn8gl commented 5 years ago

java.lang.IndexOutOfBoundsException: Invalid index 25, size is 25 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308) at com.github.sahasbhop.apngview.ApngDrawable.createAnimateBitmap(ApngDrawable.java:342) at com.github.sahasbhop.apngview.ApngDrawable.drawAnimateBitmap(ApngDrawable.java:313) at com.github.sahasbhop.apngview.ApngDrawable.draw(ApngDrawable.java:229) at android.widget.ImageView.onDraw(ImageView.java:1226) at android.view.View.draw(View.java:16256) at android.view.View.updateDisplayListIfDirty(View.java:15253) at android.view.View.draw(View.java:16026)

他报这个错误的时候,前面还有个错误说是找不到文件 E2C5859598AAE6C0E42B857B90B6567C_025.png: open failed: ENOENT (No such file or directory)

我不知道这是什么原因,可以看一下吗

xjtn8gl commented 5 years ago

出现这个数组越界,是因为我频繁的关开view,然后重置APNG的位置,导致的这个数组越界