[Bug]: Blank screen after Hardware Sends and Batch Sell
Describe the bug
https://consensys.slack.com/archives/C09AYKX30P3/p1786729833753959
Expected behavior
No blank screen, drop at activity
Steps to reproduce
See slack
Error messages or log output
Where was this bug found?
Internal release testing
Version
8.9
Build number
N/A
Build type
None
Device
Samsung A42
Operating system
Android
Triage Agent -- Classification
Severity: Sev1-high (confidence: 0.75) ⚠️ Advisory
A blank screen after completing a transaction flow (Hardware Sends / Batch Sell) is a major UX failure. The user is left stranded with no feedback or navigation after completing a critical financial operation. This affects a common flow on Android and there's no apparent workaround mentioned. While it may not cause fund loss, it blocks the user from confirming transaction status and continuing to use the app normally. Not auto-applied -- confidence below threshold.
Size: size-M (confidence: 0.60) ⚠️ Advisory
This is likely a navigation/routing issue after flow completion. It could involve incorrect state cleanup, missing navigation callbacks, or a race condition in the transition back to the activity screen. Multiple files across navigation and transaction flow components may need investigation. Without clear logs or stack traces, some debugging effort is needed. Not auto-applied -- confidence below threshold.
Team: team-transactions ✅
Matched via area fallback: area-transactions (no CODEOWNERS match)
Root Cause Analysis
Affected component: Post-transaction navigation / activity screen routing (mobile)
After completing Hardware Sends or Batch Sell flows, the app fails to navigate back to the activity/transaction history screen, resulting in a blank screen. This suggests a navigation state issue where the completion callback or navigation action either fires incorrectly, navigates to a non-existent route, or the target screen fails to render due to missing state/props. The fact that both Hardware Sends and Batch Sell are affected suggests a shared post-transaction navigation path or a common completion handler that is broken. This could be related to how the app clears the transaction flow state and transitions back to the main activity view. On Android specifically, there may be a lifecycle or back-stack issue causing the blank screen.
Evidence:
- Blank screen appears after flow completion instead of activity screen
- Affects both Hardware Sends and Batch Sell flows (shared navigation path likely)
- Reported on Android (Samsung A42) - may be platform-specific rendering/navigation issue
- Found during internal release testing of version 8.9 - possibly a regression
Suggested Fix
Confidence: low: speculative, start here - no code context, logs, or stack traces available. The analysis is based on symptom patterns common in React Navigation issues on mobile.
Investigate the post-transaction completion navigation flow shared by Hardware Sends and Batch Sell. The blank screen likely results from either navigating to an undefined/empty route, a missing screen component registration, or the activity screen not receiving the necessary state to render after the transaction flow clears its state.
Investigation needed -- specific files not identified.
Approach:
- Identify the navigation action dispatched upon completion of Hardware Sends and Batch Sell flows. Search for navigation calls (e.g.,
navigation.navigate,navigation.reset,navigation.goBack) in the transaction completion handlers. - Check if the target route ('Activity', 'Home', or similar) is properly registered in the navigation stack, especially after the transaction flow screens are unmounted.
- Verify that any state cleanup (e.g., clearing transaction data from Redux/context) doesn't inadvertently remove data needed by the activity screen to render.
- Test on Android specifically - check if
navigation.resetor stack manipulation behaves differently on Android vs iOS in React Navigation. - Add proper fallback navigation: if the target screen fails to mount, ensure the app navigates to a known good state (e.g., the wallet home screen).
- Reproduce on Samsung A42 or similar Android device with version 8.9 to capture logs and confirm the navigation state at the point of failure.
Confidence threshold: 0.85. Labels marked ✅ were auto-applied. Labels marked ⚠️ are advisory only (below threshold).
To re-triage, remove the ta-bot-triage label and re-apply ta-needs-triage.
⚠️ Some dimensions could not be confidently classified. An engineer should review this issue.
Cannot reproduce on v8.11.0 (6771). Most likely fixed by https://github.com/MetaMask/metamask-mobile/pull/35203