Skip to content
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

[HOLD for payment 2024-07-24] [$250] Profile - App crashes when uploading profile picture #45162

Closed
6 tasks
lanitochka17 opened this issue Jul 10, 2024 · 51 comments
Closed
6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@lanitochka17
Copy link

lanitochka17 commented Jul 10, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.0.6.0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team

Action Performed:

  1. Open New Expensify and open profile
  2. Tap profile picture and tap "upload photo"
  3. Select "choose from gallery" and select and photo

Expected Result:

New profile picture is uploaded

Actual Result:

The app crashes on edit profile picture screen

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6537951_1720620506102.RPReplay_Final1720620209.mp4
Bug6537951_1720621126292.XRecorder_10072024_095936.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~012a2b40164b680402
  • Upwork Job ID: 1811767351593075552
  • Last Price Increase: 2024-07-12
  • Automatic offers:
    • Ahmed-Abdella | Contributor | 103120778
    • QichenZhu | Contributor | 103123196
Issue OwnerCurrent Issue Owner: @muttmuure
@lanitochka17 lanitochka17 added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Jul 10, 2024
Copy link

melvin-bot bot commented Jul 10, 2024

Triggered auto assignment to @muttmuure (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Jul 10, 2024

Triggered auto assignment to @yuwenmemon (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jul 10, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@yuwenmemon
Copy link
Contributor

Able to reproduce.

@yuwenmemon
Copy link
Contributor

Installing a fresh simulator to give this a test

@yuwenmemon
Copy link
Contributor

yuwenmemon commented Jul 10, 2024

Seems like this is coming from reanimated, and the ImageCropView component - but nothing was recently changed about them on the staging version 🤔

@yuwenmemon
Copy link
Contributor

@roryabraham Could this somehow have affected the reanimated patch that we apply on staging?

@yuwenmemon
Copy link
Contributor

yuwenmemon commented Jul 10, 2024

We renamed the reanimated patches here and I'm not sure why 🤔 - but it looks awfully sus

@danieldoglas
Copy link
Contributor

I don't think this is related to backend, removing the DeployBlocker tag

@danieldoglas danieldoglas removed the DeployBlocker Indicates it should block deploying the API label Jul 11, 2024
@Julesssss
Copy link
Contributor

@roryabraham Could this somehow have affected the reanimated patch that we apply on staging?

Tagging the other PR reviewers who are also familiar with the changes: @AndrewGable @fabioh8010

@yuwenmemon
Copy link
Contributor

Damn, I can't reproduce on dev with the iOS simulator 🤔

@yuwenmemon
Copy link
Contributor

yuwenmemon commented Jul 11, 2024

Ah, we renamed them to reflect the current version of reanimated we're using in the app.

@roryabraham
Copy link
Contributor

No, I don't think that PR would have affected the Reanimated patch. All that PR does is fail patch-package if it has an errors or warnings.

For the Reanimated patches, they produced warnings because we had updated the version of Reanimated we were using without updating the patches accordingly. This was a mistake easily missed by reviewers, but my PR would have prevented it. In order to get ✅ on the PR, I had to rename the Reanimated patches to suppress the warning(s).

Why do I say this likely did not cause the crash? Because patch-package was already applying the reanimated patches despite the version mis-match. So app should have been unaffected

@roryabraham
Copy link
Contributor

The warning that I fixed looks like this:

Warning: patch-package detected a patch file version mismatch

  Don't worry! This is probably fine. The patch was still applied
  successfully. Here's the deets:

  Patch file created for

    [email protected]

  applied to

    [email protected]
  
  At path
  
    node_modules/react-native-reanimated

  This warning is just to give you a heads-up. There is a small chance of
  breakage even though the patch was applied successfully. Make sure the package
  still behaves like you expect (you wrote tests, right?) and then run

    patch-package react-native-reanimated

  to update the version in the patch file name and make this warning go away.

@Ahmed-Abdella
Copy link
Contributor

Okay thanks, in the meantime I'll need to switch proposals as this issue is a major blocker for us internally. We can sort out bounties later.

@Julesssss Sure thing. I just couldn't test it on iOS because there was a bug causing an iOS build failure.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jul 15, 2024
@Julesssss
Copy link
Contributor

Hey @Pujan92, @QichenZhu's PR is ready for testing now/ Let us know if you aren't available. thanks

@Pujan92
Copy link
Contributor

Pujan92 commented Jul 15, 2024

Yes @Julesssss , looking into it and testing

@mountiny mountiny removed the DeployBlockerCash This issue or pull request should block deployment label Jul 15, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 17, 2024
@melvin-bot melvin-bot bot changed the title [$250] Profile - App crashes when uploading profile picture [HOLD for payment 2024-07-24] [$250] Profile - App crashes when uploading profile picture Jul 17, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 17, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jul 17, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.7-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-07-24. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Jul 17, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@Pujan92] The PR that introduced the bug has been identified. Link to the PR:
  • [@Pujan92] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@Pujan92] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@Pujan92] Determine if we should create a regression test for this bug.
  • [@Pujan92] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@muttmuure] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jul 23, 2024
Copy link

melvin-bot bot commented Jul 26, 2024

@yuwenmemon, @Pujan92, @applausebot, @muttmuure, @QichenZhu, @Ahmed-Abdella Whoops! This issue is 2 days overdue. Let's get this updated quick!

@muttmuure
Copy link
Contributor

@Pujan92 - $250 C+
@QichenZhu - $250 C
@Ahmed-Abdella - $250 C

@melvin-bot melvin-bot bot removed the Overdue label Jul 29, 2024
@muttmuure
Copy link
Contributor

@Pujan92 can you clarify if we need a regression test?

@Pujan92
Copy link
Contributor

Pujan92 commented Jul 29, 2024

Regression Test Steps

  1. Open profile page
  2. Tap profile picture and select "upload photo"
  3. Select any photo from gallary
  4. Verify that the app doesn't crash

@JmillsExpensify
Copy link

$250 approved for @Pujan92

@melvin-bot melvin-bot bot added the Overdue label Jul 31, 2024
Copy link

melvin-bot bot commented Aug 1, 2024

@yuwenmemon, @Pujan92, @applausebot, @muttmuure, @QichenZhu, @Ahmed-Abdella Whoops! This issue is 2 days overdue. Let's get this updated quick!

Copy link

melvin-bot bot commented Aug 5, 2024

@yuwenmemon, @Pujan92, @applausebot, @muttmuure, @QichenZhu, @Ahmed-Abdella Still overdue 6 days?! Let's take care of this!

@muttmuure
Copy link
Contributor

Everyone is paid and regression test requested

@melvin-bot melvin-bot bot removed the Overdue label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests