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

All screenshot related methods prints a transparent image #444

Open
1 of 3 tasks
Linkaynn opened this issue Oct 25, 2022 · 4 comments
Open
1 of 3 tasks

All screenshot related methods prints a transparent image #444

Linkaynn opened this issue Oct 25, 2022 · 4 comments

Comments

@Linkaynn
Copy link

Version

@nut-tree/nut-js@2.3.0
Ubuntu 20.04.5 LTS

Short overview

When I try to take a screenshot, the image saved on the system is all transparent. I have tried all my options already, opening an issue was my last. I'm not sure if this is related to: nut-tree/libnut-core#34

Issue occurs on

  • Virtual machine
  • Docker container
  • Dev/Host system

Steps to reproduce error

await screen.capture('whatever', FileType.PNG)

Additional content

The resulting screenshot

screen

@maks-rafalko
Copy link

maks-rafalko commented Jan 23, 2023

Same here. Regardless of the method used (screen.grabRegion(), screen.captureRegion()) - image is always empty. Same code on Win10 works correctly.

Manjaro linux

@s1hofmann
Copy link
Member

Hi @Linkaynn @maks-rafalko 👋

Are you running Wayland or the XWayland compatibility mode?

@Linkaynn
Copy link
Author

Hi @s1hofmann ! Thanks for the reply

I used the Wayland option on Ubuntu login screen 🤔

@s1hofmann
Copy link
Member

Could you please try using the XWayland option? Wayland support is still lacking

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

3 participants