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
[JSI] HermesRuntimeImpl::call: Unable to call function: stack overflow #587
Comments
Hmm, not even this code works: jsiRuntime.global().setProperty(jsiRuntime, "teeeeeeeest", jsi::Value(42)); maybe the runtime pointer is corrupted? |
Hi @mrousavy, is it possible that the copy of JSI being used does not line up with the version of Hermes being used? It seems suspicious that |
Okay so I did a bit of investigation and it seems like this error is also happening with JSC. Looks like I was wrong ticking that box above, sorry! I am still not sure why this keeps happening, do you maybe have an idea @neildhar? A lot of people report this issue, with kind-of different crash logs I'm essentially just installing a single function in the
Apparently for some people accessing This seems so weird to me, maybe I got the Maybe also important: my |
Apparently it works on RN 0.65.1, but crashes on RN 0.64.2.... |
Looks like we're talking about this error: Lines 2003 to 2009 in 6e58687
why does |
I don't believe it should be calling JSI can change from one version of RN to another, so you need to build your plugin against JSI from the right version of RN. |
Oh I'm sorry I misunderstood the previous comment about the JSI version! I guess since this is unrelated to hermes we can close this now, thanks for your help. |
Bug Description
I am trying to create a new host function and install it in the JSI runtime's global object, but everytime I try to do that, my app crashes (SIGABRT).
gradle clean
and confirmed this bug does not occur with JSCHermes version: 0.7.0
React Native version (if any): 0.64.0
OS version (if any):
Platform (most likely one of arm64-v8a, armeabi-v7a, x86, x86_64): arm64-v8a
Steps To Reproduce
code example:
Full code in mrousavy/react-native-mmkv (
feat/mmkv-host-object
branch)The Expected Behavior
I expect the function to be installed without problems.
The Android Logcat output:
The text was updated successfully, but these errors were encountered: