libsodium-jni icon indicating copy to clipboard operation
libsodium-jni copied to clipboard

sodium_version_string crashes Android device

Open jeprojects opened this issue 6 years ago • 1 comments

When calling sodium_version_string from an Android device it crashes the device with this error:

JNI DETECTED ERROR IN APPLICATION: attempt to return an instance of java.lang.String from byte[] org.libsodium.jni.SodiumJNI.sodium_version_string()

Any advice?

jeprojects avatar Aug 26 '18 12:08 jeprojects

I'm not completely sure.

There used to be emulation tests that would execute on the Android emulator as part of the continuous integration build. That might help to pinpoint if this issue happens on all Android apis or just a select few.

However, I recently disabled the emulation tests as I haven't been keeping it up to date with the Android updates.

joshjdevl avatar Aug 27 '18 15:08 joshjdevl