clearAll carch
The language of MMKV
e.g. Objective-C, Swift, Java, or Kotlin
Swift and OC
The version of MMKV
e.g. v1.0.10
v1.2.2、v1.2.1
The platform of MMKV
e.g. iOS or Android
iOS
The installation of MMKV
e.g. Cocoapods, Carthage, Maven, AAR Package or Git clone
Cocoapods
What's the issue?
问题:Swift中调用clearAll()崩溃
Incident Identifier: BD4BC54D-EDB5-41DB-921C-AE8F50D7379C Hardware Model: iPhone12,3 Process: DianBo [221] Path: /private/var/containers/Bundle/Application/A23CE535-05FE-4A18-847B-68E780B03043/DianBo.app/DianBo Identifier: com.dianboLive.www Version: 1.7 (2.2.0) AppStoreTools: 11E707 AppVariant: 1:iPhone12,3:13 Beta: YES Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: com.dianboLive.www [352]
Date/Time: 2020-08-18 09:38:13.5354 +0800 Launch Time: 2020-08-18 01:23:45.1131 +0800 OS Version: iPhone OS 13.6 (17G68) Release Type: User Baseband Version: 1.06.00 Report Version: 104
Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x18a60d344 __exceptionPreprocess + 228 (NSException.m:199)
1 libobjc.A.dylib 0x18a322cc0 objc_exception_throw + 60 (objc-exception.mm:565)
2 CoreFoundation 0x18a4fd51c +[NSException raise:format:] + 112 (NSException.m:155)
3 DianBo 0x105370afc 0x104350000 + 16911100
4 DianBo 0x1050894cc 0x104350000 + 13866188
5 DianBo 0x105089064 0x104350000 + 13865060
6 libsystem_platform.dylib 0x18a311414 sigtramp + 60 (sigtramp.c:100)
7 libsystem_pthread.dylib 0x18a314948 pthread_kill + 228 (pthread.c:1458)
8 libsystem_c.dylib 0x18a2a3ba4 abort + 104 (abort.c:110)
9 libsystem_c.dylib 0x18a2a2ef8 __assert_rtn + 292 (assert.c:96)
10 MMKVCore 0x106c5ee40 mmkv::MemoryFile::reloadFromFile() (.cold.1) + 88
11 MMKVCore 0x106c4f9b0 mmkv::MemoryFile::reloadFromFile() + 216 (MemoryFile.cpp:132)
12 MMKVCore 0x106c59f68 mmkv::MMKV::clearAll() + 140 (MMKV_IO.cpp:1048)
13 DianBo 0x104aad740 specialized setLoginVCWithRoot(:) + 3436 (CommonlyUsedTool.swift:425)
14 DianBo 0x1049b87f8 thunk for @escaping @callee_guaranteed (@guaranteed UIAlertAction) -> () + 48 (
Logs of mmkv, please.
线上日志级别是:MMKVLogNone。 线上用户出现的,我尝试复现,但是没有出现过。
Come back later when you have logs.
https://github.com/Tencent/MMKV/wiki/iOS_advance#log
Close due to inactive.
+1,也出现了