google-ai-edge / mediapipe-samples

Apache License 2.0
1.58k stars 411 forks source link

App Crashed running llm inference example #434

Closed Vinayak0-0 closed 1 month ago

Vinayak0-0 commented 2 months ago

Description:

When running the llm inference example, the application crashed.

Steps to Reproduce:

  1. Run the example from the repository
  2. Once the model is loaded, give input.
  3. Observe the app crashing.

Expected Behavior:

The LLM inference should proceed without any crashes.

Actual Behavior:

The app crashes with the following error:

Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 5283 (mediapipe/5278), pid 5243 (emmaapplication)
2024-08-22 16:52:02.986  5492-5492  DEBUG                   pid-5492                             A  Process name is com.example.gemmaapplication, not key_process
2024-08-22 16:52:02.987  5492-5492  DEBUG                   pid-5492                             A  pid: 5243, tid: 5283, name: mediapipe/5278  >>> com.example.gemmaapplication <<<
2024-08-22 16:52:03.031  5492-5492  DEBUG                   pid-5492                             A        #01 pc 000000000037d7f4  /data/app/~~n07ttL8K7tqGe7ULOa5Saw==/com.example.gemmaapplication-gOvJJ8nMHtq-KAjiFgBHhg==/base.apk!libllm_inference_engine_jni.so (offset 0x14000)
2024-08-22 16:52:03.031  5492-5492  DEBUG                   pid-5492                             A        #02 pc 00000000003fc500  /data/app/~~n07ttL8K7tqGe7ULOa5Saw==/com.example.gemmaapplication-gOvJJ8nMHtq-KAjiFgBHhg==/base.apk!libllm_inference_engine_jni.so (offset 0x14000)
2024-08-22 16:52:03.031  5492-5492  DEBUG                   pid-5492                             A        #03 pc 0000000000402424  /data/app/~~n07ttL8K7tqGe7ULOa5Saw==/com.example.gemmaapplication-gOvJJ8nMHtq-KAjiFgBHhg==/base.apk!libllm_inference_engine_jni.so (offset 0x14000)

Environment:

Additional Information:

ArachnaDigitalLtd commented 2 months ago

Same here on M2 MacBook Air, macOS build

PaulTR commented 2 months ago

A new PR just got merged, so I haven't seen any crashes after that on a Pixel 8 Pro if you want to verify now :)

PaulTR commented 1 month ago

Closing out since haven't received a reply on whether this is still an issue or not