Skip to content

No displays detected try dropping screen option #12

Description

@etec-masterofsynapse

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: ?

Activity

  1. manhtai commented on Sep 5, 2022

    @manhtai
    Contributor

    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.

  2. etec-masterofsynapse commented on Sep 5, 2022

    @etec-masterofsynapse
    Author

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

  3. manhtai commented on Sep 5, 2022

    @manhtai
    Contributor

    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.

  4. etec-masterofsynapse commented on Sep 5, 2022

    @etec-masterofsynapse
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions