Skip to content

[BUG] FluidVoice 1.6.5 hangs when switching between a preferred microphone and AirPods #709

Closed

Description

@dain

Describe the bug

FluidVoice 1.6.5 build 16 can become completely unresponsive during audio-route recovery when I have a Shure MV7+ selected as the preferred microphone and AirPods Max connected.

This is a follow-up to #624 and #644. It appears different from the earlier AVAudioEngine deallocation deadlock: in this occurrence, the old engine was retired successfully, but the replacement engine then blocked while accessing AVAudioEngine.inputNode.

The application remained hung for approximately 3 minutes 32 seconds. Taking off my AirPods, which triggered another macOS audio-route change, caused it to recover without being force-quit.

Reproduction steps

I have only observed this exact hang once, so it may require a specific timing-dependent race and I do not yet have reliably repeatable steps.

The environment when it occurred was:

  1. A Shure MV7+ was connected directly to the Mac and selected as FluidVoice's preferred microphone.
  2. AirPods Max were connected and being used for audio output.
  3. I started a FluidVoice recording.
  4. FluidVoice reasserted the preferred Shure input, and macOS generated an audio-route change.
  5. FluidVoice entered active audio-route recovery and became completely unresponsive.

The application remained hung for approximately 3 minutes 32 seconds. Taking off my AirPods triggered another macOS audio-route change, after which FluidVoice recovered without being force-quit.

Expected behavior

FluidVoice should continue using the selected Shure microphone and remain responsive when AirPods connect, disconnect, or otherwise cause macOS to reconfigure the audio route.

If recovery is required, it should complete or fail without indefinitely blocking the application.

Actual behavior

FluidVoice became completely unresponsive while rebuilding its audio engine.

The application log stopped immediately after:

Forcing input node instantiation...

A 10-second process sample taken during the hang showed every sample of the active recovery thread blocked in:

ASRService.configureSession
-> AVAudioEngine.inputNode
-> AVAudioEngineImpl::UpdateInputNode
-> AVAudioIONodeImpl::GetInputFormat
-> AVAudioIOUnit::GetHWFormat
-> Core Audio property queries

The AVAudioEngine serial queue was simultaneously waiting in IOUnitConfigurationChanged.

After approximately 3 minutes 32 seconds, taking off the AirPods triggered another audio-route change. The blocked inputNode call then returned and FluidVoice recovered.

App Version

1.6.5 (build 16)

macOS Version

macOS 26.5.2 (25F84)

Architecture

Apple Silicon

Logs or crash report

I captured a live process sample and correlated FluidVoice/Core Audio logs while the application was hung.

Relevant timeline:

10:19:50.686  Preferred Shure microphone reasserted during recording start
10:19:50.821  Initial AVAudioEngine configuration completed
10:19:51.570  Route change detected while recording
10:19:52.005  Active route recovery began
10:19:52.011  Previous audio engine retired
10:19:52.030  Forcing input node instantiation...
               [no progress for approximately 3 minutes 32 seconds]
10:23:23.606  Input node instantiated after AirPods removal
10:23:23.729  Audio-route recovery succeeded

The compatibility AVAudioEngine backend was active:

audio_backend kind=av_audio_engine_fallback reason=experimental_disabled

At the same time, Core Audio reported a transitional device with no input or output, an error setting the device on the I/O unit, inconsistent channel-layout information, and an invalid IOProcStreamUsage property size.

The attached sanitized diagnostics bundle contains the complete process sample, focused application logs, focused Core Audio logs, and a README with analysis.

Screenshots or screen recording

fluid-hang-diagnostics-2026-07-24-1021.zip

