GGML Metal Assertion Crash on Apple Silicon During Shutdown with Local Embeddings
Symptom On Apple Silicon (M-series) Macs, when using "provider": "local" for memory search embeddings (via node-llama-cpp), the application crashes with a GGML Metal assertion error during graceful shutdown (Ctrl+C / SIGINT) or during auto-update restarts. The crash produces the following error in Console.app: /Users/runner/work/node-llama-cpp/node-llama-cpp/llama/llama.cpp/ggml/src/ggml-metal/ggml-metal-device.m:608: GGML_ASSERT([rsets->data count] == 0) failed WARNING: Using native backtrace. Set GGML_BACKTRACE_LLDB for more info. The stack trace shows the crash occurs during process exit: libggml-metal.so ggml_metal_device_init libggml-metal.so ggml_metal_device_free libsystem_c.dylib exit ...