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 on Android production - Error: Exception in HostFunction: java.lang.NullPointerException #6724

Open
nluzzato opened this issue Nov 18, 2024 · 2 comments
Labels
Missing repro This issue need minimum repro scenario Platform: Android This issue is specific to Android

Comments

@nluzzato
Copy link

Description

Since upgrading React Native to 0.75.4 and react-native-animated to 3.16.0, we've encountered a lot of bugs and reduced stability in our monitoring system due to the following error:

Error: Exception in HostFunction: java.lang.NullPointerException, js engine: hermes,

Stacktrace:

 com.facebook.react.common.JavascriptException: Error: Exception in HostFunction: java.lang.NullPointerException, js engine: hermes, stack:
callNativeSyncHook@1:214845
nonPromiseMethodWrapper@1:230077
NativeReanimated@1:3154817
anonymous@1:3148444
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
anonymous@1:3173865
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
get@1:3125770
anonymous@1:8272164
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
anonymous@1:8265679
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
anonymous@1:8264469
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
anonymous@1:8261990
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
anonymous@1:8259182
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
anonymous@1:8207127
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
anonymous@1:8203410
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
anonymous@1:8186862
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
anonymous@1:8182239
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
anonymous@1:8180678
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
anonymous@1:8116858
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
anonymous@1:7109149
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
anonymous@1:6565935
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
anonymous@1:5856611
loadModuleImplementation@1:202743
guardedLoadModule@1:202266
metroRequire@1:201896
anonymous@1:208830
loadModuleImplementation@1:202743
guardedLoadModule@1:202223
metroRequire@1:201896
global@1:201441

        at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:65)
        at java.lang.reflect.Method.invoke(Method.java:-2)
        at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
        at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:146)
        at com.facebook.jni.NativeRunnable.run(NativeRunnable.java:-2)
        at android.os.Handler.handleCallback(Handler.java:958)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
        at android.os.Looper.loopOnce(Looper.java:230)
        at android.os.Looper.loop(Looper.java:319)
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:235)
        at java.lang.Thread.run(Thread.java:1012)

Steps to reproduce

I couldn't reproduce it

Snack or a link to a repository

can't reproduce

Reanimated version

3.16.1

React Native version

0.75.4

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native

Architecture

Paper (Old Architecture)

Build type

Release app & production bundle

Device

Real device

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added Platform: Android This issue is specific to Android Missing repro This issue need minimum repro scenario labels Nov 18, 2024
Copy link

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?

@tjzel
Copy link
Collaborator

tjzel commented Nov 20, 2024

Unfortunately the stack trace you provided doesn't tell me anything. Could try if the problems persists on react-native-reanimated@nightly or react-native-reanimated@next?

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

2 participants