Skip to content
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

snap_image() and snap() not working on Windows and Wayland #278

Open
HagaiHargil opened this issue May 18, 2021 · 2 comments
Open

snap_image() and snap() not working on Windows and Wayland #278

HagaiHargil opened this issue May 18, 2021 · 2 comments

Comments

@HagaiHargil
Copy link

Hi,

both snap() and snap_image() - the Window methods to capture the current data displayed on screen - don't work. I verified this both with my own scripts and with the "screenshot" example that is able to render the cube on screen, but then shows a blank black image in the saved PNG file.

@HagaiHargil
Copy link
Author

So just a quick update - I re-ran my tests on an Ubuntu 18.04 machine with X11 and apparently the methods do work. All of my tests were previously run either on wayland compositors or on Windows machines, so this might explain the difference. Sadly the final code will exclusively run on Windows, so I'm still stuck. grovesNL/glow#125 might explain what's happening, although I'm not quite sure it's relevant.

@HagaiHargil HagaiHargil changed the title snap_image() and snap() not working snap_image() and snap() not working on Windows and Wayland May 24, 2021
@HagaiHargil
Copy link
Author

Another quick update - on the Windows machine it seems that new_with_size() has a lower bound for the width argument of 120 px. I'm not sure if it's related or not, but it's definitely surprising.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant