MMKV icon indicating copy to clipboard operation
MMKV copied to clipboard

android native crash with libdvm.so dvmAbort

Open mengsanye opened this issue 7 years ago • 1 comments

The language of MMKV

Java

The version of MMKV

v1.0.16

The platform of MMKV

Android

The installation of MMKV

Git clone, build AAR Package

What's the issue?

Android API 16、17、18机型 原始日志

#00 00048890 libdvm.so
dvmAbort
r4 deadd00d r5 0000020c r6 be8382b4 r7 be8382a8 r8 be8382e0 r9 574dea58 sl 4157d6e0 fp be8382f4 ip 33fe4001 sp be838050
	
#01 0004d1c7 libdvm.so
dvmDecodeIndirectRef(Thread*, _jobject*)
r4 4199ef58 r5 dead4321 r6 be8382b4 r7 be8382a8 r8 be8382e0 r9 574dea58 sl 4157d6e0 fp be8382f4 ip 33fe4001 sp be838268
	
#02 0004e0a5 libdvm.so
r4 4199ef58 r5 00000000 r6 be8382b4 r7 be8382a8 r8 be8382e0 r9 574dea58 sl 4157d6e0 fp be8382f4 ip 33fe4001 sp be838280
	
#03 00002dc5 libmmkv.so
r4 00000000 r5 4157c1e8 r6 be8382b4 r7 be8382a8 r8 be8382e0 r9 574dea58 sl 4157d6e0 fp be8382f4 ip 33fe4001 sp be838298

根据符号表解析后堆栈信息:

_JNIEnv::GetStringUTFChars(_jstring*, unsigned char*)
jni.h:879
jstring2string(_JNIEnv*, _jstring*)
native-bridge.cpp:96

mengsanye avatar Jul 12 '19 09:07 mengsanye

That's just too old, upgrade to 1.0.22 please. Come back if that crash happens again.

lingol avatar Jul 12 '19 10:07 lingol