Fails to launch under Debian11/KDE with Wayland
Because Spectacle had an error I installed GNOME Screenshot but it failed to launch. Spectacle usually works so the same thing that caused it not to may also be the cause of this problem which may be related to Wayland. This is the output:
Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11.
(gnome-screenshot:2735327): Gdk-CRITICAL **: gdk_pixbuf_get_from_surface: assertion 'width > 0 && height > 0' failed
(gnome-screenshot:2735327): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gnome-screenshot:2735327): GdkPixbuf-CRITICAL **: 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:2735327): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gnome-screenshot:2735327): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gnome-screenshot:2735327): Gtk-CRITICAL **: gtk_window_resize: assertion 'width > 0' failed
** (gnome-screenshot:2735327): CRITICAL **: Unable to capture a screenshot of any window
It may be a rare error. GS is v 3.38.0-1 in Debian11. Screenshotting seemed to work with Kazam but the resulting image was blank and just 2 kB.
Edited by mYnDstrEAm