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

[Bug] Android app crashing when using withEncryption() in version 10.0.3 #359

Open
rkostrab opened this issue Oct 5, 2024 · 0 comments
Open

Comments

@rkostrab
Copy link

rkostrab commented Oct 5, 2024

Describe the bug
I am using mmkv for redux persist. I am initalizing it like this:

const storage = new MMKVLoader().withEncryption().initialize();

...and this causes app crash. I see this in logcat:

java_vm_ext.cc:598] JNI DETECTED ERROR IN APPLICATION: GetStringUTFChars received NULL jstring
java_vm_ext.cc:598]     in call to GetStringUTFChars
java_vm_ext.cc:598]     from void com.facebook.jni.NativeRunnable.run()
runtime.cc:708] Runtime aborting...

if I remove encryption:
const storage = new MMKVLoader().initialize();

... then app is working normally

Platform Information:

  • OS: Android
  • React Native Version 0.74.5
  • Library Version 10.0.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant