Skip to content

[Bug]: Broken Desktop Audio Capture #49607

Closed
Closed

Description

@Bug-Reaper

Preflight Checklist

Electron Version

40.1.0

What operating system(s) are you using?

macOS

Operating System Version

macOS Sequoia 15.2

What arch are you using?

arm64 (including Apple Silicon)

Last Known Working Electron version

35.1.2 v39.0.0-beta.3

Does the issue also appear in Chromium / Google Chrome?

No

Expected Behavior

Previously, I had used a 0px by 0px screen-capture to achieve Desktop Audio Capture on MacOS with electron. This was a two-step process (code below).

I expected this working code to continue working on upgrade from electron 35.1.2 > 40.1.0

Step 1: [NodeJS Init]
app.whenReady().then( async () => {
//...
  session.defaultSession.setDisplayMediaRequestHandler((request, callback) => {
    desktopCapturer.getSources({ types: ['screen'] }).then((sources) => {
      // Grant access to the first screen found.
      callback({ video: sources[0], audio: 'loopback' })
    })
  })
//...
}
Step 2: [ClientSide Access]
//...
  this.tryScreenAudio=()=>{
    navigator.mediaDevices.getDisplayMedia({
      audio: true,
      video: {
        width: 0,
        height: 0,
        frameRate: 1
      }
    }).then(function(stream) {
	let music = this.context.createMediaStreamSource(stream);
	if(this.inputNode){this.inputNode.disconnect(this.anal)}
	music.connect(this.anal)
	this.inputNode=music;
	this.inputDevice = "DESKTOP AUDIO";
    }.bind(this))
  }
//...

Actual Behavior

Major Bug

I can still get a desktop-capture stream after upgrade to 40.1.0. However the stream does not capture audio anymore and instead contains an audio-stream of silence. No errors are omitted, the stream can be confirmed to be playing, the audio analyzer node shows silence.

Since my app is an electron based three.js music-visualizer, this is a critical issue for my business.

Tangential New Issue

Upon update got an error in NodeJS world: [9982:0130/175946.872027:ERROR:third_party/blink/renderer/platform/video_capture/video_capture_impl.cc:598] Can't wrap SharedImage as VideoFrame. It seems we can no-longer start a 0px by 0px video stream. It'd be perhaps nice if there was some escape hatch to not immediately wrap a video stream as GPU texture to avoid this error?

This error has a pretty easy work-around, was able to simply do a 4px X 4px capture and all errors vanished:

Workaround Configuration
//...
  navigator.mediaDevices.getDisplayMedia({
    audio: true,
    video: {
      width: 4,
      height: 4,
      frameRate: 1
    }
  })
//...

Testcase Gist URL

https://gist.github.com/0abf89274d749b1da0ee8f96aafca67a

Additional Information

Linked is a gist which demonstrates the issue:

  1. The nodejs setup for a desktop-capture stream.
  2. Minimal page to display the frequency bin volumes of an audio analyzer.
  3. The clientside setup to start a 4px X 4px Desktop Capture stream. This stream is connected to an audio-analyzer and the page is updated to show frequency bin volume data via basic requestAnimationFrame loop.

Conveniently, if you run this fiddle with electron 35.1.2 it works fine and if you run it with electron 40.1.0 you can see the desktop audio stream is broken (insert joke about silent failure). Here is a video where I run the fiddle on both electron versions (YouTube Link b/c vid too large for GitHub embed):
Watch the video

Debug Notes:

  • When you run the fiddle, macOS will prompt you to give desktop video & audio capture permission to the Electron-Fiddle application. After granting the permissions, it'll prompt you to restart the Electron Fiddle application so the new permissions can take effect.
  • Probably obvious but don't forget to actually have some audio playing during your test. Since it is desktop-capture the audio can be playing from any application.

Relevant macOS desktop audio historical note:

  • For a long time, desktop-audio capture was not possible on macOS due to OS Limitation. You may encounter outdated sources which erroneously claim this but in macOS 13 Ventura Apple introduced methods to properly capture Desktop Audio (w/o signed kernel extension). Major applications like OBS also cite this introduced capability of being able to achieve desktop audio via desktop capture with macOS 13 Ventura and onward.

Appreciate your consideration and assistance, put a lot of work into serving this information up in a cohesive way and feel free to reach out with questions. I'll continue to add additional information I discover to this issue. Sorry to drop an issue over the weekend!

Activity

  1. added theissue type on Jan 31, 2026
  2. added
    has-repro-gist
    on Jan 31, 2026
  3. moved this to 👀 Unsorted Items in 40-x-yon Jan 31, 2026
  4. Bug-Reaper commented on Feb 1, 2026

    @Bug-Reaper
    ContributorAuthor

    Did a more proper back-test today

    Desktop stream audio capture:
    ✅ : works fine in 38.8.0
    ❌ : is broken in 39.0.0.

    Further tests and the last true version where desktop audio capture worked was v39.0.0-beta3.

    Looking back on the release notes of v39.0.0-beta4 I don't see any standout suspect. I may start digging into the code-changes or pin to v39.0.0-beta3 until I hear back from maintainers.

  5. Bug-Reaper commented on Feb 1, 2026

    @Bug-Reaper
    ContributorAuthor

    I reviewed code changes in identified version jump where bug appears v39.0.0-beta.3...v39.0.0-beta.4.

    I think bug maybe introduced in this change which adjusts DesktopCapture to prefer a generic capturer to fix an issue on Linux with pipewire. My suspicion is that change results in the unwanted side-effect which causes DesktopCapturer to not capture audio on macOS.

    If so, I think a simple adjustment to this patch file with some OS-flag based conditional could easily fix this bug. I have an updated patch file to test but my attempts to install the build tools have not been fruitful.

    My e init ... command died after like 6 hrs

    `e init` Error Crash
    <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)>
    Retrying in 20 s ...
    Downloading https://commondatastorage.googleapis.com/chromium-browser-clang/Linux_x64/clang-llvmorg-23-init-484-gf646b915-1.tar.xz
    <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)>
    Failed to download prebuilt clang package clang-llvmorg-23-init-484-gf646b915-1.tar.xz
    Use build.py if you want to build locally.
    Exiting.
    

    Will hopefully try again tomorrow. I've been using electron for so many years now and it'd be great to be able to upstream fixes more actively 🤞

  6. nikwen commented on Feb 1, 2026

    @nikwen
    Member

    Thanks for debugging and describing the issue in so much detail!

    The patch that you linked to was last changed during #48307, which is in the range you mentioned.

    The patch being updated likely means that something changed upstream in Chromium that required us to change the patch that we have for it. Thus, it might also be worth to grep the upstream Chromium changes from that PR for any changes related to that part of the code.

    Appreciate you looking into this. We are always happy about PRs. :)

    The e init error is weird. It definitely shouldn't take 6 hours to fail. Do you have any local certs installed that might be causing this?

  7. Bug-Reaper commented on Feb 1, 2026

    @Bug-Reaper
    ContributorAuthor

    Per Feedback

    Glad to assist and thank you for the additional insight!

    After a better review today I am less suspect of this specific patch file. Looks unlikely it's introducing the bug here downstream.

    Is possible to build electron with arbitrary minor chromium versions to narrow in the range upstream? That'd be convenient but I'm unsure if the patch-ed nature of this build allows for it.

    Have started to dig into the upstream chromium changes a bit. Lots of stuff, hard to tell what may be relevant. I'm also looking into exactly the way electron desktopCapturer binds to chromium features. Ideally I'd like to narrow down exactly what upstream .c/.h files are interacted with so I can focus in on changes to those specific files upstream.

    Ongoing build tool battle

    Resolved my cert issue by refreshing the python managed certificates:
    /Applications/Python\ 3.11/Install\ Certificates.command

    It seems like the first run of notgomma also stalls out the init (the very first time). Was prompted to give notgomma github access permissions which I did but the init execution never continued. Subsequent run had an interactive notgomma permission link and continued running after I followed it.

    Log where notgomma stalled (first run)
    dential-helper-darwin-arm64.tar.gz" into /Users/llama/.electron_build_tools/third_party/reclient.tar.gz
    [===================================================================================] 10.69MB/s 100% 0.0s
    Running "/Users/llama/.electron_build_tools/third_party/reclient/electron-rbe-credential-helper login"
    Please visit https://auth.notgoma.com/rbe/<REDACTED> to obtain RBE **authentication...**
    

    Thanks!

    Appreciate you looking into this. We are always happy about PRs. :)

    Awesome! I really appreciate the welcome atmosphere! If the stars align for me this week perhaps maybe I can get a CL and PR

  8. Bug-Reaper commented on Feb 2, 2026

    @Bug-Reaper
    ContributorAuthor

    Of potential interest this cl. Occurs in the target range and deals with how edge-cases for audio-streams are handled on macOS.

    If my e init ... completes by tomorrow I'll be able to do some cool chromium X electron black magic to test further.

    Image
  9. nikwen commented on Feb 2, 2026

    @nikwen
    Member

    Is possible to build electron with arbitrary minor chromium versions to narrow in the range upstream?

    It's hard to do arbitrary Chromium versions because we patch Chromium. Then you'll need to adjust the patches every time you change the Chromium version. Not impossible, but harder than the alternatives.

    If you don't know it yet, https://source.chromium.org is the best way to navigate the Chromium source code.

    You can then use the "History" tab at the bottom to view changes to each file (or to whole directories).

    If you want to see which commit caused this issue, you can revert any commits made to these directories individually in your /path/to/electron/src directory.

    Image Image
  10. Bug-Reaper commented on Feb 2, 2026

    @Bug-Reaper
    ContributorAuthor

    Not impossible, but harder than the alternatives.

    Yea that makes total sense. On the topic of simpler alternatives, had good idea to enable chromium loggin via:

    app.commandLine.appendSwitch('enable-logging');
    app.commandLine.appendSwitch('v', '1');

    and my initial tests have yielded some promising leads. Like here where we see CatapAudioInputStream failing to handle loopback.

    [39940:0202/162733.038664:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] CatapAudioInputStream::CatapAudioInputStream({device_id=loopback}, {default_device=[BuiltInSpeakerDevice]}, {params=[format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 960, effects: NONE, mic_positions: , latency_tag: LatencyUnknown]}) [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39940:0202/162733.038673:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AMB::MakeAudioInputStream => (number of streams=1) [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39940:0202/162733.038680:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] CatapAudioInputStream::Open => deviceId: loopback [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39940:0202/162733.038690:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] CatapAudioInputStream::Open => Error when probing audio tap permissions. [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39940:0202/162733.038698:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] CatapAudioInputStream::Close => deviceId: loopback [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39940:0202/162733.038712:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] CatapAudioInputStream::Stop [id=FD338407CBF72157BFEA0E9F4497D30C]

    Log Comparison Working vs Broken Version

    The logs trails for both have perfect parity in a lot of successful setup for Desktop Audio Capture then diverge like so:

    When we start local audio device for our desktop audio capture stream.

    In 39.0.0-beta.3:

    webrtc_logging.cc:35] MSS::SetAudioProcessingProperties({echo_cancellation=disabled}, {auto_gain_control=0}, {noise_supression=0}, {voice_isolation=0})
    mac/audio_loopback_input_mac_impl.mm:195] Capturing display with ID 1 and resolution 1728x1117
    webrtc_logging.cc:35] UMP::OnTrackStarted({session_id=19A447E0BC0B33DC40149EC8631854E2}, {result=OK})
    webrtc_logging.cc:35] UMP::OnCreateNativeTracksCompleted({request_id=0}, {label=0159abbf-c859-4361-b0ae-ccac05df1d48})
    webrtc_logging.cc:35] UMP::GetUserMediaRequestSucceeded({request_id=0})
    webrtc_logging.cc:35] UMP::DelayedGetUserMediaRequestSucceeded({request_id=0}, {result=OK})
    webrtc_logging.cc:35] MST::MediaStreamTrackImpl() [kind: audio, id: 02f4882a-ee64-4951-927c-dc27669db9cb, label: System audio, enabled: true, muted: false, readyState: live, remote=false]
    webrtc_logging.cc:35] MSAT::AddSink() [this=0x13C01020A00]
    webrtc_logging.cc:35] MSAD::AddConsumer => (number of consumer: active=0, pending=1) [this=0x13C01020A18]
    

    In 39.0.0-beta.4

    webrtc_logging.cc:35] MSS::SetAudioProcessingProperties({echo_cancellation=disabled}, {auto_gain_control=0}, {noise_supression=0}, {voice_isolation=0})
    media_stream_manager.cc:1555] SF::CreateInputStream(device_id=loopback, params=[format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 960, effects: NONE, mic_positions: , latency_tag: LatencyUnknown])
    webrtc_logging.cc:35] LocalMediaStreamAudioSource::OnCaptureError: 1, Unable to open due to failing an OS Permissions check.
    media_stream_manager.cc:1555] SF::GetNewReferenceSignalProvider()
    webrtc_logging.cc:35] MSAS::StopSourceOnError({why=Unable to open due to failing an OS Permissions check.}) [this=0x11401329880]
    media_stream_manager.cc:1555] SF::GetNewReferenceSignalProvider: No config!
    media_stream_manager.cc:1555] AISW::InputSyncWriter({shared_memory_segment_count=10}, {params=format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 960, effects: NONE, mic_positions: , latency_tag: LatencyUnknown}) [this=0x10C001558C0]
    webrtc_logging.cc:35] MSAS::DoStopSource() [this=0x11401329880]
    media_stream_manager.cc:1555] AISW::InputSyncWriter => (shared_memory_segment_size=[7728], audio_bus_memory_size=[7680]) [this=0x10C001558C0]
    media_stream_manager.cc:1555] audio::IS::Ctor({device_id=loopback}, {params=[format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 960, effects: NONE, mic_positions: , latency_tag: LatencyUnknown]}, {enable_agc=0}) [id=FD338407CBF72157BFEA0E9F4497D30C]
    local_media_stream_audio_source.cc:115] Stopped local audio input device (session_id=(D6274A471EADD4B298E68568B8B91944)) with audio parameters={format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 960, effects: NONE, mic_positions: , latency_tag: LatencyUnknown}.
    webrtc_logging.cc:35] UMP::OnLocalSourceStopped({session_id=D6274A471EADD4B298E68568B8B91944})
    webrtc_logging.cc:35] UMP::RemoveLocalSource({id=loopback}, {name=System audio}, {group_id=})
    webrtc_logging.cc:35] UMP::OnTrackStarted({session_id=D6274A471EADD4B298E68568B8B91944}, {result=PERMISSION_DENIED_BY_SYSTEM})
    
    Logs (Director's Cut)

    Success (v39.0.0-beta.3)

    [43053:0202/171828.367502:VERBOSE1:third_party/blink/renderer/modules/mediastream/local_media_stream_audio_source.cc:93] Starting local audio input device (session_id=(19A447E0BC0B33DC40149EC8631854E2)) with audio parameters={format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 480, effects: NONE, mic_positions: , latency_tag: LatencyUnknown}.
    [43053:0202/171828.367543:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAT::SetEnabled({enabled=true}) [this=0x13C01020A00]
    [43053:0202/171828.367546:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAT::Start() [this=0x13C01020A00]
    [43053:0202/171828.367549:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAD::AddConsumer => (number of consumer: active=0, pending=1) [this=0x13C01318FA8]
    [43053:0202/171828.367552:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAS::ConnectToInitializedTrack => (added new MediaStreamAudioTrack as consumer, total number of consumers=1) [this=0x13C01318E80]
    [43053:0202/171828.367555:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSS::SetAudioProcessingProperties({echo_cancellation=disabled}, {auto_gain_control=0}, {noise_supression=0}, {voice_isolation=0})
    [43055:0202/171828.403053:VERBOSE1:media/audio/mac/audio_loopback_input_mac_impl.mm:195] Capturing display with ID 1 and resolution 1728x1117
    [43053:0202/171828.404413:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] UMP::OnTrackStarted({session_id=19A447E0BC0B33DC40149EC8631854E2}, {result=OK})
    [43053:0202/171828.404432:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] UMP::OnCreateNativeTracksCompleted({request_id=0}, {label=0159abbf-c859-4361-b0ae-ccac05df1d48})
    [43053:0202/171828.404435:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] UMP::GetUserMediaRequestSucceeded({request_id=0})
    [43053:0202/171828.404444:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] UMP::DelayedGetUserMediaRequestSucceeded({request_id=0}, {result=OK})
    [43053:0202/171828.404529:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MST::MediaStreamTrackImpl() [kind: audio, id: 02f4882a-ee64-4951-927c-dc27669db9cb, label: System audio, enabled: true, muted: false, readyState: live, remote=false]
    [43053:0202/171828.404839:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAT::AddSink() [this=0x13C01020A00]
    [43053:0202/171828.404847:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAD::AddConsumer => (number of consumer: active=0, pending=1) [this=0x13C01020A18]
    [43053:0202/171828.404858:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]AH::AudioHandler ({sample_rate=44100}) [type=MediaStreamAudioSourceNode, this=0x13C00466000]
    [43053:0202/171828.404861:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]MSASH::MediaStreamAudioSourceHandler  [this=0x13C00466000]
    [43053:0202/171828.404876:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]MSASN::MediaStreamAudioSourceNode ({audio_track=[kind: audio, id: 02f4882a-ee64-4951-927c-dc27669db9cb, label: System audio, enabled: 1, muted: 0]}, {handler=0x13C00466000}, [this=0x10C00539E90])
    [43053:0202/171828.404881:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]MSASH::SetFormat ({number_of_channels=2}, {source_sample_rate=44100}) [this=0x13C00466000]
    [43053:0202/171828.404978:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]AN::connect ({output=[index:0, type:MediaStreamAudioSourceNode, handler:0x13C00466000]} --> {input=[index:0, type:AnalyserNode, handler:0x13C0016F500]})
    [43053:0202/171828.409563:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]MSASH::Process ({number_of_frames=128}) [this=0x13C00466000]
    [43053:0202/171828.409575:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]MSASH::Process => (audio source is now alive and audio frames are sent to the output) [this=0x13C00466000]
    [43053:0202/171828.409580:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]AH::ProcessIfNecessary => (processing is alive [frames=128]) [type=MediaStreamAudioSourceNode, this=0x13C00466000]
    [43053:0202/171828.409591:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]AH::ProcessIfNecessary => (processing is alive [frames=128]) [type=AnalyserNode, this=0x13C0016F500]
    [43053:0202/171828.409623:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]AD::SetDetectSilence ({detect_silence=0}) [state=running]
    [43053:0202/171828.409629:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]RWADI::SetDetectSilence({enable_silence_detection=false})
    [43045:0202/171828.451703:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] SF::CreateInputStream(device_id=loopback, params=[format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 480, effects: NONE, mic_positions: , latency_tag: LatencyUnknown])
    [43045:0202/171828.451733:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] SF::GetNewReferenceSignalProvider()
    [43045:0202/171828.451752:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] SF::GetNewReferenceSignalProvider: No config!
    [43045:0202/171828.451760:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AISW::InputSyncWriter({shared_memory_segment_count=10}, {params=format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 480, effects: NONE, mic_positions: , latency_tag: LatencyUnknown}) [this=0x13C001558C0]
    [43045:0202/171828.451768:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AISW::InputSyncWriter => (shared_memory_segment_size=[3888], audio_bus_memory_size=[3840]) [this=0x13C001558C0]
    [43045:0202/171828.451773:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] audio::IS::Ctor({device_id=loopback}, {params=[format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 480, effects: NONE, mic_positions: , latency_tag: LatencyUnknown]}, {enable_agc=0}) [id=4F6AB53E07F0F388294AEB247286A898]
    [43045:0202/171828.451800:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AIC::InputController => (delay reporter uses NoAudioServiceAEC as AEC type) [id=4F6AB53E07F0F388294AEB247286A898]
    [43045:0202/171828.451806:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AIC::MaybeSetUpAudioProcessing({processing_config=[nullptr]}, {processing_output_params=[format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 480, effects: NONE, mic_positions: , latency_tag: LatencyUnknown]}, {device_params=[format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 480, effects: NONE, mic_positions: , latency_tag: LatencyUnknown]}) [id=4F6AB53E07F0F388294AEB247286A898]
    [43045:0202/171828.451822:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AIC::MaybeSetUpAudioProcessing => (WARNING: undefined audio processing config) [id=4F6AB53E07F0F388294AEB247286A898]
    [43045:0202/171828.451836:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AIC::DoCreate({device_id=loopback}) [id=4F6AB53E07F0F388294AEB247286A898]
    [43045:0202/171828.451845:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AMB::MakeAudioInputStream({device_id=loopback}, {params=[format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 480, effects: NONE, mic_positions: , latency_tag: LatencyUnknown]}) [id=4F6AB53E07F0F388294AEB247286A898]
    [43045:0202/171828.451852:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AMB::MakeAudioInputStream => (number of streams=1) [id=4F6AB53E07F0F388294AEB247286A898]
    [43045:0202/171828.451858:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AIC::DoCreate => (power_measurement_is_enabled=0) [id=4F6AB53E07F0F388294AEB247286A898]
    [43045:0202/171828.451865:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] audio::IS::OnCreated({muted=false}) [id=4F6AB53E07F0F388294AEB247286A898]
    [43045:0202/171828.452051:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] audio::IS::Record() [id=4F6AB53E07F0F388294AEB247286A898]
    [43045:0202/171828.452067:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AIC::Record [id=4F6AB53E07F0F388294AEB247286A898]
    [43045:0202/171828.617095:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AIC::ReportIsAlive => (stream is alive) [id=4F6AB53E07F0F388294AEB247286A898]
    [43053:0202/171828.617103:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAT::OnSetFormat({params: [format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 480, effects: NONE, mic_positions: , latency_tag: LatencyUnknown]}) [this=0x13C01020A00]
    [43045:0202/171828.617116:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AISW::CheckTimeSinceLastWrite => (audio input data received for the first time: delay=249 ms) [this=0x13C001558C0]
    [43053:0202/171828.617116:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAD::OnSetFormat({params=[format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 480, effects: NONE, mic_positions: , latency_tag: LatencyUnknown]}) [this=0x13C01020A18]
    [43053:0202/171828.617123:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAD::OnData => (number of active consumers=1) [this=0x13C01318FA8]
    [43053:0202/171828.617126:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAT::OnData() => (audio track is alive)) [this=0x13C01020A00]
    [43053:0202/171828.617243:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAD::OnData => (number of active consumers=1) [this=0x13C01020A18]
    [43045:0202/171833.097491:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::WedgeCheck => (stream is alive) [this=0x13C000D41A8]
    

    Fail (v39.0.0-beta4)

    [39943:0202/162732.998792:VERBOSE1:third_party/blink/renderer/modules/mediastream/local_media_stream_audio_source.cc:93] Starting local audio input device (session_id=(D6274A471EADD4B298E68568B8B91944)) with audio parameters={format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 960, effects: NONE, mic_positions: , latency_tag: LatencyUnknown}.
    [39943:0202/162732.999025:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAT::SetEnabled({enabled=true}) [this=0x11401010780]
    [39943:0202/162732.999029:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAT::Start() [this=0x11401010780]
    [39943:0202/162732.999032:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAD::AddConsumer => (number of consumer: active=0, pending=1) [this=0x114013299A8]
    [39943:0202/162732.999035:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAS::ConnectToInitializedTrack => (added new MediaStreamAudioTrack as consumer, total number of consumers=1) [this=0x11401329880]
    [39943:0202/162732.999038:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSS::SetAudioProcessingProperties({echo_cancellation=disabled}, {auto_gain_control=0}, {noise_supression=0}, {voice_isolation=0})
    [39940:0202/162733.038421:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] SF::CreateInputStream(device_id=loopback, params=[format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 960, effects: NONE, mic_positions: , latency_tag: LatencyUnknown])
    [39943:0202/162733.038436:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] LocalMediaStreamAudioSource::OnCaptureError: 1, Unable to open due to failing an OS Permissions check.
    [39940:0202/162733.038443:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] SF::GetNewReferenceSignalProvider()
    [39943:0202/162733.038453:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAS::StopSourceOnError({why=Unable to open due to failing an OS Permissions check.}) [this=0x11401329880]
    [39940:0202/162733.038463:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] SF::GetNewReferenceSignalProvider: No config!
    [39940:0202/162733.038471:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AISW::InputSyncWriter({shared_memory_segment_count=10}, {params=format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 960, effects: NONE, mic_positions: , latency_tag: LatencyUnknown}) [this=0x10C001558C0]
    [39943:0202/162733.038472:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAS::DoStopSource() [this=0x11401329880]
    [39940:0202/162733.038478:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AISW::InputSyncWriter => (shared_memory_segment_size=[7728], audio_bus_memory_size=[7680]) [this=0x10C001558C0]
    [39940:0202/162733.038486:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] audio::IS::Ctor({device_id=loopback}, {params=[format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 960, effects: NONE, mic_positions: , latency_tag: LatencyUnknown]}, {enable_agc=0}) [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39943:0202/162733.038490:VERBOSE1:third_party/blink/renderer/modules/mediastream/local_media_stream_audio_source.cc:115] Stopped local audio input device (session_id=(D6274A471EADD4B298E68568B8B91944)) with audio parameters={format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 960, effects: NONE, mic_positions: , latency_tag: LatencyUnknown}.
    [39943:0202/162733.038498:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] UMP::OnLocalSourceStopped({session_id=D6274A471EADD4B298E68568B8B91944})
    [39943:0202/162733.038502:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] UMP::RemoveLocalSource({id=loopback}, {name=System audio}, {group_id=})
    [39943:0202/162733.038508:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] UMP::OnTrackStarted({session_id=D6274A471EADD4B298E68568B8B91944}, {result=PERMISSION_DENIED_BY_SYSTEM})
    [39943:0202/162733.038514:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] UMP::OnCreateNativeTracksCompleted({request_id=0}, {label=b1cba43c-4f11-47e5-a707-ce707d27248f})
    [39940:0202/162733.038514:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AIC::InputController => (delay reporter uses NoAudioServiceAEC as AEC type) [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39943:0202/162733.038516:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] UMP::GetUserMediaRequestSucceeded({request_id=0})
    [39940:0202/162733.038525:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AIC::MaybeSetUpAudioProcessing({processing_config=[nullptr]}, {processing_output_params=[format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 960, effects: NONE, mic_positions: , latency_tag: LatencyUnknown]}, {device_params=[format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 960, effects: NONE, mic_positions: , latency_tag: LatencyUnknown]}) [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39943:0202/162733.038534:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSS::SetReadyState({id=loopback}, {ready_state=Ended})
    [39940:0202/162733.038534:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AIC::MaybeSetUpAudioProcessing => (WARNING: undefined audio processing config) [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39943:0202/162733.038543:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] UMP::DelayedGetUserMediaRequestSucceeded({request_id=0}, {result=OK})
    [39940:0202/162733.038545:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AIC::DoCreate({device_id=loopback}) [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39940:0202/162733.038558:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] MSM::StopStreamDevice({render_process_id=4}, {render_frame_id=1}, {requester_id=0}, {device_id=loopback}, {session_id=D6274A471EADD4B298E68568B8B91944})
    [39940:0202/162733.038561:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] MSM::StopDevice({type=DISPLAY_AUDIO_CAPTURE}, {session_id=D6274A471EADD4B298E68568B8B91944})
    [39940:0202/162733.038564:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] MSM::CloseDevice({type=DISPLAY_AUDIO_CAPTURE}, {session_id=D6274A471EADD4B298E68568B8B91944})
    [39943:0202/162733.038565:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MST::MediaStreamTrackImpl() [kind: audio, id: 6a357fd7-8faa-4c66-ba4b-c8860da16f22, label: System audio, enabled: true, muted: false, readyState: ended, remote=false]
    [39940:0202/162733.038567:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AIDM::Close({session_id=D6274A471EADD4B298E68568B8B91944})
    [39940:0202/162733.038573:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] MSM::DR::SetState([requester_id=0] {stream_type=DISPLAY_AUDIO_CAPTURE}, {new_state=STATE_CLOSING})
    [39940:0202/162733.038596:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] MSM::DeleteRequest([label=b1cba43c-4f11-47e5-a707-ce707d27248f])
    [39940:0202/162733.038623:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AIDM::Closed({session_id=D6274A471EADD4B298E68568B8B91944})
    [39940:0202/162733.038633:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] MSM::Closed({stream_type=DISPLAY_AUDIO_CAPTURE}, {session_id=D6274A471EADD4B298E68568B8B91944})
    [39940:0202/162733.038647:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AMB::MakeAudioInputStream({device_id=loopback}, {params=[format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 960, effects: NONE, mic_positions: , latency_tag: LatencyUnknown]}) [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39940:0202/162733.038664:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] CatapAudioInputStream::CatapAudioInputStream({device_id=loopback}, {default_device=[BuiltInSpeakerDevice]}, {params=[format: PCM_LOW_LATENCY, channel_layout: 3, channels: 2, sample_rate: 48000, frames_per_buffer: 960, effects: NONE, mic_positions: , latency_tag: LatencyUnknown]}) [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39940:0202/162733.038673:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AMB::MakeAudioInputStream => (number of streams=1) [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39940:0202/162733.038680:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] CatapAudioInputStream::Open => deviceId: loopback [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39940:0202/162733.038690:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] CatapAudioInputStream::Open => Error when probing audio tap permissions. [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39940:0202/162733.038698:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] CatapAudioInputStream::Close => deviceId: loopback [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39940:0202/162733.038712:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] CatapAudioInputStream::Stop [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39940:0202/162733.038745:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] audio::IS::OnError({error_code=STREAM_OPEN_SYSTEM_PERMISSIONS_ERROR}) [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39940:0202/162733.038757:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] audio::IS::OnStreamError() [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39943:0202/162733.038759:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAT::AddSink() [this=0x11401010780]
    [39943:0202/162733.038764:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] MSAD::AddConsumer => (number of consumer: active=0, pending=1) [this=0x11401010798]
    [39940:0202/162733.038771:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] audio::IS::Dtor() [id=FD338407CBF72157BFEA0E9F4497D30C]
    [39943:0202/162733.038778:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]AH::AudioHandler ({sample_rate=44100}) [type=MediaStreamAudioSourceNode, this=0x11400464F00]
    [39943:0202/162733.038782:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]MSASH::MediaStreamAudioSourceHandler  [this=0x11400464F00]
    [39940:0202/162733.038783:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AISW::~InputGlitchCounter => (number of detected audio glitches: 0 out of 0)  [this=0x10C000AB4B0]
    [39943:0202/162733.038806:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]MSASN::MediaStreamAudioSourceNode ({audio_track=[kind: audio, id: 6a357fd7-8faa-4c66-ba4b-c8860da16f22, label: System audio, enabled: 1, muted: 0]}, {handler=0x11400464F00}, [this=0x1040053B058])
    [39943:0202/162733.038810:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]MSASH::SetFormat ({number_of_channels=2}, {source_sample_rate=44100}) [this=0x11400464F00]
    [39943:0202/162733.038856:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]AN::connect ({output=[index:0, type:MediaStreamAudioSourceNode, handler:0x11400464F00]} --> {input=[index:0, type:AnalyserNode, handler:0x1140016F000]})
    [39943:0202/162733.042459:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]MSASH::Process ({number_of_frames=128}) [this=0x11400464F00]
    [39943:0202/162733.042472:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]MSASH::Process => (audio source is now alive and audio frames are sent to the output) [this=0x11400464F00]
    [39943:0202/162733.042476:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]AH::ProcessIfNecessary => (processing is alive [frames=128]) [type=MediaStreamAudioSourceNode, this=0x11400464F00]
    [39943:0202/162733.042490:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]AH::ProcessIfNecessary => (processing is alive [frames=128]) [type=AnalyserNode, this=0x1140016F000]
    [39943:0202/162733.042511:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]AD::SetDetectSilence ({detect_silence=0}) [state=running]
    [39943:0202/162733.042521:VERBOSE1:third_party/blink/renderer/platform/webrtc/webrtc_logging.cc:35] [WA]RWADI::SetDetectSilence({enable_silence_detection=false})
    [39940:0202/162737.720818:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::WedgeCheck => (stream is alive) [this=0x10C000D41A8]
    [39940:0202/162747.723421:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::OnMoreData => (average audio level=-inf dBFS) [this=0x10C000D41A8]
    [39940:0202/162802.723235:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::OnMoreData => (average audio level=-inf dBFS) [this=0x10C000D41A8]
    [39940:0202/162817.722965:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::OnMoreData => (average audio level=-inf dBFS) [this=0x10C000D41A8]
    [39940:0202/162832.722812:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::OnMoreData => (average audio level=-inf dBFS) [this=0x10C000D41A8]
    [39940:0202/162847.728486:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::OnMoreData => (average audio level=-inf dBFS) [this=0x10C000D41A8]
    [39940:0202/162902.728269:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::OnMoreData => (average audio level=-inf dBFS) [this=0x10C000D41A8]
    [39940:0202/162917.733727:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::OnMoreData => (average audio level=-inf dBFS) [this=0x10C000D41A8]
    [39940:0202/162932.733175:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::OnMoreData => (average audio level=-inf dBFS) [this=0x10C000D41A8]
    2026-02-02 16:29:32.837 Electron[39940:2170465] _TIPropertyValueIsValid called with 16 on nil context!
    2026-02-02 16:29:32.837 Electron[39940:2170465] imkxpc_getApplicationProperty:reply: called with incorrect property value 16, bailing.
    2026-02-02 16:29:32.837 Electron[39940:2170465] Text input context does not respond to _valueForTIProperty:
    [39940:0202/162947.733248:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::OnMoreData => (average audio level=-inf dBFS) [this=0x10C000D41A8]
    [39940:0202/163002.738891:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::OnMoreData => (average audio level=-inf dBFS) [this=0x10C000D41A8]
    [39940:0202/163017.738481:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::OnMoreData => (average audio level=-inf dBFS) [this=0x10C000D41A8]
    [39940:0202/163032.738407:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::OnMoreData => (average audio level=-inf dBFS) [this=0x10C000D41A8]
    [39940:0202/163047.738109:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::OnMoreData => (average audio level=-inf dBFS) [this=0x10C000D41A8]
    [39940:0202/163102.737951:VERBOSE1:content/browser/renderer_host/media/media_stream_manager.cc:1555] AOC::OnMoreData => (average audio level=-inf dBFS) [this=0x10C000D41A8]
    

    Of some note, we never hit audio_loopback_input_mac_impl.mm in the broken flow.

    In other good news, my e init ... finished successfully today, so hopefully next time I have something more tangible to share.

  11. 9 remaining items

  12. Bug-Reaper commented on Feb 5, 2026

    @Bug-Reaper
    ContributorAuthor

    I thought my code was the issue. I’ve been trying to fix screen recording permissions for six hours now.

    Really tricky issue because it fails silently and acts like it did succeed. @nartmadi You should be able to include this in your electron js file early on near where you import all the electron libs:

    const { app, BrowserWindow, session, desktopCapturer} = require('electron');
    app.commandLine.appendSwitch('disable-features','MacCatapLoopbackAudioForScreenShare');
    //... Your Code
  13. Bug-Reaper commented on Feb 5, 2026

    @Bug-Reaper
    ContributorAuthor

    Kind of a big turn of events. So just to summarize the current status of things. The issue is half downstream, half upstream.

    Upstream Issue

    1. Chromium decided to enable CoreAudio Tap a new API from Apple for audio capture. In fact they make it the default.
    2. Previously chromium used a different API to access system audio capture Screen & System Audio Recording.
    3. For whatever cursed reason, the new CoreAudio Tap API from Apple has no way to query the permission state.
    4. Chromium does check to see if CoreAudio Tap was successful by probing the created stream. However, there is no fallback to use the old method if it fails.
    5. CoreAudio Tap does not rely on the permissions tied to Screen & System Audio Recording and instead wants apps to add a newly introduced info.plist file entry NSAudioCaptureUsageDescription.

    So if you have a chromium app with proper permissions granted for Screen & System Audio Recording. It still tries to use the new system first and if you don't have that info.plist permission it fails and doesn't fallback to the old system you do have permission for.

    We can imagine chromium doesn't want this behavior but also let's not forget Apple made it very annoying to provide a fallback b/c you cannot query the current permission for the new API.

    Anyways all this leads to is:

    Downstream Issue(s)

    Apple kinda quietly rolled out this new api for audio capture and didn't do a good job communicating to downstream developers. Particularly impacted are tools like terminals, code-playgrounds & IDEs. These tools have user code running underneath them and thus need to have the proper info.plist entry themselves to support people developing with Apple's new audio capture API.

    A big problem is you never really need to update your app's info.plist file. You configure it once when you build your app for the first time and then never interact with it unless you're adding some new. There's a big eco-system of tools that do not have this new NSAudioCaptureUsageDescription entry in their .plist and most of them are probably not aware a change needs to occur.

    I've shot off some PRs tonight to tools where this lack of permission impacts me and development of my app. I anticipate to send off some more tomorrow.


    For electron specifically @nikwen I also plan to add some warnings about NSAudioCaptureUsageDescription similar to how we handle it in a few other places. The screenCapture page also has some doc bumps I'd like to make.

  14. nikwen commented on Feb 5, 2026

    @nikwen
    Member

    Thank you so much for finding this, @Bug-Reaper! Truly amazing work! 🙌

    Your ideas sound great. I think it would be great to also add a line to the Electron 39 release blog post.

  15. nartmadi commented on Feb 6, 2026

    @nartmadi

    Thank you, @Bug-Reaper!

  16. Bug-Reaper commented on Feb 9, 2026

    @Bug-Reaper
    ContributorAuthor

    Appreciate the assistance from maintainers all-around here. I'm close to closing this issue.

    Hope you guys had a good weekend, I got these PRs out for the electron ecosystem:

    Docs PR - Proud of this doc update - it gets the desktopCapturer documentation back up to current on the macOS side of things. Also includes that note in the Electron 39 Blog @nikwen 👍.
    Config Bump PR - Seemed sensible to bump the Info.plist here to include the new relevant permission required for Electron's desktopCapturer.

    Also of note, fiddle has been upgraded 🎉 along with some downstream fixes in VSCode & Ghostty :)

    What's Next

    After I see the docs changes merged, I plan to close the issue as resolved here.

    There's an upstream fix where chrome could either:

    • Provide fallback to old audio API if the new one fails.
    • Provide more control over which API is used so fallbacks can be implemented downstream.

    Given chromium already detects failed CoreAudio Tap API streams by default. I think I may try to CL the former in. If I don't get around to it in ~1month or so I may just put up an issue up so that upstream is aware.


    👋 I'm a solo developer with limited resources but I do love to contribute to opensource software whenever I can. If you're interested in supporting me checkout my music visualizer app SoundSafari, For $2.99 a month you can support me and you get a cool app out of it.

  17. nikwen commented on Feb 9, 2026

    @nikwen
    Member

    Thank you so much for your work on this!

    Given chromium already detects failed CoreAudio Tap API streams by default. I think I may try to CL the former in. If I don't get around to it in ~1month or so I may just put up an issue up so that upstream is aware.

    That would be awesome!

  18. Bug-Reaper commented on Feb 22, 2026

    @Bug-Reaper
    ContributorAuthor

    Docs are up to date https://www.electronjs.org/docs/latest/api/desktop-capturer 🎉

    And the PRs are merged

    Closing out this Issue, we've resolved all the downstream actionables. Still plan to follow up on this upstream on the chromium end, will edit this comment if/when I do.

    We got em on this one ✌️


    Buy me a coffee (or in this case sub to my app)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    40-x-ybug 🪲component/desktopcapturerhas-repro-gistplatform/macOS

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions