Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.StackOverflowError: stack size 8MB at android.view.ViewGroup.buildOrderedChildList(ViewGroup.java:3427) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3313) at androidx.constraintlayout.widget.ConstraintLayout.dispatchDraw(ConstraintLayout.java:1975) #166

Closed
kirikaTowa opened this issue Feb 8, 2022 · 5 comments

Comments

@kirikaTowa
Copy link

Please include:

  1. Library version
  2. Device and OS version
  3. Detailed steps to reproduce the issue
  4. XML layout and code for BlurView setup
  5. Stacktrace in case of a crash
@kirikaTowa
Copy link
Author

kirikaTowa commented Feb 8, 2022

at android.view.View.draw(View.java:15363)
at android.widget.FrameLayout.draw(FrameLayout.java:647)
at eightbitlab.com.blurview.BlockingBlurController.updateBlur(BlockingBlurController.java:122)
at eightbitlab.com.blurview.BlockingBlurController.draw(BlockingBlurController.java:164)

rootView.draw(internalCanvas) Seems to be in an endless loop。In LG 5.0

@Dimezis
Copy link
Owner

Dimezis commented Feb 8, 2022

Please fill in the required details properly

@kirikaTowa
Copy link
Author

kirikaTowa commented Feb 8, 2022

请正确填写所需的详细信息
I would like to ask, this method will cause an infinite loop under normal circumstances in BlockingBlurController, how do you deal with it?
image

@Dimezis
Copy link
Owner

Dimezis commented Feb 8, 2022

The BlurView checks if the Canvas used in draw is internalCanvas, so it draws itself only on system canvas and skips the recursive drawing on internalCanvas

@kirikaTowa
Copy link
Author

Thank you.InternalCanvas will have a problem when performing animation on some 5.0 models, resulting in this type of error. The rootView can be solved by using the parent of the previous level.

@Dimezis Dimezis closed this as completed May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants