FluidVoice icon indicating copy to clipboard operation
FluidVoice copied to clipboard

[🐞 BUG]

Open deleon626 opened this issue 7 months ago • 2 comments

Describe the bug FluidVoice crashes with a fatal EXC_BREAKPOINT (Swift force-unwrap of nil String) immediately after every transcription when the target app is a terminal running tmux (cmux). The crash occurs on the TypingService.PasteboardRestore dispatch queue during the clipboard restore step of Reliable Paste mode. The app crashes 100% of the time when dictating into a terminal — it has never succeeded.

After the first crash, relaunching and attempting another transcription crashes again within seconds. The only recovery is to restart the app multiple times.

To Reproduce

  1. Open a terminal app with tmux running (frontmost process: cmux)
  2. Focus a text input inside the tmux session
  3. Trigger a dictation with FluidVoice (press hotkey, speak, release)
  4. Wait for transcription to complete
  5. App crashes immediately after "Restore focus" step — before text is inserted

Expected behavior Transcribed text should be inserted into the focused terminal/tmux pane without the app crashing.

Screenshots N/A — app crashes before any visible output.

Environment:

  • macOS Version: macOS 26.4.1 (Build 25E253)
  • App Version: 1.5.12 (Build 10)
  • Architecture: Apple Silicon (M1 — MacBookPro17,1)
  • Text Insertion Mode: Reliable Paste (default)

Additional context

Debug log immediately before crash:

[20:37:57.138] Transcription completed: 'Check check one two three check check check' (confidence: 0.96)
[20:37:57.178] [ClipboardService] Copied 43 characters to clipboard
[20:37:57.178] [ContentView] Typing decision → frontmost: cmux, fluidFrontmost: false, editorFocused: true, willTypeExternally: true
[20:37:57.231] [ContentView] Restore focus -> appActivated: true, elementFocusRestored: true, targetPID: 854
[CRASH] Fatal signal SIGTRAP

The crash is a Swift brk #1 trap (force-unwrap of nil) in the TypingService.PasteboardRestore queue — specifically a nil String being unwrapped when restoring the original clipboard content. Register x11 at crash time contains type metadata for String, confirming a nil String force-unwrap.

The same three FluidVoice stack frames appear in every crash across 10+ reports going back to April 20:

FluidVoice +1180896  ← brk #1 (nil force-unwrap)
FluidVoice +1178872
FluidVoice +1054732
  _dispatch_call_block_and_release
  _dispatch_client_callout
  _dispatch_lane_serial_drain
  ...
  _pthread_wqthread

Terminals (cmux/tmux) have limited Accessibility API support. It appears the Reliable Paste mode saves clipboard state, but when the target app is a terminal, reading back the original clipboard content returns nil — causing the force-unwrap to crash rather than gracefully fall through to a fallback. Switching TextInsertionMode via defaults write has no effect as the app overwrites it on launch.

Crash Logs

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001045544e0
Termination: SIGNAL 5 Trace/BPT trap: 5

Faulting Thread: TypingService.PasteboardRestore
ESR: 0xf2000001 "(Breakpoint) brk 1"

Thread (triggered) — TypingService.PasteboardRestore:
  FluidVoice         0x00000001045544e0  +1180896
  FluidVoice         0x000000010454ce38  +1178872
  FluidVoice         0x00000001043f018c  +1054732
  libdispatch.dylib  _dispatch_call_block_and_release + 32
  libdispatch.dylib  _dispatch_client_callout + 16
  libdispatch.dylib  _dispatch_lane_serial_drain + 740
  libdispatch.dylib  _dispatch_lane_invoke + 392
  libdispatch.dylib  _dispatch_root_queue_drain_deferred_wlh + 284
  libdispatch.dylib  _dispatch_workloop_worker_thread + 720
  libsystem_pthread  _pthread_wqthread + 292
  libsystem_pthread  start_wqthread + 8

x11: type metadata for String  ← nil String at restore time
x16: swift_bridgeObjectRelease

Incident IDs for cross-reference: 736C170A-8322-4D89-BB7E-2F3A7599F591, 607CDF85-C0FD-4686-847D-68BBAE0F22BE, B7A88F9D-84F3-4BA5-8E0D-8AC216D5E321 (10+ total across multiple days). Describe the bug FluidVoice crashes with a fatal EXC_BREAKPOINT (Swift force-unwrap of nil String) immediately after every transcription when the target app is a terminal running tmux (cmux). The crash occurs on the TypingService.PasteboardRestore dispatch queue during the clipboard restore step of Reliable Paste mode. The app crashes 100% of the time when dictating into a terminal — it has never succeeded.

