Maybe a bug. Electron.Screen.GetPrimaryDisplayAsync(); #1012

Open
opened 2026-01-29 16:54:52 +00:00 by claunia · 0 comments
Owner

Originally created by @markatosi on GitHub (Nov 20, 2025).

  • Version: 0.2
  • Target: .net 10.0, electron 38.2.2 node v22.12.0

Steps to Reproduce:

  1. Try to use await Electron.Screen.GetPrimaryDisplayAsync();
  2. Error:System.TimeoutException: No response after 1000ms trying to retrieve value screen.GetPrimaryDisplayAsync()

The Screen id is set to -1 so that's probably not correct.

Originally created by @markatosi on GitHub (Nov 20, 2025). <!-- Please search existing issues to avoid creating duplicates. --> <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: 0.2 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> <!-- What target are you building for? --> * **Target**: .net 10.0, electron 38.2.2 node v22.12.0 <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> Steps to Reproduce: 1. Try to use await Electron.Screen.GetPrimaryDisplayAsync(); 2. Error:System.TimeoutException: No response after 1000ms trying to retrieve value screen.GetPrimaryDisplayAsync() The Screen id is set to -1 so that's probably not correct.
claunia added the bug label 2026-01-29 16:54:52 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#1012