Unable to take window screenshot with gnome-screenshot
What problem did you encounter
Unable to take window screenshot with gnome-screenshot
How to reproduce
- Open gnome-screenshot
- Select 'Window' as a capture area
- Press 'Take screenshot' button
- Displayed error dialog with a following message 'Unable to capture a screenshot. All possible methods failed'
What is the (wrong) result?
No screenshot is taken. But it's possible to create fullscreen and selection screenshots.
What is the expected behaviour?
Screenshot of window is taken.
Context
mobian@mobian-dev:~ $ dpkg -s 'gnome-screenshot'
Package: gnome-screenshot
Status: install ok installed
Priority: optional
Section: gnome
Installed-Size: 1130
Maintainer: Debian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
Architecture: arm64
Version: 41.0-2
Depends: libc6 (>= 2.17), libcairo2 (>= 1.10.0), libgdk-pixbuf-2.0-0 (>= 2.23.0), libglib2.0-0 (>= 2.39.90), libgtk-3-0 (>= 3.21.4), libhandy-1-0 (>= 1.5.0), libx11-6, libxext6, dconf-gsettings-backend | gsettings-backend
Description: screenshot application for GNOME
This tool takes a picture of the desktop or of a window and saves it
into a file.
Homepage: https://wiki.gnome.org/Apps/Attic/GnomeUtils
Which version did you encounter the bug in?
-
I used the precompiled Debian package (e.g. by running a prebuilt image). Please paste the output oof dpkg -s phosh
below.
mobian@mobian-dev:~ $ dpkg -s phosh
Package: phosh
Status: install ok installed
Priority: optional
Section: x11
Installed-Size: 2411
Maintainer: DebianOnMobile Maintainers <debian-on-mobile-maintainers@alioth-lists.debian.net>
Architecture: arm64
Version: 0.24.0-1
Provides: notification-daemon, polkit-1-auth-agent
Depends: dconf-gsettings-backend | gsettings-backend, libc6 (>= 2.34), libcairo2 (>= 1.2.4), libcallaudio-0-1 (>= 0.0.5), libecal-2.0-2 (>= 3.33.4), libedataserver-1.2-27 (>= 3.25.90), libfeedback-0.0-0 (>= 0.0.0+git20200305), libfribidi0 (>= 0.19.2), libgcr-base-3-1 (>= 3.8.0), libgcr-ui-3-1 (>= 3.8.0), libgdk-pixbuf-2.0-0 (>= 2.31.1), libglib2.0-0 (>= 2.72.0), libgnome-desktop-3-20 (>= 3.17.92), libgtk-3-0 (>= 3.21.5), libgudev-1.0-0 (>= 234), libhandy-1-0 (>= 1.1.90), libical3 (>= 3.0.0), libnm0 (>= 1.24.0), libpam0g (>= 0.99.7.1), libpango-1.0-0 (>= 1.37.2), libpolkit-agent-1-0 (>= 0.99), libpolkit-gobject-1-0 (>= 0.94), libpulse-mainloop-glib0 (>= 0.99.1), libpulse0 (>= 0.99.1), libsecret-1-0 (>= 0.7), libsystemd0 (>= 213), libupower-glib3 (>= 0.99.4-3~), libwayland-client0 (>= 1.20.0), fonts-lato, gnome-shell-common, gsettings-desktop-schemas, phoc (>= 0.21.0+ds1)
Recommends: feedbackd, gnome-session-bin, gnome-session-common, gnome-settings-daemon, iio-sensor-proxy, phosh-mobile-tweaks, phosh-plugins, slurp, squeekboard | phosh-osk-stub
Breaks: gnome-calls (<< 41~alpha), gnome-control-center (<< 42), libgtk-3-0 (<< 3.24.30)
Description: Pure Wayland shell for mobile devices
Phosh is a graphical shell for Wayland compositors speaking the layer-surface
protocol and aimed at mobile devices like smart phones and tablets using touch
based inputs and small screens.
.
It's part of the Phosh Mobile Environment based on GNOME/GTK. For the full
stack see the phosh-full and phosh-core metapackages.
Homepage: https://gitlab.gnome.org/World/Phosh/phosh/
How are you running phosh?
-
Mobile phone (model: PinePhone , operating system version: latest mobian )
Releveant logfiles
апр 15 13:09:24 mobian-dev gnome-screensho[7852]: Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11.
апр 15 13:09:24 mobian-dev gnome-screensho[7852]: gdk_pixbuf_get_from_surface: assertion 'width > 0 && height > 0' failed
апр 15 13:09:24 mobian-dev org.gnome.Screenshot[7852]: *** BUG ***
апр 15 13:09:24 mobian-dev org.gnome.Screenshot[7852]: In pixman_region32_init_rect: Invalid rectangle passed
апр 15 13:09:24 mobian-dev org.gnome.Screenshot[7852]: Set a breakpoint on '_pixman_log_error' to debug
апр 15 13:09:24 mobian-dev gnome-screensho[7852]: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
апр 15 13:09:24 mobian-dev gnome-screensho[7852]: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
апр 15 13:09:24 mobian-dev gnome-screensho[7852]: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
апр 15 13:09:24 mobian-dev gnome-screensho[7852]: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
апр 15 13:09:24 mobian-dev gnome-screensho[7852]: gtk_window_resize: assertion 'width > 0' failed
апр 15 13:09:24 mobian-dev gnome-screensho[7852]: Unable to capture a screenshot of any window
Probably some expected API is missing in Phosh.