Comments (11)
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.
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.
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.
@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.
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.
Although without hermes and reanimated, it still crash on Android
from react-native-mmkv.
@hngocl again, there's no reproduceable code here.
from react-native-mmkv.
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.
@mrousavy sorry about this error message, but i only get it on logcat of android studio. here you can see it.
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.
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.
+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)
- Bug on RN 0.74 HOT 10
- How to Implement iCloud Sync to Keep Reinstalled Apps to Recover DataοΌ HOT 3
- Building for 'iOS-simulator', but linking in dylib (/opt/local/lib/libz.1.3.1.dylib) built for 'macOS' HOT 2
- After defining the path for the MMKV instance, an empty 'MMKV' directory is still generated under $(Documents) HOT 3
- Expo managment. HOT 3
- Storage data not updating to next scene HOT 2
- Beta 5 Android build error cannot find symbol HOT 9
- > Task :app:mergeDebugNativeLibs FAILED
- trim not present HOT 3
- Android armeabi-v7a support dropped by Tencent HOT 3
- Error: Failed to create a new MMKV instance: React Native is not running on-device. HOT 4
- Error in setup: HOT 3
- ERROR Error: Failed to create a new MMKV instance: The native MMKV Module could not be found. HOT 2
- Error : TypeError: Cannot read property 'MULTI_PROCESS' of undefined HOT 1
- Android Build Error - subcommand failed HOT 4
- Critical Error in 0.74.* iOS HOT 10
- Bug on options HOT 2
- Query about tracking multiple instances HOT 2
- Add method to check if MMKV instance with given ID exists HOT 5
- Support for App Groups in MMKV 3.0.0-beta.6 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-mmkv.