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

Crash: "Parameter must be a descendant of this view" #135

Open
avalanchas opened this issue Mar 27, 2023 · 2 comments
Open

Crash: "Parameter must be a descendant of this view" #135

avalanchas opened this issue Mar 27, 2023 · 2 comments

Comments

@avalanchas
Copy link

avalanchas commented Mar 27, 2023

Description

I am currently seeing this crash in production but unfortunately cannot reproduce it yet.

Fatal Exception: java.lang.IllegalArgumentException: parameter must be a descendant of this view
       at android.view.ViewGroup.offsetRectBetweenParentAndChild(ViewGroup.java:6335)
       at android.view.ViewGroup.offsetDescendantRectToMyCoords(ViewGroup.java:6264)
       at androidx.core.widget.NestedScrollView.isWithinDeltaOfScreen(NestedScrollView.java:1580)
       at androidx.core.widget.NestedScrollView.onSizeChanged(NestedScrollView.java:2135)
       at android.view.View.sizeChange(View.java:23739)
       at android.view.View.setFrame(View.java:23691)
       at android.view.View.layout(View.java:23547)
       at android.view.ViewGroup.layout(ViewGroup.java:6452)
       at com.google.android.material.appbar.HeaderScrollingViewBehavior.layoutChild(HeaderScrollingViewBehavior.java:149)
       at com.google.android.material.appbar.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:43)
       at com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:2376)
       at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:918)
       at android.view.View.layout(View.java:23550)
       at android.view.ViewGroup.layout(ViewGroup.java:6452)
       at androidx.coordinatorlayout.widget.CoordinatorLayout.layoutChild(CoordinatorLayout.java:1213)
       at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayoutChild(CoordinatorLayout.java:899)
       at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:919)
       at android.view.View.layout(View.java:23550)
       at android.view.ViewGroup.layout(ViewGroup.java:6452)
       at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
       at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
       at android.view.View.layout(View.java:23550)
       at android.view.ViewGroup.layout(ViewGroup.java:6452)
       at com.sothree.slidinguppanel.SlidingUpPanelLayout.onLayout(SlidingUpPanelLayout.java:861)
       at android.view.View.layout(View.java:23550)
       at android.view.ViewGroup.layout(ViewGroup.java:6452)
       at androidx.coordinatorlayout.widget.CoordinatorLayout.layoutChild(CoordinatorLayout.java:1213)
       at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayoutChild(CoordinatorLayout.java:899)
       at androidx.coordinatorlayout.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:919)
       at android.view.View.layout(View.java:23550)
       at android.view.ViewGroup.layout(ViewGroup.java:6452)
       at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
       at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
       at android.view.View.layout(View.java:23550)
       at android.view.ViewGroup.layout(ViewGroup.java:6452)
       at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829)
       at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673)
       at android.widget.LinearLayout.onLayout(LinearLayout.java:1582)
       at android.view.View.layout(View.java:23550)
       at android.view.ViewGroup.layout(ViewGroup.java:6452)
       at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
       at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
       at android.view.View.layout(View.java:23550)
       at android.view.ViewGroup.layout(ViewGroup.java:6452)
       at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1829)
       at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1673)
       at android.widget.LinearLayout.onLayout(LinearLayout.java:1582)
       at android.view.View.layout(View.java:23550)
       at android.view.ViewGroup.layout(ViewGroup.java:6452)
       at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
       at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
       at com.android.internal.policy.DecorView.onLayout(DecorView.java:866)
       at android.view.View.layout(View.java:23550)
       ...

Versions, Devices

  • All kinds of devices, Samsung, Xiamo etc.
  • Android 10 upwards (but does not have to mean much, these are the most popular versions on the market)
  • SlidingUpPanel version: 4.4.2
@hannesa2
Copy link
Owner

If it's still an issue then you should share the sample code

@avalanchas
Copy link
Author

If it's still an issue then you should share the sample code

yeah I'm really sorry, I know this is a horrible bugticket as it stands.
But I have no reproduction steps at the moment and it doesn't originate in a line of code that is from me, so I can't even quote the code there. It must be happening during a view restore of some kind, maybe during navigation

I'll keep an eye out on this and amend this ticket with any information if I find something.
Until then I was just hoping maybe somebody here already knows this problem or has seen something similar

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