-
Notifications
You must be signed in to change notification settings - Fork 120
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
Force quit on consecutive geometry tasks (com.google.maps.api.android.lib6.impl.as cannot be cast to android.view.ViewGroup) #2493
Comments
This is unfortunately blocking the end to end tests as well as exasperated by the fact that we always have a capture location task as the first task by default, since ad-hoc surveys will always put the loiTask afterwards |
Ok, I found the problem, it is so silly... Line 47 in 4b6a9d4
Here we create a Line 50 in 4b6a9d4
When I arbitrarily added 10,000 to the ID, the crash is prevented, hence I believe this is an ID conflict problem. The fix is to fuzz the ID numbers to decrease the chance of collisions, or somehow get it to always find the RowLayout element every time, maybe there's a different |
Describe the bug
Received the following error when two subsequent location tasks are being rendered: the map doesn't render and we see this in the stack trace:
I placed breakpoints at the exact line where the crash occurs and inspected the thing that was failing to cast as a ViewGroup. It turns out that the crash happens when it tries to render the compass of all things!
It happens specifically when I try to render the
DrawAreaTaskFragment
before or after a drop pin LOI task.When I just have a Draw Area LOI task and no other, then it seems to work
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The text was updated successfully, but these errors were encountered: