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-06-05] [$250] iOS - Wallet - App crashes when scrolling up and down bank account selection list #41069

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

Comments

@izarutskaya
Copy link

izarutskaya commented Apr 26, 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: 1.4.66-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Launch New Expensify app.
  2. Go to Account settings.
  3. Go to Wallet.
  4. Tap Add bank account > Personal bank account.
  5. Log in to Chase account.
  6. On ND, scroll up and down the bank account selection modal.

Expected Result:

App will not crash.

Actual Result:

App crashes.

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

Bug6462096_1714078021885.RPReplay_Final1714077927.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0113aa04e4d3e2832e
  • Upwork Job ID: 1790371872885301248
  • Last Price Increase: 2024-05-14
  • Automatic offers:
    • Ollyws | Reviewer | 0
    • bernhardoj | Contributor | 0
Issue OwnerCurrent Issue Owner: @abekkala
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 26, 2024
Copy link

melvin-bot bot commented Apr 26, 2024

Triggered auto assignment to @abekkala (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.

@izarutskaya
Copy link
Author

We think this issue might be related to the #vip-vsb.

@melvin-bot melvin-bot bot added the Overdue label Apr 29, 2024
Copy link

melvin-bot bot commented Apr 29, 2024

@abekkala Whoops! This issue is 2 days overdue. Let's get this updated quick!

@abekkala
Copy link
Contributor

I wasn't able to reproduce this - applying re-test weekly label

@melvin-bot melvin-bot bot removed the Overdue label Apr 29, 2024
@abekkala abekkala added Overdue retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause and removed Overdue labels Apr 29, 2024
@melvin-bot melvin-bot bot added the Overdue label May 2, 2024
Copy link

melvin-bot bot commented May 3, 2024

@abekkala Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@bernhardoj
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

App crash when scrolling in the add personal bank account plaid bank account picker.

What is the root cause of that problem?

The crash will happen if you scroll to the "Choose an account" item. The issue started to happen after the fabric support was added to @react-native-picker/picker.

The "Choose an account" is a placeholder item with an empty value.

placeholder={{
value: '',
label: translate('bankAccount.chooseAnAccount'),
}}

If the value is empty, it will be converted to nil when creating the picker items map/dict.
https://github.com/react-native-picker/picker/blob/7b7a95f4fe842d0a0c696310f9f10a8267247227/ios/RNCPickerComponentView.mm#L51

When selection the picker item, if the value is nil, it will be converted to kCFNull which will crash inside RCTStringFromNSString.
https://github.com/react-native-picker/picker/blob/7b7a95f4fe842d0a0c696310f9f10a8267247227/ios/RNCPicker.mm#L160

What changes do you think we should make in order to solve the problem?

Don't convert to nil if the value is empty. So, we can replace RCTNSStringFromStringNilIfEmpty with RCTNSStringFromString. I think we can do the same for label and testID.

Then, we can remove RCTNullIfNil from here since it's not possible anymore to have a null value because we always cast the value to string.

Copy link

melvin-bot bot commented May 7, 2024

@abekkala 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@abekkala
Copy link
Contributor

abekkala commented May 8, 2024

we're retesting this

@melvin-bot melvin-bot bot removed the Overdue label May 8, 2024
Copy link

melvin-bot bot commented May 10, 2024

@abekkala this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@melvin-bot melvin-bot bot added the Overdue label May 10, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

Copy link

melvin-bot bot commented May 13, 2024

@abekkala Eep! 4 days overdue now. Issues have feelings too...

@bernhardoj
Copy link
Contributor

It's still reproducible. You just need to select the Choose an account item.

Screen.Recording.2024-05-14.at.10.02.15.mov

@abekkala abekkala added External Added to denote the issue can be worked on by a contributor and removed retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause labels May 14, 2024
@melvin-bot melvin-bot bot changed the title iOS - Wallet - App crashes when scrolling up and down bank account selection list [$250] iOS - Wallet - App crashes when scrolling up and down bank account selection list May 14, 2024
Copy link

melvin-bot bot commented May 14, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0113aa04e4d3e2832e

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 14, 2024
Copy link

melvin-bot bot commented May 14, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws (External)

@bernhardoj
Copy link
Contributor

bernhardoj commented May 20, 2024

Upstream PR is merged. Waiting for a new picker version to be released.

@amyevans
Copy link
Contributor

Nice! 🙌

@bernhardoj
Copy link
Contributor

The fix has been released. PR to update the version is ready.

cc: @Ollyws @amyevans

@abekkala
Copy link
Contributor

Deployed to staging May 27

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 29, 2024
@melvin-bot melvin-bot bot changed the title [$250] iOS - Wallet - App crashes when scrolling up and down bank account selection list [HOLD for payment 2024-06-05] [$250] iOS - Wallet - App crashes when scrolling up and down bank account selection list May 29, 2024
Copy link

melvin-bot bot commented May 29, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label May 29, 2024
Copy link

melvin-bot bot commented May 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.76-7 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-06-05. 🎊

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

Copy link

melvin-bot bot commented May 29, 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:

  • [@Ollyws] The PR that introduced the bug has been identified. Link to the PR:
  • [@Ollyws] 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:
  • [@Ollyws] 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:
  • [@Ollyws] Determine if we should create a regression test for this bug.
  • [@Ollyws] 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.
  • [@abekkala] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@abekkala
Copy link
Contributor

PAYMENT SUMMARY FOR JUNE 05

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jun 4, 2024
@abekkala
Copy link
Contributor

abekkala commented Jun 5, 2024

@bernhardoj payment sent and contract ended - thank you! 🎉

@Ollyws can you please complete the checklist above? Thanks!

@melvin-bot melvin-bot bot removed the Overdue label Jun 5, 2024
@abekkala
Copy link
Contributor

abekkala commented Jun 6, 2024

@Ollyws can you please accept the payment offer in Upwork and complete the checklist above?

@abekkala
Copy link
Contributor

abekkala commented Jun 7, 2024

@Ollyws can you please accept the payment offer in Upwork and complete the checklist above so that we can close this one out?

@Ollyws
Copy link
Contributor

Ollyws commented Jun 9, 2024

BugZero Checklist:

  • The PR that introduced the bug has been identified. Link to the PR:

This was an upstream bug so we can't really pin this on any PR in our repo.

  • 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:

N/A

  • 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:

N/A

  • Determine if we should create a regression test for this bug.

I don't think it's necessary but if we did want one the steps would be:

1. Go to Settings > Wallet
2. Press Add bank account and choose Personal bank account
3. Complete the plaid bank account step
4. In the bank account picker page, verify the initial value is the placeholder, "Choose an account"
5. Press the picker and change it to any value
6. Press the picker again and change it back to the placeholder, "Choose an account"
7. Verify the app doesn't crash

@Ollyws
Copy link
Contributor

Ollyws commented Jun 9, 2024

Requested payment on ND.

@melvin-bot melvin-bot bot added the Overdue label Jun 10, 2024
@melvin-bot melvin-bot bot removed the Overdue label Jun 10, 2024
@abekkala
Copy link
Contributor

PAYMENT SUMMARY:

@JmillsExpensify
Copy link

$250 approved for @Ollyws

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 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Archived in project
Development

No branches or pull requests

7 participants