You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2026-05-11] [Due for payment 2026-05-07] iOS - Pay - App crashes when paying a non existent user #89099
Version Number: v9.3.64-0 Reproducible in staging?: Yes Reproducible in production?: No If this was caught during regression testing, add the test name, ID and link from BrowserStack:https://test-management.browserstack.com/projects/2219752/folder/13176926/test-cases/41237617 Email or phone of affected tester (no customers):htad26+ewv@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: iOS 26.3/iPhone 13 App Component: Money Requests
Action Performed:
Launch the app
Sign in with any account
Tap on FAB button > Start chat > Enter the email which doesn't have an expensify account
Once redirected to the DM, tap on plus icon > Pay user > Enter amount > Mark as paid
👋 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:
Identify the pull request that introduced this issue and revert it.
Classification: Frontend bug Causing PR: #85234 - "Introduce a Bottom Tab Navigator for Top-Level Navigation" by @WojtekBoman (Medium confidence) Secondary Candidate: #88517 - "[No QA] Fix standalone NewDot debug builds to use debug compilation flags" by @mateuuszzzzz (Medium confidence) Related Issues: #89090 (iOS - App crashes when soft killing the app), #89069, #89052 — all iOS-only crashes in same staging version
Recommendation: NEEDS INVESTIGATION
Cannot confirm root cause without crash logs. Two strong candidate PRs have been identified — both are App PRs. The primary candidate (PR #85234) changed iOS navigation behavior significantly; the secondary candidate (PR #88517) changed hermes-engine compilation settings in staging builds. The existence of multiple other unrelated iOS crashes in the same staging version (89090, 89069, 89052) suggests a systemic iOS issue that may be caused by either or both of these PRs.
Assigned: @WojtekBoman (PR #85234 author), @mateuuszzzzz (PR #88517 author), @ZhenjaHorbach and @mountiny (PR #85234 approving reviewers) from highest-confidence causing PR Labels: Keeping DeployBlockerCash — this is an iOS App crash with no production reproduction; both candidate PRs are in Expensify/App
Detailed Analysis
Evidence
Candidate 1: PR #85234 — Introduce a Bottom Tab Navigator for Top-Level Navigation
This PR introduces a TAB_NAVIGATOR wrapping the existing fullscreen navigators (REPORTS_SPLIT_NAVIGATOR, SEARCH_FULLSCREEN_NAVIGATOR, etc.) and modifies iOS-specific navigation state handling across 130+ files. Relevant changes that could cause the pay-crash on iOS:
dismissModalWithReport changed for narrow (iOS) layout: Previously, on narrow layout (iOS), after sending money the code did navigate(reportRoute, {forceReplace: true}) directly. After PR Introduce a Bottom Tab Navigator for Top-Level Navigation #85234, it instead calls dismissModal({ afterTransition: () => { navigate(reportRoute) } }). If navigate inside afterTransition throws or encounters an unexpected navigation state (e.g., TAB_NAVIGATOR not fully resolved for an optimistic report ID), it can cause a crash on iOS.
revealRouteBeforeDismissingModal removed narrow-layout guard: Previously, this function had if (getIsNarrowLayout()) { Log.warn; return; }. PR Introduce a Bottom Tab Navigator for Top-Level Navigation #85234 removed this guard, meaning the function now runs on iOS narrow layout too. This function dispatches REPLACE_FULLSCREEN_UNDER_RHP which manipulates the TAB_NAVIGATOR state — a new code path that was never exercised on iOS before.
New iOS-specific useCustomRootStackNavigatorState: Modified to use ensureTabNavigatorRoutes which keeps the last 2 TAB_NAVIGATOR instances rendered. The interaction between this and the pre-insert mechanism for the send-money (PAY type from FAB) flow is a new code path on iOS.
isReportTopmostSplitNavigator behavior changed: Now checks getActiveTabName() inside a TAB_NAVIGATOR. This affects the shouldPreInsertReport logic in IOURequestStepConfirmation, potentially triggering pre-insert for the send money flow from a DM.
Candidate 2: PR #88517 — Podfile hermes-engine and React-Core rebuild
This PR moved the project directive in the iOS Podfile from per-target to global scope. The intent was to fix build configurations for the NotificationServiceExtension target (which was incorrectly using release settings for debug builds). As a side effect, the hermes-engine and React-Core pod checksums changed, meaning these components were recompiled with different build settings (SWIFT_OPTIMIZATION_LEVEL = -Onone, DEBUG_INFORMATION_FORMAT = dwarf, ENABLE_HERMES_DEBUGGER potentially enabled). This is a weaker candidate for THIS specific functional crash but may explain the systemic iOS crashes (particularly the native soft-kill crash in #89090 which is unlikely to be caused by JS navigation changes).
Both PRs are confirmed in the staging deploy checklist for v9.3.64-0.
The affected flow (plus > Pay user > Mark as paid) uses sendMoneyElsewhere which calls dismissModalAndOpenReportInInboxTab which calls Navigation.dismissModalWithReport — the function changed by PR #85234.
Root Cause
For PR #85234 hypothesis: The pay flow on iOS narrow layout previously used navigate(reportRoute, {forceReplace: true}) as a single synchronous navigation. After PR #85234, it uses dismissModal({ afterTransition: () => navigate(reportRoute) }) — an asynchronous two-step navigation. In the new TAB_NAVIGATOR state structure on iOS, navigating inside the afterTransition callback to a report (especially a new optimistic chat with a non-existent user) may encounter a navigation state inconsistency, causing a crash.
For PR #88517 hypothesis: Changing the Podfile to use debug Hermes compilation settings for staging builds (DebugAdHoc) enables the Hermes debugger protocol and debug-only runtime assertions. These could cause crashes when certain native iOS operations are performed (soft kill, specific JS execution patterns).
To confirm: Check the crash stack trace in the logs.txt attached to the issue. If the stack trace is in JavaScript/React Navigation code → PR #85234. If it's in native Hermes/ObjC code → PR #88517.
Please re-state the problem that we are trying to solve in this issue.
The iOS app crashes when paying a non-existent user (someone without an Expensify account) via DM → plus icon → Pay user → Enter amount → Mark as paid. Reproducible in staging (v9.3.64-0) but not production.
What is the root cause of that problem?
PR #88613 (perf/split-report-metadata) split REPORT_METADATA into separate Onyx keys, including a new RAM_ONLY_REPORT_LOADING_STATE key for loading flags like hasOnceLoadedReportActions. The migration commit correctly updated IOU/index.ts and IOU/RejectMoneyRequest.ts to write hasOnceLoadedReportActions: true to the new key when creating optimistic reports, but missedSendMoney.ts (and 5 other IOU action files).
When sendMoneyElsewhere creates optimistic reports, it writes isOptimisticReport: true to REPORT_METADATA but does NOT write hasOnceLoadedReportActions: true to RAM_ONLY_REPORT_LOADING_STATE. This causes withReportOrNotFound to evaluate reportLoadingState?.isLoadingInitialReportActions !== false as true (since reportLoadingState is undefined), triggering an unexpected openReport API call for the optimistic report. For a non-existent user, the server response conflicts with the optimistic data, crashing the app during rendering.
What changes do you think we should make in order to fix the problem?
Add RAM_ONLY_REPORT_LOADING_STATE writes alongside every existing isOptimisticReport: true write in the missed files, mirroring the pattern in IOU/index.ts:1349-1355:
Primary fix (for this crash):
SendMoney.ts — add RAM_ONLY_REPORT_LOADING_STATE writes for both chatReport.reportID and optimisticTransactionThread.reportID after the existing REPORT_METADATA writes
Other missed files (same pattern, prevent similar bugs):
sendMoneyElsewhere in SendMoney.ts creates optimistic reports with isOptimisticReport: true in REPORT_METADATA (lines 225-240)
No corresponding RAM_ONLY_REPORT_LOADING_STATE write exists (grep confirms zero matches in SendMoney.ts)
withReportOrNotFound.tsx:88 checks reportLoadingState?.isLoadingInitialReportActions !== false — when reportLoadingState is undefined, this evaluates to true
This triggers shouldFetchReport = true, which calls openReport on the optimistic report
For a non-existent user, the server response overwrites/conflicts with optimistic data, causing a crash
The fix in IOU/index.ts:1349-1355 shows the correct pattern that was applied there but missed in 6 other files
Why staging-only: PR #88613 was merged April 24 and is only in staging, not production.
Alternative explanations considered:
Navigation changes from PR Introduce a Bottom Tab Navigator for Top-Level Navigation #85234 (Bottom Tab Navigator) — while this PR changed navigation significantly, the crash mechanism traces directly to the missing Onyx write causing an unexpected API call, not navigation state issues
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
changed the title [-]iOS - Pay - App crashes when paying a non existent user[/-][+][Due for payment 2026-05-07] iOS - Pay - App crashes when paying a non existent user[/+]on Apr 30, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.64-31 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@ZhenjaHorbach The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
changed the title [-][Due for payment 2026-05-07] iOS - Pay - App crashes when paying a non existent user[/-][+][Due for payment 2026-05-11] [Due for payment 2026-05-07] iOS - Pay - App crashes when paying a non existent user[/+]on May 4, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.65-6 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@ZhenjaHorbach The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
Activity
melvin-bot commentedon Apr 28, 2026
Triggered auto assignment to @rlinoz (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Apr 28, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Apr 28, 2026
👋 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:
OSBotify commentedon Apr 28, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #85234 - "Introduce a Bottom Tab Navigator for Top-Level Navigation" by @WojtekBoman (Medium confidence)
Secondary Candidate: #88517 - "[No QA] Fix standalone NewDot debug builds to use debug compilation flags" by @mateuuszzzzz (Medium confidence)
Related Issues: #89090 (iOS - App crashes when soft killing the app), #89069, #89052 — all iOS-only crashes in same staging version
Recommendation: NEEDS INVESTIGATION
Cannot confirm root cause without crash logs. Two strong candidate PRs have been identified — both are App PRs. The primary candidate (PR #85234) changed iOS navigation behavior significantly; the secondary candidate (PR #88517) changed hermes-engine compilation settings in staging builds. The existence of multiple other unrelated iOS crashes in the same staging version (89090, 89069, 89052) suggests a systemic iOS issue that may be caused by either or both of these PRs.
Assigned: @WojtekBoman (PR #85234 author), @mateuuszzzzz (PR #88517 author), @ZhenjaHorbach and @mountiny (PR #85234 approving reviewers) from highest-confidence causing PR
Labels: Keeping
DeployBlockerCash— this is an iOS App crash with no production reproduction; both candidate PRs are inExpensify/AppDetailed Analysis
Evidence
Candidate 1: PR #85234 — Introduce a Bottom Tab Navigator for Top-Level Navigation
This PR introduces a TAB_NAVIGATOR wrapping the existing fullscreen navigators (REPORTS_SPLIT_NAVIGATOR, SEARCH_FULLSCREEN_NAVIGATOR, etc.) and modifies iOS-specific navigation state handling across 130+ files. Relevant changes that could cause the pay-crash on iOS:
dismissModalWithReport changed for narrow (iOS) layout: Previously, on narrow layout (iOS), after sending money the code did
navigate(reportRoute, {forceReplace: true})directly. After PR Introduce a Bottom Tab Navigator for Top-Level Navigation #85234, it instead callsdismissModal({ afterTransition: () => { navigate(reportRoute) } }). IfnavigateinsideafterTransitionthrows or encounters an unexpected navigation state (e.g., TAB_NAVIGATOR not fully resolved for an optimistic report ID), it can cause a crash on iOS.revealRouteBeforeDismissingModal removed narrow-layout guard: Previously, this function had
if (getIsNarrowLayout()) { Log.warn; return; }. PR Introduce a Bottom Tab Navigator for Top-Level Navigation #85234 removed this guard, meaning the function now runs on iOS narrow layout too. This function dispatchesREPLACE_FULLSCREEN_UNDER_RHPwhich manipulates the TAB_NAVIGATOR state — a new code path that was never exercised on iOS before.New iOS-specific
useCustomRootStackNavigatorState: Modified to useensureTabNavigatorRouteswhich keeps the last 2 TAB_NAVIGATOR instances rendered. The interaction between this and the pre-insert mechanism for the send-money (PAY type from FAB) flow is a new code path on iOS.isReportTopmostSplitNavigator behavior changed: Now checks
getActiveTabName()inside a TAB_NAVIGATOR. This affects theshouldPreInsertReportlogic inIOURequestStepConfirmation, potentially triggering pre-insert for the send money flow from a DM.Candidate 2: PR #88517 — Podfile hermes-engine and React-Core rebuild
This PR moved the
projectdirective in the iOS Podfile from per-target to global scope. The intent was to fix build configurations for theNotificationServiceExtensiontarget (which was incorrectly using release settings for debug builds). As a side effect, the hermes-engine and React-Core pod checksums changed, meaning these components were recompiled with different build settings (SWIFT_OPTIMIZATION_LEVEL = -Onone,DEBUG_INFORMATION_FORMAT = dwarf,ENABLE_HERMES_DEBUGGERpotentially enabled). This is a weaker candidate for THIS specific functional crash but may explain the systemic iOS crashes (particularly the native soft-kill crash in #89090 which is unlikely to be caused by JS navigation changes).Verification
src/libs/Navigation/Navigation.ts— modified by PR Introduce a Bottom Tab Navigator for Top-Level Navigation #85234, specificallydismissModalWithReportandrevealRouteBeforeDismissingModalsrc/libs/Navigation/AppNavigator/createRootStackNavigator/useCustomRootStackNavigatorState/index.ios.ts— modified by PR Introduce a Bottom Tab Navigator for Top-Level Navigation #85234src/libs/Navigation/AppNavigator/createRootStackNavigator/GetStateForActionHandlers.ts— modified by PR Introduce a Bottom Tab Navigator for Top-Level Navigation #85234, specificallyhandleReplaceFullscreenUnderRHPios/Podfileandios/Podfile.lock— modified by PR [No QA] Fix standalone NewDot debug builds to use debug compilation flags #88517 (hermes-engine, React-Core checksums changed)Both PRs are confirmed in the staging deploy checklist for v9.3.64-0.
The affected flow (
plus > Pay user > Mark as paid) usessendMoneyElsewherewhich callsdismissModalAndOpenReportInInboxTabwhich callsNavigation.dismissModalWithReport— the function changed by PR #85234.Root Cause
For PR #85234 hypothesis: The pay flow on iOS narrow layout previously used
navigate(reportRoute, {forceReplace: true})as a single synchronous navigation. After PR #85234, it usesdismissModal({ afterTransition: () => navigate(reportRoute) })— an asynchronous two-step navigation. In the new TAB_NAVIGATOR state structure on iOS, navigating inside theafterTransitioncallback to a report (especially a new optimistic chat with a non-existent user) may encounter a navigation state inconsistency, causing a crash.For PR #88517 hypothesis: Changing the Podfile to use debug Hermes compilation settings for staging builds (DebugAdHoc) enables the Hermes debugger protocol and debug-only runtime assertions. These could cause crashes when certain native iOS operations are performed (soft kill, specific JS execution patterns).
To confirm: Check the crash stack trace in the logs.txt attached to the issue. If the stack trace is in JavaScript/React Navigation code → PR #85234. If it's in native Hermes/ObjC code → PR #88517.
MelvinBot commentedon Apr 28, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
The iOS app crashes when paying a non-existent user (someone without an Expensify account) via DM → plus icon → Pay user → Enter amount → Mark as paid. Reproducible in staging (v9.3.64-0) but not production.
What is the root cause of that problem?
PR #88613 (
perf/split-report-metadata) splitREPORT_METADATAinto separate Onyx keys, including a newRAM_ONLY_REPORT_LOADING_STATEkey for loading flags likehasOnceLoadedReportActions. The migration commit correctly updatedIOU/index.tsandIOU/RejectMoneyRequest.tsto writehasOnceLoadedReportActions: trueto the new key when creating optimistic reports, but missedSendMoney.ts(and 5 other IOU action files).When
sendMoneyElsewherecreates optimistic reports, it writesisOptimisticReport: truetoREPORT_METADATAbut does NOT writehasOnceLoadedReportActions: truetoRAM_ONLY_REPORT_LOADING_STATE. This causeswithReportOrNotFoundto evaluatereportLoadingState?.isLoadingInitialReportActions !== falseastrue(sincereportLoadingStateisundefined), triggering an unexpectedopenReportAPI call for the optimistic report. For a non-existent user, the server response conflicts with the optimistic data, crashing the app during rendering.What changes do you think we should make in order to fix the problem?
Add
RAM_ONLY_REPORT_LOADING_STATEwrites alongside every existingisOptimisticReport: truewrite in the missed files, mirroring the pattern inIOU/index.ts:1349-1355:Primary fix (for this crash):
SendMoney.ts— addRAM_ONLY_REPORT_LOADING_STATEwrites for bothchatReport.reportIDandoptimisticTransactionThread.reportIDafter the existingREPORT_METADATAwritesOther missed files (same pattern, prevent similar bugs):
Split.tsTrackExpense.tsPerDiem.tsSendInvoice.tsHold.tsInvestigation details
The write pattern that needs to be added to each location (using the appropriate reportID):
Evidence chain:
sendMoneyElsewhereinSendMoney.tscreates optimistic reports withisOptimisticReport: trueinREPORT_METADATA(lines 225-240)RAM_ONLY_REPORT_LOADING_STATEwrite exists (grep confirms zero matches inSendMoney.ts)withReportOrNotFound.tsx:88checksreportLoadingState?.isLoadingInitialReportActions !== false— whenreportLoadingStateisundefined, this evaluates totrueshouldFetchReport = true, which callsopenReporton the optimistic reportIOU/index.ts:1349-1355shows the correct pattern that was applied there but missed in 6 other filesWhy staging-only: PR #88613 was merged April 24 and is only in staging, not production.
Alternative explanations considered:
3.0.63to fix memory leaks and other issues in NitroSQLite and Nitro #84517 — less likely since the missing write is a clear logic gapNext Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.4 remaining items
IuliiaHerets commentedon Apr 28, 2026
Not reproducible on iPhone 13/iOS 26.3 v9.3.64-10
ScreenRecording_04-28-2026.20-45-01_1.MP4
luacmartins commentedon Apr 28, 2026
Fixed. Closing
[-]iOS - Pay - App crashes when paying a non existent user[/-][+][Due for payment 2026-05-07] iOS - Pay - App crashes when paying a non existent user[/+]melvin-bot commentedon Apr 30, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Apr 30, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.64-31 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 2026-05-07. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Apr 30, 2026
@ZhenjaHorbach The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[-][Due for payment 2026-05-07] iOS - Pay - App crashes when paying a non existent user[/-][+][Due for payment 2026-05-11] [Due for payment 2026-05-07] iOS - Pay - App crashes when paying a non existent user[/+]melvin-bot commentedon May 4, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.65-6 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 2026-05-11. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 4, 2026
@ZhenjaHorbach The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]