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-04-07] Log in - App stuck on E screen after switching to OD and logging out #86642
Version Number: v9.3.50-2 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/13176927/test-cases/41237630 Email or phone of affected tester (no customers):leungbratt6@gmail.com Issue reported by: Applause Internal Team Bug source: Regression TC Execution Device used: iPhone 14 / iOS 26.1 App Component: User Settings
Action Performed:
Open the Hybrid app
Login with the Google option
Navigate to settings > Troubleshoot
Click on the "Switch to Expensify Classic"and finish the flow to switch to OD
Log out from OD
Expected Result:
Verify that no bootsplash and no white screen are displayed when logging out
👋 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 (HybridApp - Mobile-Expensify) Causing PR: Mobile-Expensify#13869 - "Cover HybridApp lifecycle with native sentry SDK" by @mateuuszzzzz (High confidence) Related Issues: None
Recommendation: REVERT
The Mobile-Expensify PR #13869 adds Sentry native SDK lifecycle tracking to the HybridApp flow. The PR introduces a new SentryNativeSDKManager that adds breadcrumbs to track HybridApp lifecycle events. However, this PR likely causes the bootsplash to get stuck when logging out from OldDot.
The issue reproduces only on staging (where Mobile-Expensify#13869 is included) and not on production. The specific flow is:
User switches to OldDot
User logs out from OldDot
App should return to NewDot sign-in screen
Instead, app gets stuck on Expensify logo (bootsplash)
The Mobile-Expensify PR modifies critical bootsplash lifecycle code, including adding a Sentry breadcrumb call in yaplHideBootSplash BEFORE calling BootSplashModule.hide(). If Sentry initialization fails or throws an exception (which could happen during the logout flow when the app state is being cleared), it could prevent the bootsplash from being hidden properly.
Labels: No changes needed. DeployBlockerCash is correct - this blocks the mobile app deploy and requires a revert of Mobile-Expensify#13869.
Detailed Analysis
Evidence
Bug is only reproducible on staging (v9.3.50-2), not production
Mobile-Expensify#13869 was merged on March 26, 2026 and is included in this staging build
The PR adds Sentry lifecycle tracking to critical HybridApp flows including bootsplash hiding
The logout-from-OldDot flow is a HybridApp-specific flow that goes through the modified code paths
Verification
Mobile-Expensify#13869 modifies yaplHideBootSplash.kt which is called when hiding the bootsplash
The PR adds SentryNativeSDKManager.addLifecycleBreadcrumb("yaplHideBootSplash") before BootSplashModule.hide()
The PR also modifies ReactNativeManager.kt and ReactNativeFragment.kt which handle the NewDot lifecycle
These are all code paths executed during the logout-from-OldDot flow
Root Cause
When logging out from OldDot, the HybridApp transitions back to NewDot with loggedOutFromOldDot: true. The HybridAppHandler in NewDot receives this signal and attempts to hide the bootsplash. However, if the Sentry native SDK encounters an error during this transition (possibly due to app state being cleared during logout), the addLifecycleBreadcrumb() call in yaplHideBootSplash could throw an exception, preventing BootSplashModule.hide() from being called, leaving the user stuck on the Expensify logo.
When a user logs out from OldDot (Expensify Classic) in the Hybrid app, the HybridAppHandler at src/HybridAppHandler.tsx:32 sets the splash screen state directly to HIDDEN, skipping the intermediate READY_TO_BE_HIDDEN state:
if(loggedOutFromOldDot){setSplashScreenState(CONST.BOOT_SPLASH_STATE.HIDDEN);// jumps straight to HIDDEN}else{setSplashScreenState(CONST.BOOT_SPLASH_STATE.READY_TO_BE_HIDDEN);// normal path}
However, in src/Expensify.tsx:141, the shouldHideSplash flag for HybridApp only triggers on READY_TO_BE_HIDDEN:
Since READY_TO_BE_HIDDEN is never reached, shouldHideSplash is never true, so SplashScreenHider (src/components/SplashScreenHider/index.native.tsx:56-61) never calls BootSplash.hide() on the native layer. The React state says HIDDEN, but the native splash screen overlay remains permanently visible.
This was likely introduced by PR #83330 (merged March 26), which modified HybridAppHandler.tsx, Expensify.tsx, SplashScreenStateContext.tsx, and CONST/index.ts — adding the three-state splash screen machine where READY_TO_BE_HIDDEN became the required trigger for shouldHideSplash in HybridApp mode. The loggedOutFromOldDot path was not updated to use this new intermediate state.
What changes do you think we should make in order to solve the problem?
In src/HybridAppHandler.tsx:31-32, change the loggedOutFromOldDot path to set READY_TO_BE_HIDDEN instead of HIDDEN, so that SplashScreenHider can properly call BootSplash.hide() and then transition to HIDDEN via the onSplashHide callback — the same path used for normal (logged-in) transitions:
if(loggedOutFromOldDot){setSplashScreenState(CONST.BOOT_SPLASH_STATE.READY_TO_BE_HIDDEN);// was HIDDENendSpan(CONST.TELEMETRY.SPAN_OD_ND_TRANSITION_LOGGED_OUT);}else{setSplashScreenState(CONST.BOOT_SPLASH_STATE.READY_TO_BE_HIDDEN);}
This ensures the native BootSplash.hide() is called, the animation plays, and onSplashHide properly transitions to HIDDEN.
What alternative solutions did you explore? (Optional)
An alternative would be to explicitly call BootSplash.hide() alongside the direct HIDDEN state transition in the loggedOutFromOldDot path. However, this would bypass the animation and duplicate the hide logic already in SplashScreenHider. Using READY_TO_BE_HIDDEN is more consistent with the existing architecture.
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 [-]Log in - App stuck on E screen after switching to OD and logging out[/-][+][Due for payment 2026-04-07] Log in - App stuck on E screen after switching to OD and logging out[/+]on Mar 31, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.50-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@Gonals@war-in 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 Mar 30, 2026
Triggered auto assignment to @Gonals (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Mar 30, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Mar 30, 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 Mar 30, 2026
Investigation Summary
Classification: Frontend bug (HybridApp - Mobile-Expensify)
Causing PR: Mobile-Expensify#13869 - "Cover HybridApp lifecycle with native sentry SDK" by @mateuuszzzzz (High confidence)
Related Issues: None
Recommendation: REVERT
The Mobile-Expensify PR #13869 adds Sentry native SDK lifecycle tracking to the HybridApp flow. The PR introduces a new
SentryNativeSDKManagerthat adds breadcrumbs to track HybridApp lifecycle events. However, this PR likely causes the bootsplash to get stuck when logging out from OldDot.The issue reproduces only on staging (where Mobile-Expensify#13869 is included) and not on production. The specific flow is:
The Mobile-Expensify PR modifies critical bootsplash lifecycle code, including adding a Sentry breadcrumb call in
yaplHideBootSplashBEFORE callingBootSplashModule.hide(). If Sentry initialization fails or throws an exception (which could happen during the logout flow when the app state is being cleared), it could prevent the bootsplash from being hidden properly.Labels: No changes needed. DeployBlockerCash is correct - this blocks the mobile app deploy and requires a revert of Mobile-Expensify#13869.
Detailed Analysis
Evidence
Verification
yaplHideBootSplash.ktwhich is called when hiding the bootsplashSentryNativeSDKManager.addLifecycleBreadcrumb("yaplHideBootSplash")beforeBootSplashModule.hide()ReactNativeManager.ktandReactNativeFragment.ktwhich handle the NewDot lifecycleRoot Cause
When logging out from OldDot, the HybridApp transitions back to NewDot with
loggedOutFromOldDot: true. The HybridAppHandler in NewDot receives this signal and attempts to hide the bootsplash. However, if the Sentry native SDK encounters an error during this transition (possibly due to app state being cleared during logout), theaddLifecycleBreadcrumb()call inyaplHideBootSplashcould throw an exception, preventingBootSplashModule.hide()from being called, leaving the user stuck on the Expensify logo.MelvinBot commentedon Mar 30, 2026
Proposal
What is the root cause of that problem?
When a user logs out from OldDot (Expensify Classic) in the Hybrid app, the
HybridAppHandleratsrc/HybridAppHandler.tsx:32sets the splash screen state directly toHIDDEN, skipping the intermediateREADY_TO_BE_HIDDENstate:However, in
src/Expensify.tsx:141, theshouldHideSplashflag for HybridApp only triggers onREADY_TO_BE_HIDDEN:Since
READY_TO_BE_HIDDENis never reached,shouldHideSplashis nevertrue, soSplashScreenHider(src/components/SplashScreenHider/index.native.tsx:56-61) never callsBootSplash.hide()on the native layer. The React state saysHIDDEN, but the native splash screen overlay remains permanently visible.This was likely introduced by PR #83330 (merged March 26), which modified
HybridAppHandler.tsx,Expensify.tsx,SplashScreenStateContext.tsx, andCONST/index.ts— adding the three-state splash screen machine whereREADY_TO_BE_HIDDENbecame the required trigger forshouldHideSplashin HybridApp mode. TheloggedOutFromOldDotpath was not updated to use this new intermediate state.What changes do you think we should make in order to solve the problem?
In
src/HybridAppHandler.tsx:31-32, change theloggedOutFromOldDotpath to setREADY_TO_BE_HIDDENinstead ofHIDDEN, so thatSplashScreenHidercan properly callBootSplash.hide()and then transition toHIDDENvia theonSplashHidecallback — the same path used for normal (logged-in) transitions:This ensures the native
BootSplash.hide()is called, the animation plays, andonSplashHideproperly transitions toHIDDEN.What alternative solutions did you explore? (Optional)
An alternative would be to explicitly call
BootSplash.hide()alongside the directHIDDENstate transition in theloggedOutFromOldDotpath. However, this would bypass the animation and duplicate the hide logic already inSplashScreenHider. UsingREADY_TO_BE_HIDDENis more consistent with the existing architecture.Next 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.Julesssss commentedon Mar 30, 2026
Reverting to unblcok the deploy, fix will need to come seperately
IuliiaHerets commentedon Mar 30, 2026
@Julesssss issue was fixed on iOS app. Android app is still pending validation. Build 9.3.50-4
cc @war-in
1774901476815.86659-iOS.mp4
m-natarajan commentedon Mar 30, 2026
Not reproduce, Xiaomi Redmi Note 10 / Android 12 and iPhone 13/26.3.1, App 9.3.50-3 Ad-Hoc
ScreenRecording_03-30-2026.16-52-37_1.MP4
Screenrecorder-2026-03-30-23-40-55-527.mp4
Julesssss commentedon Mar 30, 2026
Thank you
[-]Log in - App stuck on E screen after switching to OD and logging out[/-][+][Due for payment 2026-04-07] Log in - App stuck on E screen after switching to OD and logging out[/+]melvin-bot commentedon Mar 31, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Mar 31, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.50-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
SplashScreenHiderand control hide timing via prop instead of conditional rendering" #86659If no regressions arise, payment will be issued on 2026-04-07. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Mar 31, 2026
@Gonals @war-in 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]
melvin-bot commentedon Mar 31, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)