Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-50819

gnome-screenshot crashes in interactive mode when disable-save-to-disk=true

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • rhel-9.4
    • gnome-screenshot
    • None
    • No
    • Low
    • rhel-sst-display-desktop-foundation
    • ssg_display
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      gnome-screenshot crashes in interactive mode when disable-save-to-disk=true.

      Please provide the package NVR for which bug is seen:

      • Red Hat Enterprise Linux release 9.4 (Plow)
      • gnome-screenshot-40.0-4.el9_4.1.x86_64

      How reproducible:

      Always

      Steps to reproduce

      $ gsettings set org.gnome.desktop.lockdown disable-save-to-disk true
      $ gnome-screenshot -w -i
      [choose a window to take the screenshot]

      Expected results

      gnome-screenshot should fail gracefully instead of crashing.

      Actual results

      ** Message: 10:31:26.715: Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11.(gnome-screenshot:8156): Gdk-WARNING **: 10:31:26.715: ../gdk/x11/gdkwindow-x11.c:5653 drawable is not a native X11 window(gnome-screenshot:8156): GLib-GObject-WARNING **: 10:31:26.715: invalid cast from 'GdkWaylandDisplay' to 'GdkX11Display' Segmentation fault (core dumped)

      Additional information

      On RHEL 8, gnome-screenshot does not crash but gets hung.

              dking@redhat.com David King
              rhn-support-casantos Carlos Santos
              David King David King
              Michal Odehnal Michal Odehnal
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: