-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Desktop - App is crashing when select Priority mode #7811
Comments
Triggered auto assignment to @strepanier03 ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @marcaaron ( |
So it is not reproducible with these steps or it is? Are there more detailed steps?
That didn't result in the bug on web or desktop so I'm going to remove the deploy blocker. |
There are logs that we can look at to see what maybe happened here. But only if we know what email was used. |
@marcaaron can you check applausetester+mvtutest@applause.expensifail.com Regarding the steps. I did not do anything special. Just changed the mode and app crashed |
Triggered auto assignment to @puneetlath ( |
Issue not reproducible during KI retests. (First week) |
Another user has experienced this. Seems to be related to newly added drafts. |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry ignore previous comment. I can't repro this. Let's wait until the log fix is live and then we will have more information about what is going wrong. Please make sure to share the tester email the next time someone experiences this. |
Looking into this here: #7810 |
The app is crashing because of our use of map() here https://github.com/Expensify/App/blame/a87b53c273be288bdc887d618973404ba01ea22b/src/pages/home/sidebar/SidebarLinks.js#L170-L174 When we go through the list of report objects, we end up filtering out some in the next nested loop. But because map doesn't remove anything, when a report is filtered out, it returns undefined. So an array of like 8 reports will have undefined elements in them, which causes the app to crash with this error here: #7810 (comment) |
It turns out that we need to use map because that is how we preserve the original order of the conversations. So we iterate through the original order, and replace those report objects with the new ones from |
Just happened to me, here's logs if it's helpful. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
App should not crash
Actual Result:
App is crashing.
Issue is not repro after user switches mode few times back and forth, but its always repro on first change after opening app from background
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.39-1
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Recording.393.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: