clawtalk-ios icon indicating copy to clipboard operation
clawtalk-ios copied to clipboard

[BUG] Voice transcription crashes on iOS 26 (WhisperKit SuppressTokensFilter EXC_BAD_ACCESS) — workaround available

Open Lunah-L opened this issue 5 months ago • 0 comments

Hi Sam,

I ran into a hard crash on ClawTalk (iOS 26.5, iPhone) when trying to use any voice/STT model. The small model is intermittent but the large-v3_turbo model crashes reliably, and the crash originates in WhisperKit, not in ClawTalk itself. Quick report and a workaround in case it helps you ship a fix.

What I did:

  • Installed ClawTalk from the App Store (paid for the $2.99 one-time purchase — happy to be a customer, also happy to test builds if useful)
  • Configured the gateway URL/token, everything connects fine
  • Tried to use voice input — picked small first (works intermittently), then large-v3_turbo (crashes every time)
  • App reports a generic "model not found" / load error

Root cause (not on you, but it lands in your app): This is WhisperKit issue #392 — on iOS 26, CoreML returns MLMultiArray instances as read-only, and SuppressTokensFilter.filterLogits writes to that array in place via MLMultiArray.fill(indexes:with:), which crashes with EXC_BAD_ACCESS (SIGBUS) / KERN_PROTECTION_FAILURE. The default supressTokens: [-1] triggers the crash.

Stack trace (from the upstream issue): Thread 9 Crashed: 0 MLMultiArray.fill(indexes:with:) + 432 (Extensions+Public.swift:126) 1 SuppressTokensFilter.filterLogits(:withTokens:) + 20 (LogitsFilter.swift:23) 2 TextDecoder.decodeText(...)

Confirmed against iPhone 13 Pro / iOS 26.x. The bug reporter says the same crash happens on iOS 26.2 on iPhone 16 Pro.

The fix is already on the way:

  • WhisperKit PR #460 ("drop negative sentinels from SuppressTokensFilter") is open and unmerged
  • Workaround the bug reporter confirmed: pass supressTokens: [] instead of [-1]

What would unblock users on iOS 26: Option A — quick: ship a build with supressTokens: [] hardcoded for iOS 26+ (one-line change in your WhisperKit call site) while waiting for PR #460 to land upstream Option B — better: bump your WhisperKit dependency to a release that includes the upstream fix once PR #460 merges Option C — defensive: catch the EXC_BAD_ACCESS and surface a user-friendly "STT unavailable on this iOS version" message instead of the cryptic model error

Offer: Happy to test a TestFlight build. I'm on iOS 26.5 (build 23F77) and can verify the fix in a few minutes once it's in. Also happy to provide any logs from Console.app if useful.

Credits: WhisperKit issue: https://github.com/argmaxinc/argmax-oss-swift/issues/392 WhisperKit PR: https://github.com/argmaxinc/argmax-oss-swift/pull/460 Bug reporter: @7kylor (please credit them — they did the actual root-cause work)

BTW - Thanks for the app — really useful tool for self-hosted agents, this is just the one rough edge I've hit on the new iOS.

Lunah-L avatar Jun 10 '26 09:06 Lunah-L