voicemode icon indicating copy to clipboard operation
voicemode copied to clipboard

whisper-server SIGABRT crash in ggml_metal_rsets_free on macOS (M3 Pro)

Open jancbeck opened this issue 10 months ago • 6 comments

Environment:

  • macOS 26.2 (25C56) - Tahoe
  • Hardware: Mac15,7 (MacBook Pro M3 Pro, 36GB RAM)
  • VoiceMode: v2.15.0
  • Whisper: v1.8.3
  • ggml-metal: 0.9.5

Description: whisper-server crashes immediately on startup with SIGABRT when initializing the Metal GPU backend. The crash occurs in libggml-metal.0.9.5.dylib during ggml_metal_rsets_free.

Crash Stack Trace:

  Exception Type:    EXC_CRASH (SIGABRT)
  Termination Reason: Namespace SIGNAL, Code 6, Abort trap: 6

  Thread 0 Crashed:
  0   libsystem_kernel.dylib      __pthread_kill + 8
  1   libsystem_pthread.dylib     pthread_kill + 296
  2   libsystem_c.dylib           abort + 124
  3   libggml-base.0.9.5.dylib    ggml_abort + 160
  4   libggml-metal.0.9.5.dylib   ggml_metal_rsets_free + 152
  5   libggml-metal.0.9.5.dylib   ggml_metal_device_free + 24
  6   libggml-metal.0.9.5.dylib   std::__1::unique_ptr<ggml_metal_device, ggml_metal_device_deleter>::~unique_ptr()
  7   libsystem_c.dylib           __cxa_finalize_ranges + 480
  8   libsystem_c.dylib           exit + 44

Reproduction Steps:

  1. Install voicemode on macOS 26.2 Tahoe
  2. Run voicemode whisper service start
  3. Server crashes immediately

Logs: Server successfully connects to ANE (Apple Neural Engine) but crashes during Metal initialization: (ANEServices) ANEDriver Device Open succeeded with usage type: 1 (ANEServices) Selected ANEDriver device [com.apple.CoreAnalytics:client] Entering exit handler.

Expected Behavior: whisper-server should start and listen on port 2022.

Actual Behavior: Server crashes with SIGABRT during Metal device cleanup, suggesting Metal initialization fails and triggers abort during error handling.

Root Cause Analysis: The crash appears to be a compatibility issue between ggml-metal 0.9.5 and macOS 26.2's Metal framework. The ggml_metal_rsets_free function calls ggml_abort when attempting to free Metal resource sets that were never properly initialized.

Possible Workarounds:

  • None currently - CPU-only mode would require rebuild
  • Port forwarding to remote whisper instance works

Suggested Fix: Update to newer ggml/whisper.cpp version that has macOS 26.x compatibility fixes, or add graceful fallback when Metal initialization fails.

jancbeck avatar Jan 19 '26 08:01 jancbeck

Weird, just installed it on my 5 year old M1 MacBook and it worked without issues. I did a complete re-install of voicemode on my M3 Mac and it still shows the same error.

jancbeck avatar Jan 19 '26 10:01 jancbeck

Hi @jancbeck, thanks for the detailed bug report with the stack trace and environment info!

This appears to be a compatibility issue between the ggml-metal library and macOS 26.2 Tahoe's Metal framework. VoiceMode installs whisper.cpp as a convenience service at:

~/.voicemode/services/whisper/

This is essentially a clone of the whisper.cpp repository that we build for you. We're using whisper.cpp's Metal GPU acceleration which is giving you the fast Core ML performance, but it looks like the ggml-metal 0.9.5 library has an issue with macOS 26.2.

Possible workarounds:

  1. Use a remote Whisper server - You mentioned port forwarding to a remote instance works. This is a good interim solution.

  2. Try updating whisper.cpp - You could try pulling a newer version of whisper.cpp which may have macOS 26.x fixes:

    cd ~/.voicemode/services/whisper/whisper.cpp
    git pull origin master
    make clean
    make -j
    voicemode whisper restart
    
  3. Check upstream - This may be worth reporting to the whisper.cpp project if not already known: https://github.com/ggerganov/whisper.cpp/issues

We'll track this as VM-461 on our side. Let us know if updating whisper.cpp helps!

ai-cora avatar Jan 19 '26 10:01 ai-cora

I saw it's a new release so I upgraded locally and am using it now.

[email protected] whisper ((v1.8.2))$ voicemode whisper install
HEAD is now at 4979e04f release : v1.8.2
Removing bin/
2026-01-19 21:50:09,348 - voicemode - WARNING - Make clean skipped (no previous build), continuing...
✅ Whisper installed successfully!
   Install path: /Users/admin/.voicemode/services/whisper
   Version: v1.8.3
   GPU support: Enabled
$ sw_vers
ProductName:		macOS
ProductVersion:		26.2
BuildVersion:		25C56

It's working for me.

PR welcome if you find the cause of your issue.

mbailey avatar Jan 19 '26 10:01 mbailey

Thanks for the quick response. It's very unlikely this is a Mac OS Tahoe issue, as I mentioned, I did an install on my M1 MacBook that also runs 26.2, and it went smoothly. I simply followed the installation instructions, and it worked out of the box. The issue happens on the M3 MacBook, where Whisper keeps crashing for some reason. The setups on both machines are otherwise mostly identical. I'm not sure what could be causing this. I've reinstalled Whisper, and it's using version 1.8.3. Any idea how to troubleshoot this?

jancbeck avatar Jan 19 '26 12:01 jancbeck

The easiest thing would be for you to share this issue with Claude Opus-4.5 on the affected host and ask it to investigate.

VoiceMode just clones whisper.cpp to ~/.voicemode/services/whisper and builds it.

You could try building the previous release.

mbailey avatar Jan 20 '26 00:01 mbailey

Please reopen if this is still a problem for you.

mbailey avatar Jun 26 '26 12:06 mbailey