Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Exception in HostObject::get for prop 'ReanimatedModule': java.lang.RuntimeException: [Reanimated] Failed to obtain instance of FabricUIManager. #6660

Open
tdinckaya opened this issue Nov 1, 2024 · 1 comment
Labels
Missing repro This issue need minimum repro scenario Platform: Android This issue is specific to Android

Comments

@tdinckaya
Copy link

tdinckaya commented Nov 1, 2024

Description

I’m trying to upgrade to React Native version 0.76.1. However, I encountered the following error on the Android side.

Metro Bundle:
Error: Exception in HostObject::get for prop 'ReanimatedModule': java.lang.RuntimeException: [Reanimated] Failed to obtain instance of FabricUIManager.

Logcat:
FATAL EXCEPTION: main
Process: com.myapp, PID: 3096
java.lang.AssertionError
at com.swmansion.reanimated.NodesManager.(NodesManager.java:160)
at com.swmansion.reanimated.ReanimatedModule.getNodesManager(ReanimatedModule.java:128)
at com.swmansion.reanimated.layoutReanimation.ReaLayoutAnimator.maybeInit(ReaLayoutAnimator.java:36)
at com.swmansion.reanimated.layoutReanimation.ReaLayoutAnimator.isLayoutAnimationEnabled(ReaLayoutAnimator.java:191)
at com.swmansion.reanimated.layoutReanimation.ReanimatedNativeHierarchyManager.isLayoutAnimationDisabled(ReanimatedNativeHierarchyManager.java:92)
at com.swmansion.reanimated.layoutReanimation.ReanimatedNativeHierarchyManager.manageChildren(ReanimatedNativeHierarchyManager.java:148)
at com.facebook.react.uimanager.UIViewOperationQueue$ManageChildrenOperation.execute(UIViewOperationQueue.java:194)
at com.facebook.react.uimanager.UIViewOperationQueue$1.run(UIViewOperationQueue.java:879)
at com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches(UIViewOperationQueue.java:992)
at com.facebook.react.uimanager.UIViewOperationQueue.-$$Nest$mflushPendingBatches(Unknown Source:0)
at com.facebook.react.uimanager.UIViewOperationQueue$2.runGuarded(UIViewOperationQueue.java:948)
at com.facebook.react.bridge.GuardedRunnable.run(GuardedRunnable.java:29)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8653)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

Steps to reproduce

  1. react-native run-android

Snack or a link to a repository

tdinckaya

Reanimated version

3.16.1

React Native version

0.76.1

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native

Architecture

Fabric (New Architecture)

Build type

Debug app & dev bundle

Device

Real device

Device model

Samsung Galaxy A50

Acknowledgements

Yes

@github-actions github-actions bot added the Missing repro This issue need minimum repro scenario label Nov 1, 2024
Copy link

github-actions bot commented Nov 1, 2024

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

@github-actions github-actions bot added the Platform: Android This issue is specific to Android label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro This issue need minimum repro scenario Platform: Android This issue is specific to Android
Projects
None yet
Development

No branches or pull requests

1 participant