Skip to content

[0.74] Performing a refresh is unstable under Bridge Mode on Android (RNTester / New Arch) #43692

Closed

Description

@huntie

Description

Performing a refresh is leading to some lifecycle error that results in a black screen.

Affects 0.74-stable and main.

Steps to reproduce

  1. Install RNTester on Android, having disabled Bridgeless (-> Bridge Mode).
    image
  2. Open Dev Menu and trigger a reload.
    • 🎯 This will randomly fail and display a blank screen. See video (on attempt 3).

React Native Version

0.74.0, main

Affected Platforms

Runtime - Android

Areas

Bridgeless - The New Initialization Flow

Output of npx react-native info

—

Stacktrace or Logs

manager.UIManagerHelper  E  Unhandled SoftException
                         E  com.facebook.react.bridge.ReactNoCrashSoftException: Cannot get UIManager because the context doesn't contain an active CatalystInstance.
                         E      at com.facebook.react.uimanager.UIManagerHelper.getUIManager(UIManagerHelper.java:82)
                         E      at com.facebook.react.uimanager.UIManagerHelper.getEventDispatcher(UIManagerHelper.java:134)
                         E      at com.facebook.react.uimanager.UIManagerHelper.getEventDispatcherForReactTag(UIManagerHelper.java:112)
                         E      at com.facebook.react.internal.interop.InteropEventEmitter.receiveEvent(InteropEventEmitter.kt:37)
                         E      at com.facebook.react.uimanager.events.ReactEventEmitter.receiveEvent(ReactEventEmitter.java:146)
                         E      at com.facebook.react.uimanager.events.ReactEventEmitter.receiveEvent(ReactEventEmitter.java:65)
                         E      at com.facebook.react.uimanager.events.ReactEventEmitter.receiveEvent(ReactEventEmitter.java:58)
                         E      at com.facebook.react.uimanager.events.Event.dispatch(Event.java:173)
                         E      at com.facebook.react.uimanager.events.Event.dispatchModern(Event.java:209)
                         E      at com.facebook.react.uimanager.events.EventDispatcherImpl$DispatchEventsRunnable.run(EventDispatcherImpl.java:376)
                         E      at android.os.Handler.handleCallback(Handler.java:958)
                         E      at android.os.Handler.dispatchMessage(Handler.java:99)
                         E      at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
                         E      at android.os.Looper.loopOnce(Looper.java:205)
                         E      at android.os.Looper.loop(Looper.java:294)
                         E      at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:235)
                         E      at java.lang.Thread.run(Thread.java:1012)

Reproducer

https://github.com/facebook/react-native/tree/main/packages/rn-tester

Screenshots and Videos

Screen.Recording.2024-03-28.at.13.58.29.mov

Activity

  1. github-actions commented on Mar 28, 2024

    @github-actions
    ⚠️ Missing Reproducible Example
    ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
    • If your bug is UI related: a Snack
    • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.
  2. added
    DXIssues concerning how the developer experience can be improved.
    and removed
    Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.
    on Mar 28, 2024
  3. added a commit that references this issue on Apr 9, 2024
    8c20e12
  4. cortinico commented on Apr 9, 2024

    @cortinico
    Contributor

    This is indeed an issue, and the fix is here #43999

  5. added a commit that references this issue on Apr 9, 2024
    a25004c
  6. added a commit that references this issue on Apr 9, 2024
    03d526f
  7. cortinico commented on Apr 10, 2024

    @cortinico
    Contributor

    ✅ Picked, this will land in 0.74 RC8

  8. rmace001 commented on Feb 10, 2025

    @rmace001

    ✅ Picked, this will land in 0.74 RC8

    Hi @cortinico! I am experiencing this issue even on 0.74.7. In my case, we migrated from 0.71.12 to 0.73.5 and noticed this issue. Then, we migrated to 0.74.7 due to seeing your comment. Unfortunately, we are still having issues with performing a refresh. We also do not have the new arch enabled.

  9. cortinico commented on Feb 11, 2025

    @cortinico
    Contributor

    ✅ Picked, this will land in 0.74 RC8

    Hi @cortinico! I am experiencing this issue even on 0.74.7. In my case, we migrated from 0.71.12 to 0.73.5 and noticed this issue. Then, we migrated to 0.74.7 due to seeing your comment. Unfortunately, we are still having issues with performing a refresh. We also do not have the new arch enabled.

    Please open a new issue + provide reproducer. Ideally also make sure that this reproduces on 0.77 as 0.74 is out of support

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

Metadata

Metadata

Labels

DXIssues concerning how the developer experience can be improved.Platform: AndroidAndroid applications.Type: New ArchitectureIssues and PRs related to new architecture (Fabric/Turbo Modules)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions