RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2078976 - gnome-screenshot CLI isn't working on wayland sessions
Summary: gnome-screenshot CLI isn't working on wayland sessions
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: gnome-screenshot
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: David King
QA Contact: Michal Odehnal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-26 15:58 UTC by Leon Fauster
Modified: 2022-11-15 11:44 UTC (History)
4 users (show)

Fixed In Version: gnome-screenshot-40.0-4.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-15 10:37:06 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME gnome-screenshot issues 179 0 None closed CLI/non-interactive mode does not own D-Bus name which breaks screenshots with gnome-shell 41 2022-06-27 15:04:38 UTC
Red Hat Issue Tracker RHELPLAN-120011 0 None None None 2022-04-26 16:03:43 UTC
Red Hat Product Errata RHBA-2022:8211 0 None None None 2022-11-15 10:37:07 UTC

Description Leon Fauster 2022-04-26 15:58:20 UTC
Description of problem:

RHEL9 suffers also from https://bugzilla.redhat.com/show_bug.cgi?id=2015556

gnome-screenshot can not be executed out of scripts/cli.

Usage via Gnome UI works (with user interaction).

Comment 1 Leon Fauster 2022-04-26 16:03:40 UTC
$ LANG=C gnome-screenshot 
** Message: 18:02:49.740: Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11.

(gnome-screenshot:26413): Gdk-CRITICAL **: 18:02:49.740: gdk_pixbuf_get_from_surface: assertion 'width > 0 && height > 0' failed

(gnome-screenshot:26413): GdkPixbuf-CRITICAL **: 18:02:49.740: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gnome-screenshot:26413): GdkPixbuf-CRITICAL **: 18:02:49.740: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug


(gnome-screenshot:26413): GdkPixbuf-CRITICAL **: 18:02:49.740: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gnome-screenshot:26413): GdkPixbuf-CRITICAL **: 18:02:49.740: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gnome-screenshot:26413): Gtk-CRITICAL **: 18:02:49.748: gtk_window_resize: assertion 'width > 0' failed

** (gnome-screenshot:26413): CRITICAL **: 18:02:49.748: Unable to capture a screenshot of any window

Comment 2 Leon Fauster 2022-04-26 16:04:49 UTC
$ set|grep DISPLAY
DISPLAY=:0
GNOME_SETUP_DISPLAY=:1
WAYLAND_DISPLAY=wayland-0

Comment 8 errata-xmlrpc 2022-11-15 10:37:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (gnome-screenshot bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8211


Note You need to log in before you can comment on or make changes to this bug.