Skip to content

[Due for payment 2026-04-07] Log in - App stuck on E screen after switching to OD and logging out #86642

Closed

Description

@jponikarchuk

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: 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:

  1. Open the Hybrid app
  2. Login with the Google option
  3. Navigate to settings > Troubleshoot
  4. Click on the "Switch to Expensify Classic"and finish the flow to switch to OD
  5. Log out from OD

Expected Result:

Verify that no bootsplash and no white screen are displayed when logging out

Actual Result:

App stuck on the Expensify logo after logout

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Video.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @war-in

Activity

  1. added
    DeployBlockerCash
    Bug
    on Mar 30, 2026
  2. melvin-bot commented on Mar 30, 2026

    @melvin-bot

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

  3. melvin-bot commented on Mar 30, 2026

    @melvin-bot

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

  4. github-actions commented on Mar 30, 2026

    @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.
  5. OSBotify commented on Mar 30, 2026

    @OSBotify
    Contributor

    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 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:

    1. User switches to OldDot
    2. User logs out from OldDot
    3. App should return to NewDot sign-in screen
    4. 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.

  6. MelvinBot commented on Mar 30, 2026

    @MelvinBot
    Contributor

    Proposal

    What is the root cause of that problem?

    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:

    const shouldHideSplash = shouldInit && (CONFIG.IS_HYBRID_APP ? isSplashReadyToBeHidden : isSplashVisible);

    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 HIDDEN
        endSpan(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.

  7. added
    Reviewing
    on Mar 30, 2026
  8. Julesssss commented on Mar 30, 2026

    @Julesssss
    Contributor

    Reverting to unblcok the deploy, fix will need to come seperately

  9. IuliiaHerets commented on Mar 30, 2026

    @IuliiaHerets

    @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
  10. m-natarajan commented on Mar 30, 2026

    @m-natarajan

    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
  11. Julesssss commented on Mar 30, 2026

    @Julesssss
    Contributor

    Thank you

  12. removed
    DeployBlockerCash
    on Mar 30, 2026
  13. added
    Weekly
    Awaiting Payment
    and removed
    Hourly
    on Mar 31, 2026
  14. 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
  15. removed
    Reviewing
    on Mar 31, 2026
  16. melvin-bot commented on Mar 31, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  17. melvin-bot commented on Mar 31, 2026

    @melvin-bot

    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:

    If no regressions arise, payment will be issued on 2026-04-07. 🎊

    For reference, here are some details about the assignees on this issue:

    • @war-in does not require payment (Contractor)
  18. melvin-bot commented on Mar 31, 2026

    @melvin-bot

    @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]

  19. melvin-bot commented on Mar 31, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

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

Metadata

Metadata

Labels

Awaiting PaymentBugEngineeringWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions