-
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
[$250] Android/IOS - Chat - App is crashed after tap on avatar for non-existing account #9182
Comments
Triggered auto assignment to @danieldoglas ( |
Confirmed it is a bug and it's not on API. |
Triggered auto assignment to @bfitzexpensify ( |
Upwork job here |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
Triggered auto assignment to @aldo-expensify ( |
we can handle this exception by using ? mark . as you say the account is not exist so the code surly pick the data and it did not find data so we can use ? mark. |
I reported this bug 2 months ago but its ticket wasn't created. The thread is here. |
ProposalWhy?The error showing up because there's no App/src/pages/home/report/ReportActionsView.js Lines 130 to 132 in 3e52b9a
The problem is there's a different time between Web and iOS/Android when loading the On Web, the On the iOS/Android, the How?So we need to fetch the App/src/pages/home/report/ReportActionsView.js Lines 130 to 132 in 3e52b9a
We can extend the condition to check if the personalDetails data is provided or not to run the Report.fetchChatReportsByIDs function.
if (!this.props.report.reportID || !this.props.personalDetails[this.props.report.reportID]) {
Report.fetchChatReportsByIDs([this.props.reportID], true);
} ResultScreen.Recording.2022-05-27.at.18.46.15.movScreen.Recording.2022-05-27.at.18.45.49.mov |
We have checked the source code and tried to run the app. We have identified that the non-existing account, it is not able to get the below example data:
That data you are getting from the DetailsPage.js file:
Also, we are facing this issue for the one time only, for the second time onwards, we are not getting any crashes. Thanks & Regards. Screen.Recording.2022-05-30.at.5.12.59.PM.mov |
@mananjadhav, @bfitzexpensify, @aldo-expensify Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Taking this internally as the proposed solution doesn't work well, and I think a better approach is to just show a loading indicator while the personal details are not available: PR up: #9385 I'm changing this to |
After digging more and testing in Android, I realized that what I was proposing here (just adding a spinner) doesn't fix it for Android/IOS. There are two different problems that end up with the same crash. I mistakenly though they were the same.
@mollfpr proposed solution indeed fixes the Problem 1, but the crash can still happen if you click the avatar fast enough before the request On the other hand, what I was proposing (just add a spinner) solves Problem 2. My fix without @mollfpr solution causes the spinner to appear and spin forever in Android/IOS. Having said that, I'll put everything together in this PR: #9385, and @mollfpr should still be compensated because we are using his solution. |
@mananjadhav, @bfitzexpensify, @aldo-expensify Eep! 4 days overdue now. Issues have feelings too... |
@mananjadhav, @bfitzexpensify, @aldo-expensify Huh... This is 4 days overdue. Who can take care of this? |
@mananjadhav, @bfitzexpensify, @aldo-expensify Still overdue 6 days?! Let's take care of this! |
Melvin, PR is in review. |
Not overdue, in review |
@mananjadhav, @bfitzexpensify, @aldo-expensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@mananjadhav, @bfitzexpensify, @aldo-expensify Eep! 4 days overdue now. Issues have feelings too... |
No overdue, the PR was merged, but has not been deployed yet. |
Issue not reproducible during KI retests. (First week) |
📣 @mollfpr You have been assigned to this job by @aldo-expensify! |
@mananjadhav, @mollfpr, @bfitzexpensify, @aldo-expensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@mananjadhav, @mollfpr, @bfitzexpensify, @aldo-expensify 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
No overdue. The PR has been deployed to production |
Issue not reproducible during KI retests. (Second week) |
OK, reposting the Upwork job here, priced at $250 for the following contributors: @adeel0202 (reporting) Please apply and I will pay out once that's done - thanks! |
All contracts paid out and ended - thanks for the work here everyone! |
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 is not crashed after tap on avatar for non-existing account
Actual Result:
App is crashed after tap on avatar for non-existing account
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.67.0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers): any
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen_Recording_20220526-093147_New.Expensify.mp4
Image.from.iOS.29.MP4
Expensify/Expensify Issue URL:
Issue reported by: @adeel0202 Applause - Internal Team
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1649374016010969
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: