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

Crash occurs on low-level API Android devices #10

Open
canluhuang opened this issue Jul 25, 2024 · 1 comment
Open

Crash occurs on low-level API Android devices #10

canluhuang opened this issue Jul 25, 2024 · 1 comment

Comments

@canluhuang
Copy link

canluhuang commented Jul 25, 2024

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?

@danemadsen
Copy link
Member

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?

From memory it will work without that enabled but it makes it VERY slow.

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

2 participants