Skip to content

All screenshot related methods prints a transparent image #444

@Linkaynn

Description

@Linkaynn

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

Activity

maks-rafalko

maks-rafalko commented on Jan 23, 2023

@maks-rafalko

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

Manjaro linux

s1hofmann

s1hofmann commented on Jan 24, 2023

@s1hofmann
Member

Hi @Linkaynn @maks-rafalko 👋

Are you running Wayland or the XWayland compatibility mode?

Linkaynn

Linkaynn commented on Jan 24, 2023

@Linkaynn
Author

Hi @s1hofmann ! Thanks for the reply

I used the Wayland option on Ubuntu login screen 🤔

s1hofmann

s1hofmann commented on Jan 24, 2023

@s1hofmann
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @maks-rafalko@Linkaynn@s1hofmann

        Issue actions

          All screenshot related methods prints a transparent image · Issue #444 · nut-tree/nut.js