You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: getUserMedia to get system-wide or window audio capture on Windows errors or terminates renderer #42765
The entire renderer process is instantly terminated and a message appears from the main process: [48728:0703/162757.047:ERROR:bad_message.cc(29)] Terminating renderer for bad IPC message, reason 263
Testcase Gist URL
No response
Additional Information
My end goal with part of the application is to record system audio; I do not care about video. The solution only needs to work on Windows for now.
I investigated a solution like pulseaudio2 as well, but with Electron lacking a good method to send data streams between main and renderer AFAIK, not sure about that one either.
An update:
In doing some research I saw a mention somewhere that Logitech audio drivers break Chromium's underlying audio engine, so I tried playing with that.
Turns out, after completely unplugging (not just turning off) my Logitech headset, Electron's audio now works as expected up until I plug it back in, then the error re-appears.
This headset works in other Electron-powered apps (Discord, Teams, etc.) so I'm unsure why its mere presence breaks my own Electron v31 app if the issue is upstream (unless it's fairly new).
I took a look at the comment and the mentioned getUserMedia() function, and while this works to capture a mic or output to a speaker, I can't capture system audio with this otherwise.
There is getDisplayMedia(), but trying to use this within an electron renderer gives me DOMException: Not supported (and I've tried a bunch of different constraints).
I can switch to another API, but what is now the supported method for capturing system (either window or whole desktop) video/audio? To enumerate window/screens?
An update: In doing some research I saw a mention somewhere that Logitech audio drivers break Chromium's underlying audio engine, so I tried playing with that.
Turns out, after completely unplugging (not just turning off) my Logitech headset, Electron's audio now works as expected up until I plug it back in, then the error re-appears.
This headset works in other Electron-powered apps (Discord, Teams, etc.) so I'm unsure why its mere presence breaks my own Electron v31 app if the issue is upstream (unless it's fairly new).
Did you get any solution for the Logitech device ???
Activity
CynicalBusiness commentedon Jul 4, 2024
An update:
In doing some research I saw a mention somewhere that Logitech audio drivers break Chromium's underlying audio engine, so I tried playing with that.
Turns out, after completely unplugging (not just turning off) my Logitech headset, Electron's audio now works as expected up until I plug it back in, then the error re-appears.
This headset works in other Electron-powered apps (Discord, Teams, etc.) so I'm unsure why its mere presence breaks my own Electron v31 app if the issue is upstream (unless it's fairly new).
codebytere commentedon Jul 8, 2024
See #41024 (comment)
There's not much we can do here, sorry 😓
CynicalBusiness commentedon Jul 8, 2024
I took a look at the comment and the mentioned
getUserMedia()function, and while this works to capture a mic or output to a speaker, I can't capture system audio with this otherwise.There is
getDisplayMedia(), but trying to use this within an electron renderer gives meDOMException: Not supported(and I've tried a bunch of different constraints).I can switch to another API, but what is now the supported method for capturing system (either window or whole desktop) video/audio? To enumerate window/screens?
Edit: would it be
setDisplayMediaRequestHandler? I can't seem to get this API to give me window-level audio.Alpha-T30 commentedon Dec 5, 2024
Did you get any solution for the Logitech device ???