Open etec-masterofsynapse opened 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.
I only have one display connected via HDMI to my Mac Mini.
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.
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.
Prerequisites
master
branchDEBUG_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