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
libmmkv.so crash #505
Comments
Please follow the issue template, provide detailed info such as platform, version of MMKV, detailed crash stacks, logs of MMKV, etc. |
platform:Android |
我也遇到这样的问题。 |
|
I should upgrade to MMKV v1.2.2 and support muliti_process? |
No. You should first check your crash report to see if there's enough space. And if yes, then you should alert users to clean up enough space to continue using your App. And if no, then you should upgrade to v1.2.2 to check if you are mistakenly using MMKV. And if yes, you should change it to |
MMKV itself supports multi-process accessing from the very beginning. There's no such thing as to upgrade to v1.2.2 and support multi-process. |
ok thanks |
I check user has enough space,It should be the cause of multiple processes |
I believe I have told you how. |
When I upgrade mmkv to 1.2.2 and support multi-process ,There have been a lot of crashes,such as: How should I fix it?thanks backtrace: |
Are you using mmkv or mmkv-static? It crashed inside C++ standard library. |
Assuming you are using mmkv-static, that's the crash stacks above. It's inside C++ standard lib. I don't have any clue. |
Maybe you can upload a reproducible demo project. |
I use 'com.tencent:mmkv-static:1.2.2' |
It's a dead end here. |
Off the topic, I compiled mmkv with MMKV_DISABLE_CRYPT defined. I also see some libmmkv.so crash log. I don't see it from the FAQ or other WiKi pages. |
In the beginning, I thought symbolizing crash stacks is Android-Programming-101 for Android developers. But un-symbolized crash stacks keep coming to almost all issues from Android developers. I just gave up and symbolized myself for you. |
In one word, Google yourself. It's not about MMKV is any kind of special. It's about symbolizing Android native call stacks. |
Can you reproduce it on a demo project? @Leiluojun |
Any updates yet? |
Close due to inactive. |
Oh, it was closed before the problem was solved, and I expressed regret. |
If you can provide additional info such as a reproducible demo, you are very well welcome to create a new issue. |
backtrace:
#00 pc 00000000000213b0 /data/app/com.ss.android.videos.ll-vdwLW3LOiZNU9YkDNxAvfQ==/lib/arm64/libmmkv.so
#1 pc 000000000002162c /data/app/com.ss.android.videos.ll-vdwLW3LOiZNU9YkDNxAvfQ==/lib/arm64/libmmkv.so
#2 pc 000000000001c87c /data/app/com.ss.android.videos.ll-vdwLW3LOiZNU9YkDNxAvfQ==/lib/arm64/libmmkv.so
#3 pc 000000000001c290 /data/app/com.ss.android.videos.ll-vdwLW3LOiZNU9YkDNxAvfQ==/lib/arm64/libmmkv.so
#4 pc 000000000001b880 /data/app/com.ss.android.videos.ll-vdwLW3LOiZNU9YkDNxAvfQ==/lib/arm64/libmmkv.so
#5 pc 000000000001426c /data/app/com.ss.android.videos.ll-vdwLW3LOiZNU9YkDNxAvfQ==/lib/arm64/libmmkv.so
#6 pc 0000000000011060 /data/app/com.ss.android.videos.ll-vdwLW3LOiZNU9YkDNxAvfQ==/lib/arm64/libmmkv.so
#7 pc 00000000000d9bfc /data/app/com.ss.android.videos.ll-vdwLW3LOiZNU9YkDNxAvfQ==/oat/arm64/base.odex (offset 0xd8000) (com.tencent.mmkv.MMKV.encodeBytes [DEDUPED]+188)
#8 pc 0000000000562b88 /system/lib64/libart.so (art_quick_invoke_stub+584)
#9 pc 00000000000d0340 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
#10 pc 0000000000284bb8 /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
#11 pc 000000000027eb74 /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+948)
#12 pc 00000000005338b8 /system/lib64/libart.so (MterpInvokeDirect+296)
#13 pc 0000000000555394 /system/lib64/libart.so (ExecuteMterpImpl+14484)
#14 pc 00000000005408e0 /data/app/com.ss.android.videos.ll-vdwLW3LOiZNU9YkDNxAvfQ==/oat/arm64/base.vdex (com.tencent.mmkv.MMKV.a+280)
#15 pc 0000000000258670 /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2206941876)+496)
#16 pc 000000000025e1f0 /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+216)
#17 pc 000000000027eb58 /system/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+920)
#18 pc 00000000005355c8 /system/lib64/libart.so (MterpInvokeVirtualQuick+584)
#19 pc 0000000000559014 /system/lib64/libart.so (ExecuteMterpImpl+29972)
#20 pc 0000000000529586 /data/app/com.ss.android.videos.ll-vdwLW3LOiZNU9YkDNxAvfQ==/oat/arm64/base.vdex (com.lenovo.anyshare.adu$1.run+106)
#21 pc 0000000000258670 /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool) (.llvm.2206941876)+496)
#22 pc 0000000000521f90 /system/lib64/libart.so (artQuickToInterpreterBridge+1032)
#23 pc 000000000056bcfc /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
#24 pc 0000000000bcf4c4 /system/framework/arm64/boot.oat (offset 0x2dc000) (java.util.concurrent.ThreadPoolExecutor.runWorker+996)
#25 pc 0000000000bcc230 /system/framework/arm64/boot.oat (offset 0x2dc000) (java.util.concurrent.ThreadPoolExecutor$Worker.run+64)
#26 pc 0000000000a59c58 /system/framework/arm64/boot.oat (offset 0x2dc000) (java.lang.Thread.run+72)
#27 pc 0000000000562b88 /system/lib64/libart.so (art_quick_invoke_stub+584)
#28 pc 00000000000d0340 /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+200)
#29 pc 0000000000466560 /system/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104)
#30 pc 0000000000467628 /system/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+424)
#31 pc 00000000004946f8 /system/lib64/libart.so (art::Thread::CreateCallback(void*)+1120)
#32 pc 0000000000084d6c /system/lib64/libc.so (__pthread_start(void*)+36)
#33 pc 00000000000234cc /system/lib64/libc.so (__start_thread+68)
The text was updated successfully, but these errors were encountered: