SIGABRT on Stop when post-stop transcription fails to spawn whisper context; orphan WAV in jobs/ not retried
Summary
When a recording ends and the post-stop processing path tries to spawn a whisper context to transcribe the resulting WAV, a context-spawn failure path triggers a Rust Drop during process exit that calls abort(), resulting in a hard SIGABRT crash instead of a graceful "transcription failed" error to the UI. The WAV stays in jobs/ and is not retried on app relaunch.
Reported by @allaire on #227 with a full macOS crash report (https://github.com/silverstein/minutes/issues/227#issuecomment-4422948921), and now with diagnostic data on #229 (comment 4423605694) that pins down the trigger.
Root cause for Bug A (confirmed via @allaire's diagnostic data, 2026-05-11)
Bug A is partial / corrupt model files on disk that minutes setup does not detect.
Allaire's bug surfaces only with transcription.model = "medium" or "large". small works. His ~/.minutes/models/ggml-medium.bin is 221 MB. Canonical ggml-medium.bin is roughly 1.5 GB, so his file is about one seventh of a complete model, almost certainly from a download that got interrupted (network, app kill, disk full).
minutes setup --model medium reports "Model already downloaded" because it only checks file existence, not size or integrity. whisper-rs then tries to parse a truncated GGML header on load, fails, and the in-process failure cascades into Bug B's Drop panic.
Fix scope for Bug A:
minutes setupvalidates file size against expected per-model size after download, and on subsequent invocations. If the file exists but is truncated, treat as "needs download" not "already downloaded".- Model load path (
crates/core/src/transcribe.rsresolve_model_pathand downstreamWhisperContext::new_with_paramscall) checks file size against expected before passing to whisper-rs. If undersized, return a typedModelLoadError::Truncatedwith a hint to re-download. - UI surface: a corrupt-model error should offer a "re-download model" button in the Readiness Center, not just a generic error toast.
- A future enhancement (out of scope for v0.17.2): publish per-model SHA256 in a manifest fetched alongside the binary, validate via checksum not just size.
Three failures, one incident
A. Post-stop whisper context spawn failure (ROOT CAUSE: partial model file)
After Stop recording, the processing pipeline tried to load a whisper model and create a WhisperContext. That spawn failed on @allaire's machine because ggml-medium.bin was a truncated 221 MB file instead of the expected ~1.5 GB. whisper-rs reported the GGML parse failure correctly; the failure cascaded into B.
Workaround for users in this state today:
rm ~/.minutes/models/ggml-medium.bin # or whichever model is corrupt
minutes setup --model medium
Confirm the new file is in the expected size range before relaunching.
B. Drop panic during process exit escalates to SIGABRT
The crash report shows the fault inside __cxa_finalize_ranges -> exit, which is process teardown, not the actual transcription path. Stack:
0 libsystem_kernel.dylib __pthread_kill + 8
1 libsystem_pthread.dylib pthread_kill + 296
2 libsystem_c.dylib abort + 148
3 minutes-app (offset 0xf1de28)
4 minutes-app (offset 0xfb1f6c)
5 minutes-app (offset 0xfb2874)
6 minutes-app (offset 0xfb3bcc)
7 libsystem_c.dylib __cxa_finalize_ranges + 416
8 libsystem_c.dylib exit + 44
9 minutes-app (offset 0xc04b54)
10 minutes-app (offset 0xc02bf0)
...
This is the classic Rust "panic during shutdown becomes abort" pattern. A Drop impl panicked while the process was already exiting, so the panic could not unwind and got escalated to abort(). Fix here is independent of fixing A: an honest model error should surface to the UI as a normal Result::Err and let the process exit cleanly. Audit Drop impls along the post-stop processing path for panic sources, and catch panics at the worker boundary.
In-progress: 596-line patch on branch fix/229-post-stop-crash-recovery hardens this path with catch_unwind at the worker boundary plus targeted Drop audit.
C. Orphan WAV in jobs/ not retried on next launch
After the crash, the WAV is still in ~/.minutes/jobs/ (per @allaire) but the app does not pick it back up on next start. The job-queue worker should:
- On startup, scan
jobs/for orphaned WAVs whose parent recording is not currently in-flight. - Re-enqueue them for processing with retry-limit semantics so a deterministic spawn failure does not get retried forever.
- Surface them in Recovery as "transcription pending" instead of leaving them silent.
crates/core/src/jobs.rs and crates/core/src/pipeline.rs are the relevant code paths. In-progress on the same branch as Bug B.
v0.17.2 scope
A + B + C land together in v0.17.2. Allaire's workaround works today.
Reproduction (now mostly solved)
A reproduces deterministically: truncate any ggml-*.bin file to roughly 1/7 of its expected size and try to load that model. Bug B and Bug C cascade from there.
B and C can be reproduced independently with any honest model load failure (e.g. point config at a nonexistent path).
Priority
High but not blocker for v0.17.1 (already shipped, contains the unrelated #216 fix). Targeting v0.17.2.
last meeting crashed as well using latest version of the mac app (0.17.1).
Here's the last line I have in the .log:
{"extra":{"action":"started","app_name":null,"details":{"apps":["zoom.us","Microsoft Teams","Webex","google-meet","teams-web"],"poll_interval_secs":1},"process_name":null},"file":"","level":"info","step":"call_detect","ts":"2026-05-11T13:38:54.520948-04:00"}
Regarding the whisper failed to create context and load model error, it's working when I set transcription.model = "small", but fail with medium and `large.
Medium is installed:
~ ❯ minutes setup --model medium
Model already downloaded: /Users/allaire/.minutes/models/ggml-medium.bin (221 MB)
Available audio input devices:
Mathieu’s AirPods Pro 3 (24000Hz, 1 ch)
MX Brio (48000Hz, 2 ch)
MacBook Pro Microphone (48000Hz, 1 ch)
Microsoft Teams Audio (48000Hz, 1 ch)
MOTIV Mix Virtual (48000Hz, 2 ch)
ZoomAudioDevice (48000Hz, 2 ch)
Allaire (cc @allaire), thank you, that "small works, medium/large fail" detail plus the file size is the smoking gun.
ggml-medium.bin should be roughly 1.5 GB on disk. Yours is 221 MB, which is about one seventh of a complete model. That file is a partially-downloaded model from a download that got interrupted (network drop, app kill mid-download, disk full at the time, anything along those lines). minutes setup then sees the file exists, reports "already downloaded", and you load it. whisper-rs tries to parse a truncated GGML header, the context init fails, and downstream a Drop on the partially-initialized state escalates the failure into the SIGABRT you saw. Same chain for large, just bigger.
Immediate workaround to unblock you:
rm ~/.minutes/models/ggml-medium.bin
minutes setup --model medium
Same for large if you also want that one back:
rm ~/.minutes/models/ggml-large-v3.bin
minutes setup --model large-v3
Confirm the new size is in the 1.5 GB range before reopening the app. That should give you working medium-model transcription on calls.
What we are shipping in v0.17.2:
Bug A (this issue): minutes setup will verify model file size after download and refuse to declare success on a truncated file. Existing models will be checked on first load and the app will offer to re-download a corrupt one instead of crashing.
Bug B (the SIGABRT itself, separate from A): the Drop path is being hardened so even an honest model error surfaces as a clean "model corrupt, please re-download" toast instead of taking the app down. We had a 596-line patch landing this in fix/229-post-stop-crash-recovery already.
Bug C: the orphan WAV in jobs/ will get retried on next launch with a bounded retry counter so a deterministic failure does not retry forever.
So: workaround now, real fix in v0.17.2 in the next day or so. Sorry for the trouble. This is genuinely useful debugging data, I would not have caught the partial-file vector without your "small works, medium fails" comparison.
@silverstein you were right! Re-downloaded the models and it worked.
~~Only large issue remaining now is only myself is recorded in the call and not other attendees.~~
NVM, I just found out this document exists, pheraps we should make it more obvious in the README : https://github.com/silverstein/minutes/blob/36e581be1887e35f66f6edd99253c5b12652ed34/.opencode/skills/minutes-record/references/audio-devices.md?plain=1#L11
v0.17.2 is live with all three #229 fixes shipped end to end:
- Bug A:
minutes setupnow validates whisper model file size against expected per-model size after every download and on subsequent invocations, refuses to declare success on a truncated file, and deletes partials so a clean re-download happens automatically. Existing valid models are unchanged. - Bug B: the post-stop transcription worker is hardened with
catch_unwindat the worker boundary, the Drop path that was tripping the SIGABRT is now defensive, and a corrupt model surfaces as a typedModelTruncatedtoast with a copyable fix command instead of crashing the app. - Bug C: orphan WAVs in
~/.minutes/jobs/are picked up on next launch with a bounded retry counter, and failed-past-retry jobs surface in Recovery with the underlying error attached so you can resolve the root cause and retry manually.
Upgrade paths:
# Homebrew
brew update && brew upgrade --cask silverstein/tap/minutes
# Or download the DMG directly
# https://github.com/silverstein/minutes/releases/tag/v0.17.2
When you have a moment, three things would close the loop on this whole thread:
- Re-download the medium model: if you used the
rmworkaround already, you can skip this. Otherwise on v0.17.2, runminutes setup --model mediumand confirm the file is in the ~1.5 GB range, not 221 MB. - Confirm the orphan WAV recovers: if that 12:14 GMeet WAV is still sitting in
~/.minutes/jobs/, restart the app on v0.17.2 and check Recovery. It should pick it up. - Re-enable
call_detectionand try a Teams or GMeet call again: v0.17.1 shipped the #216 long-call finalize fix, and v0.17.2 fixes the crash and recovery path on top of that. The remaining "only my voice in the recording" issue (separate from this thread) is its own investigation, but at minimum no more crashes or stuck WAVs.
Leaving this issue open until you confirm or until 1 week from now. Thank you again for the diagnostic data, the 221 MB file size was the unlock that turned this from "mysterious post-stop SIGABRT" into "obvious partial-download integrity bug".
Excellent, glad the model re-download did it. All three #229 fixes confirmed working end to end then, since B and C were both caused by A's failure path and never get a chance to fire once A is fixed.
And good catch on the audio routing doc. Agreed it should not be buried inside .opencode/skills/. PR #233 surfaces it: copies the guide to docs/audio-devices.md as the canonical user-facing location and adds a one-paragraph callout in the README "Record meetings" section flagging that macOS does not capture system audio by default and pointing readers at the guide.
Three more discoverability moves I am tracking as follow-ons that would catch users earlier in the journey, before they ever finish a silent recording:
- CLI:
minutes record --callcould detect "no virtual audio device routed to default output" at start and log a one-liner pointing at the guide. - Desktop: a Readiness Center tile that flags "system audio capture not configured" with a fix button linking to the guide.
- Skill bundle: the 5 skill-bundle copies of
audio-devices.mdshould point atdocs/audio-devices.mdto avoid drift over time.
Closing #229 since the original three bugs are confirmed shipped. The new README discoverability work tracks on #233.