Code Monkey home page Code Monkey logo

Comments (11)

mrousavy avatar mrousavy commented on July 28, 2024 17

While I already spent way too much of my free time on this issue to fix the crash for random people on the internet, I spent some more time on this yesterday and finally fixed it. Check out 1.3.1. πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰

If you appreciate my efforts, please consider buying me a coffee for my next late-night debug session: ❀️ GitHub sponsors

from react-native-mmkv.

henrhie avatar henrhie commented on July 28, 2024 1

Hey man, I am having a similar issue with a library I'm working on. Could you point out where the issue lies? Would really appreciate it.

from react-native-mmkv.

mrousavy avatar mrousavy commented on July 28, 2024

There are no logs attached here, no reproduceable sample code, and the code -6 doesn't tell me anything.

Also it seems like this is a duplicate of #88, #122, #111 or #98

from react-native-mmkv.

yfunk avatar yfunk commented on July 28, 2024

@mrousavy Same issue for me with 1.3.0 on React Native 0.64.2 Hermes when running the app on Android

[...] 10:13:16.338 [...] I/ReactNativeJNI: Inspector::Inspector transitioning to initial state RunningDetached
[...] 10:13:16.339 [...] I/MMKV: <MMKV.cpp:156::initialize> version v1.2.10, page size 4096, arch x86_64
[...] 10:13:16.339 [...] I/MMKV: <MMKV.cpp:198::initializeMMKV> root dir: /data/user/0/com.myapp/files/mmkv
[...] 10:13:16.339 [...] I/HermesVM: HermesRuntimeImpl::call: Unable to call function: stack overflow
[...] 10:13:16.340 [...] E/libc++abi: terminating with uncaught exception of type facebook::jsi::JSINativeException
[...] 10:13:16.340 [...] A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 7013 (create_react_co), pid 6966 (om.myapp)

The error occurs even without importing or calling anything from the library, so most likely it is somehow related to setup (here?). I'm not using any remote debugger and followed the installation instructions (with Reanimated).

I'll create a minimal repro later can you reopen this issue or should I create a new one or post to an existing one? and comment on #122.

from react-native-mmkv.

ngocle2497 avatar ngocle2497 commented on July 28, 2024

i get this error

2021-09-06 16:16:02.233 11249-11303/com.app0642 I/ReactNativeJNI: Inspector::Inspector transitioning to initial state RunningDetached
2021-09-06 16:16:02.234 11249-11302/com.app0642 I/MMKV: <MMKV.cpp:156::initialize> version v1.2.10, page size 4096, arch x86
2021-09-06 16:16:02.234 11249-11302/com.app0642 I/MMKV: <MMKV.cpp:198::initializeMMKV> root dir: /data/user/0/com.app0642/files/mmkv
2021-09-06 16:16:02.234 11249-11302/com.app0642 I/HermesVM: HermesRuntimeImpl::call: Unable to call function: stack overflow
    
    --------- beginning of crash
2021-09-06 16:16:02.235 11249-11302/com.app0642 A/libc: /buildbot/src/googleplex-android/ndk-release-r20/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type facebook::jsi::JSINativeException: HermesRuntimeImpl::call: Unable to call function: stack overflow" failed
2021-09-06 16:16:02.236 11249-11302/com.app0642 A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 11302 (create_react_co)

from react-native-mmkv.

ngocle2497 avatar ngocle2497 commented on July 28, 2024

Although without hermes and reanimated, it still crash on Android

from react-native-mmkv.

mrousavy avatar mrousavy commented on July 28, 2024

@hngocl again, there's no reproduceable code here.

from react-native-mmkv.

mrousavy avatar mrousavy commented on July 28, 2024

I don't know why this error keeps happening, but I know that it's fixed if you upgrade to RN 0.65.1.

If you can't upgrade, I'd gladly accept any PRs that fix this issue. I've tried asking the hermes team here: facebook/hermes#587 but this error also happens on JSC.

from react-native-mmkv.

ngocle2497 avatar ngocle2497 commented on July 28, 2024

@mrousavy sorry about this error message, but i only get it on logcat of android studio. here you can see it.
image

I can't upgrade to 0.65.1, some library not working with it. i think i'll wait for new version of other library before upgrade

from react-native-mmkv.

ngocle2497 avatar ngocle2497 commented on July 28, 2024

my step to crash:

  • run cmd: npx react-native init App0642 --version 0.64.2
  • cd App0642 && yarn add react-native-mmkv
  • open app with Android Studio then follow installation step (react-native-mmkv)
  • run app

from react-native-mmkv.

justblender avatar justblender commented on July 28, 2024

+1 to this issue. Experiencing same issues after just installing react-native-mmkv and updating my MainApplication to use the overridden JSI module package class.

from react-native-mmkv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.