react-native-mmkv-storage icon indicating copy to clipboard operation
react-native-mmkv-storage copied to clipboard

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

Open rkostrab opened this issue 4 months ago • 0 comments

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

rkostrab avatar Oct 05 '24 10:10 rkostrab