-
Notifications
You must be signed in to change notification settings - Fork 30
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 report "ava.lang.IllegalArgumentException: The view given to waitForMeasure is not attached to the window and does not have a ViewTreeObserver." #628
Comments
Uhh, I'm going to close this because the logs make no sense at all. waitForMeasure is only used in two places, and neither of them are in PostCell. This is probably the only thing I noticed. |
That's funny. |
Maybe we could just add a check in waitForMeasure() whether a view has a parent and/or |
It's just to make sure you have something to check what sort of view it is that isn't null. It's basically a null view because it isn't attached to anything, but won't throw as many errors. |
Another report with the same thing. It was in a version with this fix, so the fix didn't help. I suggest we try checking whether the view has a parent and is attached to a window.
|
Gonna copy everything from a similar issue here.
Here is the culprit (found thanks to the logs sent alongside the stacktrace):
Probably should add the background/foreground check around any dialog window/popup window/toast/snackbar etc. Or even better create custom classes that extend dialog window/popup window/toast/snackbar etc. with this check internal so it's more clean and we won't have to think about it in the future. |
Still keeps happening:
|
UUID: 966024fbcd88b8fe742808a1229934d4
Build flavor: stable
Version name: v4.11.0
OS info: Android 9, sdk version: 28
Report description: No title
Logs:
The text was updated successfully, but these errors were encountered: