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-03-23] [$250] Android - Report - App crashes after splitting an expense and deleting one split offline. #82611
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorMelvin TriageAutomatic AI Analysis of an issue
👋 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: #82315 - "RevertSplitTransaction fails with UNIQUE constraint: App reuses existing reportActionID instead of generating a new one" by @ZhenjaHorbach (High confidence) Related Issues: #81994
Recommendation: REVERT
PR #82315 introduced a change to fix a UNIQUE constraint issue, but inadvertently broke the offline split deletion flow. The fix should be rolled back and reworked to handle the offline case properly.
Labels: Keeping DeployBlockerCash (Frontend bug - App PR caused it and not reproducible in production)
Detailed Analysis
Evidence
PR #82315 merged on Feb 16, 2026 and is in the staging deploy checklist (line in StagingDeployCash #82567). The bug is only reproducible on staging, not production, which aligns perfectly with the PR timeline.
The PR changed line 1229 in src/libs/actions/IOU/Split.ts:
The affected file path is /home/runner/_work/App/App/src/libs/actions/IOU/Split.ts which directly handles split expense operations. The PR modifies how currentReportActionID is passed during reverse split operations (when deleting splits).
Root Cause
When a user:
Creates an expense offline
Splits it offline
Deletes one split offline (triggering a reverse split operation)
In offline mode, when looking up currentReportAction at line 1144, the report actions may not exist in Onyx yet because the split was just created optimistically
This makes currentReportAction undefined, which gets passed as linkedTrackedExpenseReportAction at lines 1172 and 1201
In buildOptimisticIOUReportAction (ReportUtils.ts line 7130), the code does ...linkedExpenseReportAction
Spreading undefined (...undefined) causes a JavaScript crash in React Native on Android
The PR was designed to fix a backend UNIQUE constraint issue by not reusing report action IDs during split reversals. However, it did not account for the offline scenario where the original report action might not exist in Onyx yet, causing the spread operator to crash when trying to spread undefined.
Why not reproducible in production
Production is still on an older version without PR #82315, so the offline split deletion flow works (though it may fail with the UNIQUE constraint error when syncing online, which was the original bug #81994 was trying to fix).
This issue has already been fully analyzed and resolved:
Root Cause: React Native Fabric Android bug in SurfaceMountingManager.java — getViewState() crashes when it can't find a native view tag during batched mount operations, triggered by simultaneous Onyx optimistic updates during offline split deletion combined with the FlashList migration.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributorMelvin TriageAutomatic AI Analysis of an issue
Activity
melvin-bot commentedon Feb 17, 2026
Triggered auto assignment to @garrettmknight (
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.melvin-bot commentedon Feb 17, 2026
Triggered auto assignment to @mountiny (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Feb 17, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Feb 17, 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 Feb 17, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #82315 - "RevertSplitTransaction fails with UNIQUE constraint: App reuses existing reportActionID instead of generating a new one" by @ZhenjaHorbach (High confidence)
Related Issues: #81994
Recommendation: REVERT
PR #82315 introduced a change to fix a UNIQUE constraint issue, but inadvertently broke the offline split deletion flow. The fix should be rolled back and reworked to handle the offline case properly.
Labels: Keeping DeployBlockerCash (Frontend bug - App PR caused it and not reproducible in production)
Detailed Analysis
Evidence
PR #82315 merged on Feb 16, 2026 and is in the staging deploy checklist (line in StagingDeployCash #82567). The bug is only reproducible on staging, not production, which aligns perfectly with the PR timeline.
The PR changed line 1229 in
src/libs/actions/IOU/Split.ts:Verification
The affected file path is
/home/runner/_work/App/App/src/libs/actions/IOU/Split.tswhich directly handles split expense operations. The PR modifies howcurrentReportActionIDis passed during reverse split operations (when deleting splits).Root Cause
When a user:
The crash occurs because:
currentReportActionIDtoundefinedfor reverse split operations (line 1229)currentReportActionat line 1144, the report actions may not exist in Onyx yet because the split was just created optimisticallycurrentReportActionundefined, which gets passed aslinkedTrackedExpenseReportActionat lines 1172 and 1201buildOptimisticIOUReportAction(ReportUtils.tsline 7130), the code does...linkedExpenseReportAction...undefined) causes a JavaScript crash in React Native on AndroidThe PR was designed to fix a backend UNIQUE constraint issue by not reusing report action IDs during split reversals. However, it did not account for the offline scenario where the original report action might not exist in Onyx yet, causing the spread operator to crash when trying to spread
undefined.Why not reproducible in production
Production is still on an older version without PR #82315, so the offline split deletion flow works (though it may fail with the UNIQUE constraint error when syncing online, which was the original bug #81994 was trying to fix).
54 remaining items
melvin-bot commentedon Mar 23, 2026
Payment Summary
Upwork Job
BugZero Checklist (@mallenexpensify)
MelvinBot commentedon Mar 23, 2026
This issue has already been fully analyzed and resolved:
SurfaceMountingManager.java—getViewState()crashes when it can't find a native view tag during batched mount operations, triggered by simultaneous Onyx optimistic updates during offline split deletion combined with the FlashList migration.rohit9625patchedupdatePropsinSurfaceMountingManager.javato usegetNullableViewState()and log a soft exception instead of crashing.Awaiting Payment.No further analysis needed.
mallenexpensify commentedon Mar 23, 2026
Payment Summary
Contributor: @rohit9625 paid $250 via Upwork
Contributor+: @bernhardoj due $250 via NewDot
@rohit9625 can you please accept the job below? Please reply here and tag me once you have.
https://www.upwork.com/jobs/~022036206561439948477
I think there might be an automation issue here.
Externaladded - no Upwork job createdBugremove and re-added - no Upwork job created.Unsure of specifics or a fix, chime in if you have any ideas.
bernhardoj commentedon Mar 24, 2026
I think it fails to create the Upwork job when the external label is added. Melvin commented on it here.
bernhardoj commentedon Mar 24, 2026
Requested in ND.
rohit9625 commentedon Mar 24, 2026
Hi @mallenexpensify, I just accepted the offer. Thank you :)
mallenexpensify commentedon Mar 24, 2026
@rohit9625 paid, summary updated above. Thx.
hmm.. from Feb 17 so I'm not going to go down 🐰🕳. Maybe it's just our integration failing, which we've seen a bunch.
garrettmknight commentedon Mar 25, 2026
$250 approved for @bernhardoj