kherud/java-llama.cpp

Android inference issue "A FORTIFY: pthread_mutex_lock called on a destroyed mutex"

Opened this issue · 0 comments

Hello,

I am trying to integrate the java-llama.cpp to my android project. I use build.gradle as the README provided and put the java-llama.cpp under the app folder. The project building process works fine, as well as the loading models. However, when I call String result = llamaModel.complete(inferParams), I got
2024-09-19 15:47:44.526 16522-5675 libc com.example.chatbot A FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xb400007d0dbf6db0) 2024-09-19 15:47:44.526 16522-5675 libc com.example.chatbot A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 5675 (DefaultDispatch), pid 16522 (com.example.chatbot)
I guess it might be a issue within the c++ part, or is it possible the conflict of some libs? Could you please check if there are any possible reasons, Thanks! By the way, the pure Java on my Mac works well!