maid_llm icon indicating copy to clipboard operation
maid_llm copied to clipboard

Crash occurs on low-level API Android devices

Open canluhuang opened this issue 6 months ago • 1 comments

I found the crash occur on some low level API(<= 29) Android devices, this is the crash stack: image The stack after mapping: xxx/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/lib64/clang/12.0.8/include/bits/stdatomic.h:273 xxx/Android/maid/packages/maid_llm/src/llama_cpp/src/llama.cpp:18617 xxx/Android/maid/packages/maid_llm/src/maid_llm.cpp:33

And I found that this was caused by turning on an arm64-v8a compilation optimization flag in "maid_llm/android/CMakeLists.txt". image

What will happen if this flag is not enabled?

canluhuang avatar Jul 25 '24 08:07 canluhuang