Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to mlock crc [mmkv.default]-0x10ac34000, 12:Cannot allocate memory #85

Closed
gank0326 opened this issue Oct 16, 2018 · 9 comments
Closed

Comments

@gank0326
Copy link

[[MMKV defaultMMKV] setFloat:newLocation.coordinate.latitude forKey:CCLastLatitude];

fail to mlock crc [mmkv.default]-0x10ac34000, 12:Cannot allocate memory

@lingol
Copy link
Collaborator

lingol commented Oct 16, 2018

It seams that you are facing OOM. How big is you mmkv file?

@gank0326
Copy link
Author

I did not specify the file size, used default to access several float values and NSString

@lingol
Copy link
Collaborator

lingol commented Oct 16, 2018

Reboot your device and try again?

@gank0326
Copy link
Author

Reboot device does not work

@gank0326
Copy link
Author

wechatimg1

@lingol
Copy link
Collaborator

lingol commented Oct 16, 2018

That's something new. Can you make a reproducible demo project and send it to me? guoling@tencent.com

@gank0326
Copy link
Author

demo already send

@BinBear
Copy link

BinBear commented Oct 17, 2018

@gank0326 You are using version 1.0.10 . Version 1.0.10 is fine.

@lingol
Copy link
Collaborator

lingol commented Oct 18, 2018

Fixed with #88 . For those who has upgrade to v1.0.11, is highly recommended that you upgrade to v1.0.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants