Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'screen' of undefined #28

Open
Feverqwe opened this issue Nov 17, 2017 · 2 comments
Open

TypeError: Cannot read property 'screen' of undefined #28

Feverqwe opened this issue Nov 17, 2017 · 2 comments

Comments

@Feverqwe
Copy link

Feverqwe commented Nov 17, 2017

In main process variable electron.screen sometimes is null on mac.
At this line you try get screen from remote, that is undefined.

var screen = electron.screen || electron.remote.screen;

@dbuezas
Copy link

dbuezas commented Nov 27, 2017

I also have this in mac, in my case in the built app (using "electron-builder": "19.10.0"). It seems to only happen the first time I try to open the app. After that it works.

@confiks
Copy link

confiks commented Mar 1, 2018

I just noticed that this error occurs when opening the application multiple times subsequently on two monitors. As soon as I launch the app successfully on a single monitor, I can reconnect my second monitor and relaunch the app successfully. As with the previous two reports, this is on OS X, resolved "https://registry.yarnpkg.com/electron-window-state/-/electron-window-state-4.1.1.tgz#6b34fdc31b38514dfec8b7c8f7b5d4addb67632d".

I haven't tried to figure out deleting what build files / runtime files / caches make the bug recur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants