Skip to content

Desktop app crashes on Mac mini without microphone (TalkMode + CodeTokenizer) #1853

@nicanica

Description

@nicanica

Environment

  • macOS 26.2 (25C56)
  • Mac mini M4 (Mac16,10)
  • Clawdbot App 2026.1.23 (build 7750)
  • Gateway running as LaunchDaemon (not LaunchAgent)
  • No microphone connected

Problem

The desktop app crashes in two scenarios:

1. TalkMode crash (on startup)

TalkModeRuntime.startRecognition() fails because there's no microphone available. The app calls AVAudioNode installTapOnBus which throws an exception.

Workaround: Disable VoiceWake via:

defaults write com.clawdbot.mac VoiceWakeEnabled -bool false
defaults write com.clawdbot.mac TalkModeEnabled -bool false

2. CodeTokenizer crash (after connecting to gateway)

After applying the VoiceWake workaround, the app connects to the gateway successfully but then crashes on NSBundle.module / CodeTokenizer.init() with _assertionFailure.

Stack trace:

_assertionFailure(_:_:file:line:flags:)
closure #1 in variable initialization expression of static NSBundle.module
one-time initialization function for module
CodeTokenizer.init()
HighlightedTextFragment.Model.tokenize(content:languageHint:)

Expected behavior

The app should:

  1. Gracefully handle missing microphone instead of crashing
  2. Not crash on CodeTokenizer initialization

Notes

  • Gateway works correctly (Telegram + webchat are functional)
  • The Mac mini is used as a headless server without audio input devices

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions