Skip to content

[Bug] Screenshot fails with unkown reason #196

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

Open
KelvinNovais opened this issue Mar 2, 2025 · 0 comments
Open

[Bug] Screenshot fails with unkown reason #196

KelvinNovais opened this issue Mar 2, 2025 · 0 comments

Comments

@KelvinNovais
Copy link

Bug description

The screenshot sometimes fails with unknown reason. The error is not very descriptive, it just says "Screenshot failed".
The problem usually happens when:

  • taking a too big screenshot (almost the whole monitor, or across monitors)
  • taking a screenshot on the second monitor.

Maybe another issue: screenshot always fails on a virtual machine (Fedora 41, with Gnome)

More information

OS: Fedora Linux 41
DE: GNOME 47
Running GTK4 test (from this repository), without any modifications. On Flatpak sandbox.


Here is an example: I selected almost the whole screen, and the system performs the screenshot successfully. The following image was saved on my disk:

Image

However, the application gets an error (after the screenshot was taken):

(org.gnome.PortalTest.Gtk4:2): Gjs-WARNING **: 17:16:20.759: JS ERROR: Gio.IOErrorEnum: Screenshot failed
_takeScreenshot/<@resource:///org/gnome/PortalTest/Gtk4/js/window.js:666:46
main@resource:///org/gnome/PortalTest/Gtk4/js/main.js:66:24
run@resource:///org/gnome/gjs/modules/script/package.js:207:19
@/app/bin/org.gnome.PortalTest.Gtk4:9:17

If you need more information, please give me a way to get a more verbose debugging.

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