React-native-blur: android The jump page crashed after loading : java.lang.IndexOutOfBoundsException: Index: 2, Size: 0

Created on 20 May 2020  ·  6Comments  ·  Source: Kureev/react-native-blur

2020-05-20 16:54:02.021 13006-13006/com.vitypety E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.vitypety, PID: 13006
java.lang.IndexOutOfBoundsException: Index: 2, Size: 0
at java.util.ArrayList.get(ArrayList.java:411)
at android.view.ViewGroup.getAndVerifyPreorderedView(ViewGroup.java:3057)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3513)
at com.facebook.react.views.view.ReactViewGroup.dispatchDraw(ReactViewGroup.java:703)
at android.view.View.draw(View.java:17120)
at android.view.ViewGroup.drawChild(ViewGroup.java:3729)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3515)
at com.facebook.react.views.view.ReactViewGroup.dispatchDraw(ReactViewGroup.java:703)
at android.view.View.draw(View.java:17120)
at android.view.ViewGroup.drawChild(ViewGroup.java:3729)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3515)
at com.facebook.react.views.view.ReactViewGroup.dispatchDraw(ReactViewGroup.java:703)
at android.view.View.draw(View.java:17217)
at android.view.View.draw(View.java:17122)
at android.view.ViewGroup.drawChild(ViewGroup.java:3729)
...

Most helpful comment

+1 also getting this on 3.6.0

All 6 comments

+1 also getting this on 3.6.0

因为你同时存在俩 BlurView , 导致闪退,
我的父页面存在一个Blur, 子页面也使用了一个.
然后跳转子页面就GG

因为你同时存在俩 BlurView , 导致闪退,
我的父页面存在一个Blur, 子页面也使用了一个.
然后跳转子页面就GG

那界面上一定需要绘制多个BlurView ,这个问题应该如何解决呢?

I think this error appears when multiple blur views are rendered in a view and some of them are being removed. Only an issue on android.

this issue makes this nice plugin unusable.
Any attempt made to fix this issue?

+1

Was this page helpful?
0 / 5 - 0 ratings