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

No displays detected try dropping screen option #12

Open
etec-masterofsynapse opened this issue Sep 5, 2022 · 4 comments
Open

No displays detected try dropping screen option #12

etec-masterofsynapse opened this issue Sep 5, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@etec-masterofsynapse
Copy link

Prerequisites

  • [?] Using yarn
  • [?] Using an up-to-date master branch
  • [?] Using latest version of devtools. Check the docs for how to update
  • [?] Tried solutions mentioned in #400
  • [?] For issue in production release, add devtools output of DEBUG_PROD=true yarn build && yarn start

Expected Behavior

Current Behavior

App displayed the error above after running through 233 pages.

Steps to Reproduce

Error: No displays detected try dropping screen option
at /Applications/PlainPrinter.app/Contents/Resources/app.asar/node_modules/screenshot-desktop/lib/darwin/index.js:15:21
at new Promise ()
at performScreenCapture (/Applications/PlainPrinter.app/Contents/Resources/app.asar/node_modules/screenshot-desktop/lib/darwin/index.js:11:44)
at /Applications/PlainPrinter.app/Contents/Resources/app.asar/node_modules/screenshot-desktop/lib/darwin/index.js:64:53
at process.buff (node:internal/process/task_queues:96:5)
at /Applications/PlainPrinter.app/Contents/Resources/app.asar/dist/main/webpack:/src/main/main.ts:284:15
at node:electron/js2c/browser_init:189:563

Possible Solution (Not obligatory)

Context

Your Environment

  • Node version: ?
  • PlainPrinter version or branch: 0.2.0
  • Operating System and version: macOS 12.5.1
  • Link to your project: ?
@etec-masterofsynapse etec-masterofsynapse added the bug Something isn't working label Sep 5, 2022
@manhtai
Copy link
Member

manhtai commented Sep 5, 2022

Hi, do you use multiple screen? This might related to this open issue: bencevans/screenshot-desktop#171

A possible fix may be to use only one screen, not tested yet.

@etec-masterofsynapse
Copy link
Author

etec-masterofsynapse commented Sep 5, 2022

I only have one display connected via HDMI to my Mac Mini.

@manhtai
Copy link
Member

manhtai commented Sep 5, 2022

That’s “external” actually, this guy has a mac mini too bencevans/screenshot-desktop#171 (comment). I can’t help with this case for now though.

@etec-masterofsynapse
Copy link
Author

Well, the Mac mini can't have an internal display since it's a closed box.
However it seems that this error also occurs when you use your app with any kind of remote control software, like VNC or AnyDesk. I tried it without and got to the needed 630 pages, and no error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants