MMKV icon indicating copy to clipboard operation
MMKV copied to clipboard

MMKV stores the object Crash because NSKeyedArchiver is used internally.

Open GE-GAO-ZHAO opened this issue 3 years ago • 1 comments

Note:

An crash issue will be ignored & closed in a week without logs.

The language of MMKV

MMKV stores the object Crash because NSKeyedArchiver is used internally. May I ask whether you have encountered, how to avoid this problem ?

The stack is as follows:

Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: 0x00000000 at 0x0000000000000000 Crashed Thread: 47

// 崩溃线程 Thread 47 Crashed: 0 CoreFoundation ___CFBinaryPlistWriteOrPresize 1 CoreFoundation ___CFBinaryPlistWriteOrPresize 2 Foundation -[NSKeyedArchiver finishEncoding] 3 Foundation +[NSKeyedArchiver archivedDataWithRootObject:] 4 MMKVCore mmkv::MMKV::set(NSObject objcproto8NSCoding*, NSString*) MMKV_OSX.cpp:162

GE-GAO-ZHAO avatar Aug 10 '22 11:08 GE-GAO-ZHAO

And what do you suggest?

lingol avatar Aug 10 '22 11:08 lingol

Garbage in garbage out, I think. So I should close this issue by now unless you have more to say.

lingol avatar Aug 22 '22 06:08 lingol