Activity

  1. added
    bug
    on Jul 24, 2026
  2. satyanarayan95 commented on Jul 26, 2026

    @satyanarayan95

    Yes, I am also facing the same issue. In addition to this the media on the mac carshes. I mean if fluidvoice 1.6.5 is running and i am using airpods now i cant play any media be it youtube video or whatever. it plays frame by frame

  3. davemac commented on Jul 26, 2026

    @davemac

    Yep same here, it's similar to my other issue - which I am still seeing even though the issue has been closed.

  4. altic-dev commented on Jul 28, 2026

    @altic-dev
    Owner

    Hey @dain / @davemac thanks for reporting your issues. Sorry you're facing this. Can you try the temporary work around of enabling "Faster recording start" in settings and let me know if you still run into the same issues (check screenshot below for ref), the new CoreAudio flow should likely reduce the chance of a hang.

    Image
  5. altic-dev commented on Jul 28, 2026

    @altic-dev
    Owner

    @satyanarayan95 I believe what you are facing is something else, can you open a separate issue with more details if possible ?

  6. grohith327 commented on Jul 28, 2026

    @grohith327
    Collaborator

    @satyanarayan95 You might find some luck, if you change your input microphone to you macbook when airpods is connected. Airpods sometimes can go into "call mode" for bi-directional audio and this can result in muffled audio and lower quality

    Image
  7. self-assigned this
    on Jul 28, 2026
  8. adivardhan1000 commented on Jul 29, 2026

    @adivardhan1000

    Hey @dain / @davemac thanks for reporting your issues. Sorry you're facing this. Can you try the temporary work around of enabling "Faster recording start" in settings and let me know if you still run into the same issues (check screenshot below for ref), the new CoreAudio flow should likely reduce the chance of a hang.
    Image

    Default settings interferes with any media playback. I was seeing this bug where if I play something on spotify with earphones and system default audio settings - the macos volume would keep going up and down and audio break every half a second making it in-audible.

    This fix works for me. I can keep the app running in background.

  9. dain commented on Jul 29, 2026

    @dain
    Author

    @altic-dev Thanks. I checked the stored settings and logs, and I need to clarify my earlier report: neither of the two captured failures occurred while Faster Recording Start was actually active.

    Faster Recording Start was automatically disabled

    I had enabled Faster Recording Start, but FluidVoice later disabled it automatically after three direct-capture duration mismatches:

    17:35:28  capturedMs=224  elapsedMs=509
    18:24:01  capturedMs=780  elapsedMs=500
    18:31:32  capturedMs=330  elapsedMs=506
    

    Immediately after the third mismatch, subsequent recordings began reporting:

    audio_backend kind=av_audio_engine_fallback reason=experimental_disabled
    

    The current persisted values are:

    ExperimentalDirectAudioCaptureEnabled = 0
    DirectAudioCaptureConsecutiveFailures = 3
    

    I did not realize the setting had been disabled. I may have missed the transient “Faster Recording Start turned off” notification, but there was no persistent indication that the workaround was no longer active.

    Therefore, I cannot currently say whether either failure reproduces with the direct Core Audio path genuinely enabled. I can turn it back on—which should reset the failure counter—and test that separately.

    Original #709 hang

    The original occurrence was on FluidVoice 1.6.5 build 16 using the AVAudioEngine compatibility backend.

    FluidVoice completed retirement of the old engine, then blocked for approximately 3 minutes 32 seconds while creating the replacement engine:

    ASRService.configureSession
    → AVAudioEngine.inputNode
    → AVAudioEngineImpl::UpdateInputNode
    → AVAudioIONodeImpl::GetInputFormat
    → AVAudioIOUnit::GetHWFormat
    → Core Audio property query
    

    Taking off my AirPods generated another hardware-route change, after which the blocked call returned and FluidVoice recovered.

    New failure: self-triggered route-recovery loop

    I have now observed a related but non-blocking failure on the same AVAudioEngine compatibility backend.

    While I held the dictation key, the macOS microphone indicator repeatedly appeared and disappeared, FluidVoice captured no usable audio, and the audio buffer remained at exactly 1,600 samples.

    The application and Core Audio logs show this sequence:

    FluidVoice binds the AVAudioEngine input to the Shure MV7+
    → the same engine posts AVAudioEngineConfigurationChange
    → FluidVoice interprets it as an external route change
    → FluidVoice retires and rebuilds the engine
    → the replacement engine is bound to the Shure
    → the replacement posts another configuration notification
    → recovery repeats
    

    The timestamp correlation is particularly clear:

    14:38:10.265  FluidVoice asks AUHAL to change the engine device to the Shure
    14:38:10.402  That AVAudioEngine posts “iounit configuration changed”
    14:38:10.464  FluidVoice schedules route recovery for “engine configuration changed”
    14:38:10.874  Recovery starts and rebuilds the engine
    

    During the first recording there were 11 route-change notifications and 10 completed recoveries in approximately seven seconds. The recording produced no text.

    After relaunching FluidVoice, the first recording produced another 13 consecutive recovery cycles in approximately eight seconds and again produced no text. A later attempt reused an engine that was already configured for the Shure and worked normally.

    This resembles #694, but this occurrence happened during an active dictation with a manually selected Shure MV7+ and AirPods Max as the default output.

    Likely interaction

    This appears to involve two interacting failure modes:

    1. Direct Core Audio detects three duration mismatches and automatically disables Faster Recording Start.
    2. FluidVoice then remains on the AVAudioEngine compatibility backend, where an intentional input-device binding can trigger either the original hardware-format hang or a self-sustaining recovery loop.

    The recovery loop appears consistent with the current implementation: handleEngineConfigurationChanged schedules recovery for every configuration notification from the current engine, while a notification received during recovery becomes another pending recovery generation.

    Potential areas to investigate would be suppressing expected configuration notifications caused by FluidVoice’s own device binding/rebuild, checking whether the bound device or format is actually invalid before rebuilding, and adding a circuit breaker for repeated successful recoveries that produce no additional audio.

    I can provide a sanitized excerpt of the newer FluidVoice and Core Audio logs if useful. The existing ZIP attached to this issue covers the original three-minute hang, not this newer recovery loop.

  10. grohith327 commented on Jul 30, 2026

    @grohith327
    Collaborator

    Yeah, AVAudioEngine has been a pain and its been fixing one issue after another. I have a PR out #732 and this is a dmg from it. Would live it if one of you @dain / @davemac / @adivardhan1000 can take it for a spin, give me some feedback. I have enabled the core audio flow by default, i.e. the "Faster recording start" option. Thank you folks, appreciate your feedback and support.

    dmg link

  11. dain commented on Jul 30, 2026

    @dain
    Author

    Thanks! The linked DMG appears to contain an older build: it reports FluidVoice 1.6.4 build 15 and was signed on July 14, before the PR #732 commits.

    I built PR #732 locally from the current head (250f8bf) and have started testing it. My first recording with the Shure MV7+ worked correctly using the new direct Core Audio path, with no dropped packets, fallback, duration mismatch, or recovery loop. I’ll continue testing it with AirPods connect/disconnect cycles and report back if I encounter any problems.

  12. grohith327 commented on Jul 31, 2026

    @grohith327
    Collaborator

    Awesome, thanks for trying it out @dain

  13. grohith327 commented on Jul 31, 2026

    @grohith327
    Collaborator

    We just released a new version 1.6.6 which includes the changes from the PR. Please try it out and let us know if the issue persists

    @dain @satyanarayan95 @davemac @adivardhan1000

  14. added
    awaiting response
    on Jul 31, 2026
  15. dain commented on Aug 1, 2026

    @dain
    Author

    @grohith327 I used this all day today and had no issues.

  16. removed
    awaiting response
    on Aug 1, 2026
  17. grohith327 commented on Aug 1, 2026

    @grohith327
    Collaborator

    Thanks for reporting back @dain please let us know if you continue to face any other issues 🫡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions