BlurView drawing above another BlurView causes crash
See original GitHub issue- 1.6.3
- Pixel 4 Api 29 Emulator
- I have a RecyclerView that has BlurView inside of it. That works fine. The problem is I have a fragment that hosts this RecyclerView and on one particular click on a button, I open DialogFragment which is completely custom. This DialogFragment is blurred. The problem is, when this dialog shows above the RecyclerView I get an error. I guess it is because one BlurView shows above another BlurView. I’ve seen in closed issues that someone already asked about this but in my case it is incidental and I really can’t avoid it. Could you help me somehow?
- I can provide XML layout if you need it but the issue is not in it I guess
2020-11-05 15:21:22.753 17031-17031/lu.thebiggame E/AndroidRuntime: FATAL EXCEPTION: main Process: lu.thebiggame, PID: 17031 java.lang.IndexOutOfBoundsException: Index: 3, Size: 0 at java.util.ArrayList.get(ArrayList.java:437) at android.view.ViewGroup.getAndVerifyPreorderedView(ViewGroup.java:3659) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4147) at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1975) at android.view.View.draw(View.java:21293) at android.view.ViewGroup.drawChild(ViewGroup.java:4388) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4149) at android.view.View.draw(View.java:21424) at android.view.View.draw(View.java:21295) at android.view.ViewGroup.drawChild(ViewGroup.java:4388) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4149) at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1975) at android.view.View.draw(View.java:21293) at android.view.ViewGroup.drawChild(ViewGroup.java:4388) at androidx.recyclerview.widget.RecyclerView.drawChild(RecyclerView.java:5125) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4149) at android.view.View.draw(View.java:21424) at androidx.recyclerview.widget.RecyclerView.draw(RecyclerView.java:4524) at android.view.View.draw(View.java:21295) at android.view.ViewGroup.drawChild(ViewGroup.java:4388) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4149) at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1975) at android.view.View.draw(View.java:21293) at android.view.ViewGroup.drawChild(ViewGroup.java:4388) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4149) at android.view.View.draw(View.java:21424) at androidx.core.widget.NestedScrollView.draw(NestedScrollView.java:1998) at android.view.View.draw(View.java:21295) at android.view.ViewGroup.drawChild(ViewGroup.java:4388) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4149) at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1975) at android.view.View.draw(View.java:21424) at eightbitlab.com.blurview.BlockingBlurController.updateBlur(BlockingBlurController.java:149) at eightbitlab.com.blurview.BlockingBlurController$1.onPreDraw(BlockingBlurController.java:61) at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:1088) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2745) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1721) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7598) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:966) at android.view.Choreographer.doCallbacks(Choreographer.java:790) at android.view.Choreographer.doFrame(Choreographer.java:725) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:951) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Why does this shader crash on Android? - glsl - Stack Overflow
I want it to look better, so by increasing mSize more samples are taken and the blur looks better. This works great when...
Read more >OC7 Crashing :: openCanvas 7 General Discussions
OC7 keeps crashing/not responding on my computer. ... This is usually due to using the blur brush. ... Intel or another amd CPU?...
Read more >React native blur : r/reactnative - Reddit
Then run the simulator, have it crash, and then go back to the terminal and ctrl+C to quit the logcat. Open the crash_log.txt...
Read more >react-native-blur - Bountysource
Android app crashes when used multiple blurView in one component. One BlurView in component is working fine. Environment info. react-native info output: System: ......
Read more >How to Fix a GPU Driver Crash - Unreal Engine Documentation
If you are close to the available memory limit, it is most likely the problem causing the crash. In this case try the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
另一个BlurView上方绘制的BlurView,上方的不生效没崩溃,都是包含在ConstraintLayout里面,我尝试把上方的从ConstraintLayout拿出来,然后在上方绘制,结果ok了。
Closing this one as a duplicate of https://github.com/Dimezis/BlurView/issues/110 Please post your repos/code samples/steps to reproduce there.