-
-
Notifications
You must be signed in to change notification settings - Fork 150
Crazy region based screenshot behavior on macOS #194
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
Comments
We were able to reproduce the error during travis to GH Action migration of https://github.com/sakuli/sakuli as well. But this time, the issue also occurred with @s1hofmann Do you have an Idea what could cause this issue? We're currently a little confused about the root cause to be honest. 🙈 |
@svettwer I'm currently debugging this issue to analyse the root cause. |
Awesome! Let me know if I can help. 👍 |
Will continue later this evening. Might hit you up for a little session, depending on how late my later will be. |
@svettwer When capturing the whole screen via Overall, the issue seems not to be related to the capturing mechanism in |
@svettwer More details on why this happens can be found here: nut-tree/libnut-core#44 Looks like a platform problem. |
And it seems like it’s no longer a problem on Big Sur: https://github.com/nut-tree/libnut/actions/runs/500905237 |
To sum things up: Broken screenshots are caused by and only happen on macOS Catalina. As it is no problem on Big Sur I guess we’ll live with it until explicitly required. |
Version
next
Short overview
Screenshots based on Regions on macOS are do not reflect screen content.
Issue occurs on
Detailed error description
I'm using the following workaround from #154 to create a screenshot of a region
Based on the provided region, I receive various errors or incorrect images.
I'm working on a 1920x1080 build agent and configured it as described here.
with

new NutRegion(0, 100, 650, 200)
I get:with

new NutRegion(0, 50, 325, 100)
I get:Just thought a reduction of the resolution could help.
with
new NutRegion(0, 0, 1900, 1000)
I get:Whole screen

Funny enough, when I take a screenshot with
grabScreen
, it looks as expected.Steps to reproduce error
As this happens on a build agent and because I've no mac myself, I cannot provide any information, unfortunately.
The text was updated successfully, but these errors were encountered: