Tencent / MMKV

An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, and POSIX.
Other
17.34k stars 1.9k forks source link

Assertion failed: (m_metaFile->isFileValid()), function readActualSize, file MMKV_IO.cpp, line 386. #1402

Closed bytedanceJia closed 1 month ago

bytedanceJia commented 1 month ago

Note:

Assertion failed: (m_metaFile->isFileValid()), function readActualSize, file MMKV_IO.cpp, line 386.

The language of MMKV

e.g. Objective-C

The version of MMKV

v1.2.2

The platform of MMKV

iOS

The installation of MMKV

Cocoapods

What's the issue?

launch crash image image

lingol commented 1 month ago

It's most likely that the device doesn't have enough space for the file to be mmapped successfully. However that requires logs from MMKV to verify. And you have provide none. Also, your version is too old for any investigation.

So,

  1. Upgrade your MMKV to latest version,
  2. And, provide logs from MMKV if you still have the same problem after the upgrade.