-
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
Crash when clicking "Collect data" again in recently added geometry #2539
Comments
Pulled the stacktrace from crashlytics:
|
@shobhitagarwal1612 @sufyanAbbasi Do you have bandwidth to take this one on in the next week or so? |
I can take a first pass |
Thank you, @shobhitagarwal1612 |
The error is happening at line It is not able to find a task from the list with matching task id. |
@jo-spek Are you able to reproduce this consistently? I tried reproing it but wasn't successful. |
From crashlytics, I can see that it has happened 14 times in total for 3 different users. |
@jo-spek Can you please share the URL of the survey in question in private (by email)? |
I added you as a survey organizer. The name of the survey is "Test_June2024". |
The task in question was a special "add LOI" task - could that have something to do with it? |
That's very plausible. Here we construct the tasks list by filtering out the
We determine that we're in this flow when the
Which is determined by puling from the
Maybe the crash happened because the LOI task is the only task, as mentioned in the repro, so we filtered the task list to empty, which was caught by @shobhitagarwal1612 PR: #2543? Therefore, to fix this, we can just detect when we've gotten to this state and instead of starting the data collection task, we just throw the error toast: "No more tasks found for this job." |
Implemented fix above will show an error message instead of crashing: "This job has no more tasks to complete" |
Describe the bug
After having recorded a new site in my survey that does not require anything else but recording a geometry (no further questions, no photo demanded), there is a white pane at the bottom of my screen with the record's name and a green button "Collect data". If I click that button, the app crashes. This does not happen in another survey, where I can answer additional survey questions about a recorded item that I have previously skipped when I click "Collect data".
Happened on Xiaomi Poco X3 with Andoird 12 SQK1.211019.001.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I don't really know. Probably not crash. Rather have the "Collect data"-button greyed out.
Actual behavior
Button is there and clickable and triggers a crash of the application.
Screenshots
The text was updated successfully, but these errors were encountered: