-
Notifications
You must be signed in to change notification settings - Fork 17.2k
desktopCapturer.getSources() hangs indefinitely on macOS #51125
Copy link
Copy link
Labels
42-x-ybug 🪲bug/regression ↩️A new version of Electron broke somethingA new version of Electron broke somethingcomponent/desktopcapturerhas-repro-gistIssue can be reproduced with code at https://gist.github.com/Issue can be reproduced with code at https://gist.github.com/platform/macOSstatus/confirmedA maintainer reproduced the bug or agreed with the featureA maintainer reproduced the bug or agreed with the feature
Metadata
Metadata
Assignees
Labels
42-x-ybug 🪲bug/regression ↩️A new version of Electron broke somethingA new version of Electron broke somethingcomponent/desktopcapturerhas-repro-gistIssue can be reproduced with code at https://gist.github.com/Issue can be reproduced with code at https://gist.github.com/platform/macOSstatus/confirmedA maintainer reproduced the bug or agreed with the featureA maintainer reproduced the bug or agreed with the feature
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
StatusShow more project fields
🛠️ Fixed for Next Release
Preflight Checklist
Electron Version
43.0.0-nightly.20260416, 43.0.0-nightly.20260415
What operating system(s) are you using?
macOS
Operating System Version
macOS 26.4.1
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
43.0.0-nightly.20260413
Does the issue also appear in Chromium / Google Chrome?
No
Expected Behavior
await desktopCapturer.getSources({ types: ['window'] })resolves.Actual Behavior
await desktopCapturer.getSources({ types: ['window'] })hangs indefinitely.Maybe related: macOS shows a permission prompt only after closing the app:
Testcase Gist URL
https://gist.github.com/nikwen/8313b913781d477be55f726f70db23e5
Additional Information
This is breaking tests in CI. More info in #51124.