After the first crash, relaunching and attempting another transcription crashes again within seconds. The only recovery is to restart the app multiple times.

To Reproduce

  1. Open a terminal app with tmux running (frontmost process: cmux)
  2. Focus a text input inside the tmux session
  3. Trigger a dictation with FluidVoice (press hotkey, speak, release)
  4. Wait for transcription to complete
  5. App crashes immediately after "Restore focus" step — before text is inserted

Expected behavior Transcribed text should be inserted into the focused terminal/tmux pane without the app crashing.

Screenshots N/A — app crashes before any visible output.

Environment:

  • macOS Version: macOS 26.4.1 (Build 25E253)
  • App Version: 1.5.12 (Build 10)
  • Architecture: Apple Silicon (M1 — MacBookPro17,1)
  • Text Insertion Mode: Reliable Paste (default)

Additional context

Debug log immediately before crash:

[20:37:57.138] Transcription completed: 'Check check one two three check check check' (confidence: 0.96)
[20:37:57.178] [ClipboardService] Copied 43 characters to clipboard
[20:37:57.178] [ContentView] Typing decision → frontmost: cmux, fluidFrontmost: false, editorFocused: true, willTypeExternally: true
[20:37:57.231] [ContentView] Restore focus -> appActivated: true, elementFocusRestored: true, targetPID: 854
[CRASH] Fatal signal SIGTRAP

The crash is a Swift brk #1 trap (force-unwrap of nil) in the TypingService.PasteboardRestore queue — specifically a nil String being unwrapped when restoring the original clipboard content. Register x11 at crash time contains type metadata for String, confirming a nil String force-unwrap.

The same three FluidVoice stack frames appear in every crash across 10+ reports going back to April 20:

FluidVoice +1180896  ← brk #1 (nil force-unwrap)
FluidVoice +1178872
FluidVoice +1054732
  _dispatch_call_block_and_release
  _dispatch_client_callout
  _dispatch_lane_serial_drain
  ...
  _pthread_wqthread

Terminals (cmux/tmux) have limited Accessibility API support. It appears the Reliable Paste mode saves clipboard state, but when the target app is a terminal, reading back the original clipboard content returns nil — causing the force-unwrap to crash rather than gracefully fall through to a fallback. Switching TextInsertionMode via defaults write has no effect as the app overwrites it on launch.

Crash Logs

Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000001045544e0
Termination: SIGNAL 5 Trace/BPT trap: 5

Faulting Thread: TypingService.PasteboardRestore
ESR: 0xf2000001 "(Breakpoint) brk 1"

Thread (triggered) — TypingService.PasteboardRestore:
  FluidVoice         0x00000001045544e0  +1180896
  FluidVoice         0x000000010454ce38  +1178872
  FluidVoice         0x00000001043f018c  +1054732
  libdispatch.dylib  _dispatch_call_block_and_release + 32
  libdispatch.dylib  _dispatch_client_callout + 16
  libdispatch.dylib  _dispatch_lane_serial_drain + 740
  libdispatch.dylib  _dispatch_lane_invoke + 392
  libdispatch.dylib  _dispatch_root_queue_drain_deferred_wlh + 284
  libdispatch.dylib  _dispatch_workloop_worker_thread + 720
  libsystem_pthread  _pthread_wqthread + 292
  libsystem_pthread  start_wqthread + 8

x11: type metadata for String  ← nil String at restore time
x16: swift_bridgeObjectRelease

Incident IDs for cross-reference: 736C170A-8322-4D89-BB7E-2F3A7599F591, 607CDF85-C0FD-4686-847D-68BBAE0F22BE, B7A88F9D-84F3-4BA5-8E0D-8AC216D5E321 (10+ total across multiple days).

deleon626 avatar Apr 26 '26 14:04 deleon626

I am not able to repro it unfortunately. works well on my iterm + tmux and dictation. Will wait for you to try 1.5.13 :)

Image

altic-dev avatar May 02 '26 10:05 altic-dev

stale issue - closing for now.

altic-dev avatar Jun 11 '26 07:06 altic-dev