-
Notifications
You must be signed in to change notification settings - Fork 6
Can't capture screen shot #1
Comments
I'm working on trying to replicate your error Few questions: |
I've started getting this issue consistently since June 1st, when I tried to pull my fork down to a new environment. It's happened both on Linux and Windows, though it was working in both prior to some undetermined point after which I haven't been able to capture another screenshot.
Here's a link to my package-lock.json: https://gist.github.com/rDarge/42b2a709d37bfd2b3052d72a1ce7237e I was actually trying to boot up a version of VGT I had working so I could add screenshots for some of the issues I was wanted to make, but wasn't able to actually take a screenshot. |
It was a huge pain troubleshooting this, but I think I've actually figured it out. If you supply a number with a decimal point in one of the parameters for Here are some logs I pulled from testing this, and a fix I've put in place.
Note the following line, which is a console log of screenWidth and screenHeight, respectively:
In ipcHandler.js I made the following changes to lines 138-140:
After applying this change I was able to take a screenshot again.
screenWidth and screenHeight are even numbers now.
I'll dig into this a bit more so I understand the implications of fractional screen width/height calculations, but as a stopgap fix flooring these numbers has worked fine for me, with no other issues. |
Good job finding that bug! Yes, I think that must be it. I never tested the system with operating systems that are using additional scaling. I will check that everything continues to work correctly and I accept your PR. I have never tested the program on Linux. So, as you mentioned, you were able to run it correctly, right? It would be great to make an installable version. Thank you very much for your work |
No problem. With some tweaks I was able to run it on linux, and OSX as well, but I don't have immediate access to an OSX build environment currently. I'll open up another issue for linux compatibility and prepare a PR for that soon. |
Hi, when I try to capture screenshot it show an error like this
can you help me
The text was updated successfully, but these errors were encountered: