Skip to content

Reports - App crashes when sorting expenses while expenses are selected #69698

Closed

Description

@mitarachim

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.2.1-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): sjdiosjnojdsojsd@gmail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.5 / Chrome
App Component: Search

Action Performed:

Precondition:

  • Have at least expense in the workspace chat.
  1. Go to staging.new.expensify.com
  2. Go to Reports > Expenses.
  3. Select all expenses via checkbox.
  4. Click Merchant on the table header.

Expected Result:

App will not crash.

Actual Result:

App crashes.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6933772_1756852713643!crash_2.txt

Bug6933772_1756852713644.crash_2.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @ishpaul777

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    DeployBlocker
    on Sep 2, 2025
  2. melvin-bot commented on Sep 2, 2025

    @melvin-bot

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

  3. melvin-bot commented on Sep 2, 2025

    @melvin-bot

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

  4. melvin-bot commented on Sep 2, 2025

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on Sep 2, 2025

    @github-actions
    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.
  6. MonilBhavsar commented on Sep 3, 2025

    @MonilBhavsar
    Contributor

    Removing DeployBlocker label as it is not related to API

  7. removed
    DeployBlocker
    on Sep 3, 2025
  8. 21 remaining items

  9. VickyStash commented on Sep 5, 2025

    @VickyStash
    Contributor

    It crashes for me on this PR #66890 branch. I'm checking if it's this one or something that was merged before

  10. VickyStash commented on Sep 5, 2025

    @VickyStash
    Contributor

    For me, reverting of #67745 fixes the crash!

  11. VickyStash commented on Sep 5, 2025

    @VickyStash
    Contributor

    Draft PR with revert for testing: #69961

  12. added
    Reviewing
    on Sep 5, 2025
  13. arosiclair commented on Sep 5, 2025

    @arosiclair
    Contributor

    Fixed in v9.2.1-20!

  14. removed
    DeployBlockerCash
    on Sep 5, 2025
  15. marcaaron commented on Sep 5, 2025

    @marcaaron
    Contributor

    I am curious about why the inline selector was related to this infinite loop. I didn't dig too much into the Flashlist code and just spent some time analyzing which props were allegedly changing. @VickyStash whenever you find out I would love to know! Also, thanks for the help with this. I have a suspicion that the inline selectors are maybe not so good in general because they are recreated on each render, but that's not really the same as causing infinite renders 🙃

  16. VickyStash commented on Sep 8, 2025

    @VickyStash
    Contributor

    @marcaaron Overall it looks like we had this issue: Shopify/flash-list#1773, you can also check details here: Shopify/flash-list#1773 (comment)
    cc @zfurtak

  17. zfurtak commented on Sep 8, 2025

    @zfurtak
    Contributor

    Thank you @VickyStash, I'll dig into this

  18. QichenZhu commented on Sep 8, 2025

    @QichenZhu
    Contributor

    Thanks @zfurtak and @VickyStash! The flash-list PR came last and revealed this issue, but since it was an infinite loop, breaking the loop anywhere could fix it. The most robust approach might not be fixing it in a single place.

    I suggest we also look into the inline selector issue. Here's what we've found so far:

    1. @hungvu193's findings and proposal
    2. My proposal: https://expensify.slack.com/archives/C05LX9D6E07/p1757152374222669

    cc @marcaaron

  19. marcaaron commented on Sep 8, 2025

    @marcaaron
    Contributor

    @hungvu193 do you want to maybe continue investigating and potential impacts of inline selectors? I'm curious if we possibly have some unnecessary renders happening in a more widespread way and if memoizing the handlers could help. Unsure if it really will cause much of a problem outside of this case (but I suspect it could in cases where performance is a concern).

  20. rohit9625 commented on May 15, 2026

    @rohit9625
    Contributor

    Hi @VickyStash @hungvu193, we are having a similar crash reported #90533
    Could you please help us find an appropriate solution? This is my proposal so far, which fixes the issue.

  21. hungvu193 commented on May 15, 2026

    @hungvu193
    Contributor

    Hey @rohit9625, @QichenZhu is the C+ of that issue, he will help with the reviewing and selecting the proposal/solution.

  22. rohit9625 commented on May 15, 2026

    @rohit9625
    Contributor

    Yes, I know that. I found this issue while exploring other related issues, that's why I thought you may have some context on this issue. Anyways, let's see what @QichenZhu says :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugEngineeringExternalHelp WantedHourlyReviewing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions