electron: [Bug]: MacOS Ventura M1 mediaDevices.getUserMedia takes long time
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
15.5.4
What operating system are you using?
macOS
Operating System Version
macOS Monterey 12.6
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
The camera stream should be loaded in less than 2 seconds and always succeeded. Using the getUserMedia function.
Actual Behavior
It takes around 8-10 seconds for the camera device to be loaded and sometimes fails with this error:
NotReadableError: Failed to allocate videosource
Testcase Gist URL
No response
Additional Information
It worked well for me for a long time and started happening in a specific case: It happens only on M1 MacBooks with Ventura OS with an Intel electron build. It works well when I build my app on M1, but I want to keep building it on an Intel-based Mac. If I try to build and arm64 build on x64 this issue keeps happening.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 37 (3 by maintainers)
We are on electron version 20.0.3, Ventura 13.1.0 and it is still taking ~10 seconds as well. Can we please reopen this issue?
@waleedbhatti I am not directly using that, it is only an assumption as I feel this whole issue was probably related to that feature - but again I have no proof of that. I can only say that the issue is resolved for me in the latest MacOS.
@louisencontre 13.2.1
@louisencontre We do have the same issue even after we’ve upgraded to macOS 13.1.0
Yeah, I haven’t faced the issue either after updating to macOS 13.1.0.
On Ventura 13.0.1, Electron 20.3.1 It takes around 8-10 seconds for the camera device to be loaded and sometimes fails with this error: NotReadableError: Could not start video source What should I do?