plainlab / plainprinter

Take multiple screenshots and convert them into a PDF file
GNU General Public License v3.0
51 stars 10 forks source link

No displays detected try dropping screen option #12

Open etec-masterofsynapse opened 2 years ago

etec-masterofsynapse commented 2 years ago

Prerequisites

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

manhtai commented 2 years ago

Hi, do you use multiple screen? This might related to this open issue: https://github.com/bencevans/screenshot-desktop/issues/171

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

etec-masterofsynapse commented 2 years ago

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

manhtai commented 2 years ago

That’s “external” actually, this guy has a mac mini too https://github.com/bencevans/screenshot-desktop/issues/171#issuecomment-781284912. I can’t help with this case for now though.

etec-masterofsynapse commented 2 years ago

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.