Unable to take screenshots with third-party apps in Gnome

It seems to affect all third party apps with screen capture abilities. First I start with my findings with the ‘Gnome’ Screenshot app and then with Flameshot.

Screenshot

I’ve always used the Screenshot app that came with Fedora. I don’t remember ever installing it.
I tried to take a screenshot by opening the app.

Selection

If I select Selection as capture area and click on Take Screenshot, the app window closes and then nothing happens.

Meanwhile in the journal:

mei 30 14:15:18 systemd[7166]: Started dbus-:1.1-org.gnome.Screenshot@0.service.
mei 30 14:15:38 gnome-screenshot[16809]: Unable to select area using GNOME Shell's builtin screenshot interface, resorting to fallback X11.

If I start the app again, the selection crosshair is only visible in the app window. If I click outside the app window nothing happens. If I click in the app window, then a dialog window appears where to save the screenshot. However, the screenshots are blank (solid black or solid white) and no bigger than the app window size.
The journal when I click to try to select a capture area:

mei 30 14:36:58 gnome-screenshot[16809]: Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11.
mei 30 14:36:59 audit: BPF prog-id=110 op=UNLOAD
mei 30 14:36:59 audit: BPF prog-id=109 op=UNLOAD
mei 30 14:36:59 audit: BPF prog-id=111 op=LOAD
mei 30 14:36:59 audit: BPF prog-id=112 op=LOAD
mei 30 14:36:59 audit: BPF prog-id=113 op=LOAD

Window

When I select Window as capture area and then click Take Screenshot, the app window disappears and the journal throws out a massive coredump:

mei 30 14:49:40 gnome-screenshot[16809]: Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11.
mei 30 14:49:40 audit[16809]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=16809 comm="gnome-screensho" exe="/usr/bin/gnome-screenshot" sig=11 res=1
mei 30 14:49:40 kernel: show_signal_msg: 18 callbacks suppressed
mei 30 14:49:40 gnome-screenshot[16809]: gdk_x11_window_get_xid: assertion 'GDK_IS_X11_WINDOW (window)' failed
mei 30 14:49:40 kernel: gnome-screensho[16809]: segfault at 558f6d1c1d68 ip 0000558f6d1c1d68 sp 00007fff50011138 error 15 likely on CPU 5 (core 1, socket 0)
mei 30 14:49:40 systemd-coredump[21840]: Process 16809 (gnome-screensho) of user 1000 terminated abnormally with signal 11/SEGV, processing...
mei 30 14:49:40 kernel: Code: 00 00 00 00 00 00 00 00 00 00 71 00 00 00 00 00 00 00 68 1d 1c 6d 8f 55 00 00 70 9e f2 60 9c 7f 00 00 f0 d6 f2 60 9c 7f 00 00 <60> 64 c6 60 9c 7f 00 00 70 64 c6 60 9c 7f 00 00 d0 64 c6 60 9c 7f
mei 30 14:49:40 systemd[1]: Created slice system-systemd\x2dcoredump.slice - Slice /system/systemd-coredump.
mei 30 14:49:40 audit: BPF prog-id=114 op=LOAD
mei 30 14:49:40 audit: BPF prog-id=115 op=LOAD
mei 30 14:49:40 audit: BPF prog-id=116 op=LOAD
mei 30 14:49:40 systemd[1]: Started systemd-coredump@0-1-21840_31177-0.service - Process Core Dump (PID 21840/UID 0).
mei 30 14:49:40 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@0-1-21840_31177-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
mei 30 14:49:40 abrt-dump-journal-core[1455]: Failed to obtain all required information from journald
mei 30 14:49:40 systemd-coredump[21841]: [🡕] Process 16809 (gnome-screensho) of user 1000 dumped core.
                                         
                                         Module /usr/bin/gnome-screenshot from rpm gnome-screenshot-41.0-12.fc43.x86_64
                                         Module libgioremote-volume-monitor.so from rpm gvfs-1.58.4-1.fc43.x86_64
                                         Module libpk-gtk-module.so from rpm PackageKit-1.3.4-3.fc43.x86_64
                                         Module libogg.so.0 from rpm libogg-1.3.6-2.fc43.x86_64
                                         Module libvorbis.so.0 from rpm libvorbis-1.3.7-13.fc43.x86_64
                                         Module libltdl.so.7 from rpm libtool-2.5.4-8.fc43.x86_64
                                         Module libtdb.so.1 from rpm libtdb-1.4.14-3.fc43.x86_64
                                         Module libvorbisfile.so.3 from rpm libvorbis-1.3.7-13.fc43.x86_64
                                         Module libgthread-2.0.so.0 from rpm glib2-2.86.5-1.fc43.x86_64
                                         Module libnss_systemd.so.2 from rpm systemd-258.7-1.fc43.x86_64
                                         Module libnss_sss.so.2 from rpm sssd-2.12.0-1.fc43.x86_64
                                         Module libgvfscommon.so from rpm gvfs-1.58.4-1.fc43.x86_64
                                         Module libgvfsdbus.so from rpm gvfs-1.58.4-1.fc43.x86_64
                                         Module libdconfsettings.so from rpm dconf-0.49.0-1.fc43.x86_64
                                         Module libcap.so.2 from rpm libcap-2.76-4.fc43.x86_64
                                         Module libbrotlicommon.so.1 from rpm brotli-1.2.0-1.fc43.x86_64
                                         Module libsystemd.so.0 from rpm systemd-258.7-1.fc43.x86_64
                                         Module liblzma.so.5 from rpm xz-5.8.1-4.fc43.x86_64
                                         Module libdatrie.so.1 from rpm libdatrie-0.2.13-12.fc43.x86_64
                                         Module libblkid.so.1 from rpm util-linux-2.41.4-7.fc43.x86_64
                                         Module libseccomp.so.2 from rpm libseccomp-2.6.0-2.fc43.x86_64
                                         Module liblcms2.so.2 from rpm lcms2-2.16-6.fc43.x86_64
                                         Module libbrotlidec.so.1 from rpm brotli-1.2.0-1.fc43.x86_64
                                         Module libbz2.so.1 from rpm bzip2-1.0.8-21.fc43.x86_64
                                         Module libsqlite3.so.0 from rpm sqlite-3.50.2-2.fc43.x86_64
                                         Module libjson-glib-1.0.so.0 from rpm json-glib-1.10.8-4.fc43.x86_64
                                         Module libdbus-1.so.3 from rpm dbus-1.16.0-4.fc43.x86_64
                                         Module libatspi.so.0 from rpm at-spi2-core-2.58.5-1.fc43.x86_64
                                         Module libxml2.so.2 from rpm libxml2-2.12.10-5.fc43.x86_64
                                         Module libgraphite2.so.3 from rpm graphite2-1.3.14-19.fc43.x86_64
                                         Module libthai.so.0 from rpm libthai-0.1.29-11.fc43.x86_64
                                         Module libXau.so.6 from rpm libXau-1.0.12-3.fc43.x86_64
                                         Module libffi.so.8 from rpm libffi-3.5.2-1.fc43.x86_64
                                         Module libselinux.so.1 from rpm libselinux-3.9-5.fc43.x86_64
                                         Module libmount.so.1 from rpm util-linux-2.41.4-7.fc43.x86_64
                                         Module libglycin-2.so.0 from rpm glycin-2.0.8-1.fc43.x86_64
                                         Module libpixman-1.so.0 from rpm pixman-0.46.2-2.fc43.x86_64
                                         Module libxcb-shm.so.0 from rpm libxcb-1.17.0-6.fc43.x86_64
                                         Module libxcb-render.so.0 from rpm libxcb-1.17.0-6.fc43.x86_64
                                         Module libXrender.so.1 from rpm libXrender-0.9.12-3.fc43.x86_64
                                         Module libfreetype.so.6 from rpm freetype-2.13.3-3.fc43.x86_64
                                         Module libpng16.so.16 from rpm libpng-1.6.56-1.fc43.x86_64
                                         Module libz.so.1 from rpm zlib-ng-2.3.3-2.fc43.x86_64
                                         Module libXinerama.so.1 from rpm libXinerama-1.1.5-9.fc43.x86_64
                                         Module libXrandr.so.2 from rpm libXrandr-1.5.4-6.fc43.x86_64
                                         Module libXcomposite.so.1 from rpm libXcomposite-0.4.6-6.fc43.x86_64
                                         Module libXdamage.so.1 from rpm libXdamage-1.1.6-6.fc43.x86_64
                                         Module libXcursor.so.1 from rpm libXcursor-1.2.3-3.fc43.x86_64
                                         Module libwayland-egl.so.1 from rpm wayland-1.24.0-1.fc43.x86_64
                                         Module libwayland-cursor.so.0 from rpm wayland-1.24.0-1.fc43.x86_64
                                         Module libxkbcommon.so.0 from rpm libxkbcommon-1.11.0-1.fc43.x86_64
                                         Module libXfixes.so.3 from rpm libXfixes-6.0.1-6.fc43.x86_64
                                         Module libwayland-client.so.0 from rpm wayland-1.24.0-1.fc43.x86_64
                                         Module libtinysparql-3.0.so.0 from rpm tinysparql-3.10.1-5.fc43.x86_64
                                         Module libcloudproviders.so.0 from rpm libcloudproviders-0.3.6-2.fc43.x86_64
                                         Module libatk-bridge-2.0.so.0 from rpm at-spi2-core-2.58.5-1.fc43.x86_64
                                         Module libXi.so.6 from rpm libXi-1.8.2-3.fc43.x86_64
                                         Module libepoxy.so.0 from rpm libepoxy-1.5.10-11.fc43.x86_64
                                         Module libatk-1.0.so.0 from rpm at-spi2-core-2.58.5-1.fc43.x86_64
                                         Module libcairo-gobject.so.2 from rpm cairo-1.18.4-2.fc43.x86_64
                                         Module libfribidi.so.0 from rpm fribidi-1.0.16-3.fc43.x86_64
                                         Module libfontconfig.so.1 from rpm fontconfig-2.17.0-3.fc43.x86_64
                                         Module libpangoft2-1.0.so.0 from rpm pango-1.57.1-1.fc43.x86_64
                                         Module libharfbuzz.so.0 from rpm harfbuzz-11.5.1-2.fc43.x86_64
                                         Module libpango-1.0.so.0 from rpm pango-1.57.1-1.fc43.x86_64
                                         Module libpangocairo-1.0.so.0 from rpm pango-1.57.1-1.fc43.x86_64
                                         Module libgmodule-2.0.so.0 from rpm glib2-2.86.5-1.fc43.x86_64
                                         Module libpcre2-8.so.0 from rpm pcre2-10.47-1.fc43.x86_64
                                         Module libxcb.so.1 from rpm libxcb-1.17.0-6.fc43.x86_64
                                         Module libhandy-1.so.0 from rpm libhandy-1.8.3-9.fc43.x86_64
                                         Module libgobject-2.0.so.0 from rpm glib2-2.86.5-1.fc43.x86_64
                                         Module libgio-2.0.so.0 from rpm glib2-2.86.5-1.fc43.x86_64
                                         Module libgdk_pixbuf-2.0.so.0 from rpm gdk-pixbuf2-2.44.6^really2.44.4-1.fc43.x86_64
                                         Module libcairo.so.2 from rpm cairo-1.18.4-2.fc43.x86_64
                                         Module libgdk-3.so.0 from rpm gtk3-3.24.52-1.fc43.x86_64
                                         Module libgtk-3.so.0 from rpm gtk3-3.24.52-1.fc43.x86_64
                                         Module libglib-2.0.so.0 from rpm glib2-2.86.5-1.fc43.x86_64
                                         Module libXext.so.6 from rpm libXext-1.3.6-4.fc43.x86_64
                                         Module libX11.so.6 from rpm libX11-1.8.13-1.fc43.x86_64
                                         Stack trace of thread 16809:
                                         #0  0x0000558f6d1c1d68 n/a (n/a + 0x0)
                                         #1  0x0000558f63d8bce8 screenshot_backend_x11_get_pixbuf (/usr/bin/gnome-screenshot + 0x4ce8)
                                         #2  0x0000558f63d8e4c4 take_screenshot_timeout (/usr/bin/gnome-screenshot + 0x74c4)
                                         #3  0x00007f9c6186350b g_timeout_dispatch (libglib-2.0.so.0 + 0x4750b)
                                         #4  0x00007f9c6185d363 g_main_context_dispatch_unlocked.lto_priv.0 (libglib-2.0.so.0 + 0x41363)
                                         #5  0x00007f9c618662b8 g_main_context_iterate_unlocked.isra.0 (libglib-2.0.so.0 + 0x4a2b8)
                                         #6  0x00007f9c61866463 g_main_context_iteration (libglib-2.0.so.0 + 0x4a463)
                                         #7  0x00007f9c60d701dd g_application_run (libgio-2.0.so.0 + 0xaf1dd)
                                         #8  0x0000558f63d89aa3 main (/usr/bin/gnome-screenshot + 0x2aa3)
                                         #9  0x00007f9c6099c5b5 __libc_start_call_main (libc.so.6 + 0x35b5)
                                         #10 0x00007f9c6099c668 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x3668)
                                         #11 0x0000558f63d89b35 _start (/usr/bin/gnome-screenshot + 0x2b35)
                                         
                                         Stack trace of thread 16815:
                                         #0  0x00007f9c60a13902 __syscall_cancel_arch (libc.so.6 + 0x7a902)
                                         #1  0x00007f9c60a07b9c __internal_syscall_cancel (libc.so.6 + 0x6eb9c)
                                         #2  0x00007f9c60a07be4 __syscall_cancel (libc.so.6 + 0x6ebe4)
                                         #3  0x00007f9c60a81686 ppoll (libc.so.6 + 0xe8686)
                                         #4  0x00007f9c618663a0 g_main_context_iterate_unlocked.isra.0 (libglib-2.0.so.0 + 0x4a3a0)
                                         #5  0x00007f9c61866463 g_main_context_iteration (libglib-2.0.so.0 + 0x4a463)
                                         #6  0x00007f9c61ad9e4d dconf_gdbus_worker_thread (libdconfsettings.so + 0x4e4d)
                                         #7  0x00007f9c61890752 g_thread_proxy (libglib-2.0.so.0 + 0x74752)
                                         #8  0x00007f9c60a0b3c4 start_thread (libc.so.6 + 0x723c4)
                                         #9  0x00007f9c60a8e56c __clone3 (libc.so.6 + 0xf556c)
                                         
                                         Stack trace of thread 16812:
                                         #0  0x00007f9c60a13902 __syscall_cancel_arch (libc.so.6 + 0x7a902)
                                         #1  0x00007f9c60a07b9c __internal_syscall_cancel (libc.so.6 + 0x6eb9c)
                                         #2  0x00007f9c60a07be4 __syscall_cancel (libc.so.6 + 0x6ebe4)
                                         #3  0x00007f9c60a81686 ppoll (libc.so.6 + 0xe8686)
                                         #4  0x00007f9c618663a0 g_main_context_iterate_unlocked.isra.0 (libglib-2.0.so.0 + 0x4a3a0)
                                         #5  0x00007f9c61866463 g_main_context_iteration (libglib-2.0.so.0 + 0x4a463)
                                         #6  0x00007f9c618664b1 glib_worker_main (libglib-2.0.so.0 + 0x4a4b1)
                                         #7  0x00007f9c61890752 g_thread_proxy (libglib-2.0.so.0 + 0x74752)
                                         #8  0x00007f9c60a0b3c4 start_thread (libc.so.6 + 0x723c4)
                                         #9  0x00007f9c60a8e56c __clone3 (libc.so.6 + 0xf556c)
                                         
                                         Stack trace of thread 16817:
                                         #0  0x00007f9c60a8c30d syscall (libc.so.6 + 0xf330d)
                                         #1  0x00007f9c5fc10ec6 _ZN3std3sys4sync5mutex5futex5Mutex14lock_contended17h2578d8832d98bb72E (libglycin-2.so.0 + 0x10ec6)
                                         #2  0x00007f9c5fd3e46a _ZN3std3sys9backtrace28__rust_begin_short_backtrace17h0f8408cc3f49f0f9E (libglycin-2.so.0 + 0x13e46a)
                                         #3  0x00007f9c5fd3e04c _ZN4core3ops8function6FnOnce40call_once$u7b$$u7b$vtable.shim$u7d$$u7d$17hf37e005b6c510335E (libglycin-2.so.0 + 0x13e04c)
                                         #4  0x00007f9c5fe719f0 _ZN3std3sys6thread4unix6Thread3new12thread_start17hf83b65292bfddc02E (libglycin-2.so.0 + 0x2719f0)
                                         #5  0x00007f9c60a0b3c4 start_thread (libc.so.6 + 0x723c4)
                                         #6  0x00007f9c60a8e56c __clone3 (libc.so.6 + 0xf556c)
                                         
                                         Stack trace of thread 17026:
                                         #0  0x00007f9c60a8c30d syscall (libc.so.6 + 0xf330d)
                                         #1  0x00007f9c6189136b g_cond_wait (libglib-2.0.so.0 + 0x7536b)
                                         #2  0x00007f9c6182620c g_async_queue_pop_intern_unlocked (libglib-2.0.so.0 + 0xa20c)
                                         #3  0x00007f9c6182627c g_async_queue_pop (libglib-2.0.so.0 + 0xa27c)
                                         #4  0x00007f9c606f76c9 fc_thread_func (libpangoft2-1.0.so.0 + 0x46c9)
                                         #5  0x00007f9c61890752 g_thread_proxy (libglib-2.0.so.0 + 0x74752)
                                         #6  0x00007f9c60a0b3c4 start_thread (libc.so.6 + 0x723c4)
                                         #7  0x00007f9c60a8e56c __clone3 (libc.so.6 + 0xf556c)
                                         
                                         Stack trace of thread 17675:
                                         #0  0x00007f9c60a13902 __syscall_cancel_arch (libc.so.6 + 0x7a902)
                                         #1  0x00007f9c60a07b9c __internal_syscall_cancel (libc.so.6 + 0x6eb9c)
                                         #2  0x00007f9c60a07be4 __syscall_cancel (libc.so.6 + 0x6ebe4)
                                         #3  0x00007f9c60a77b0f wait4 (libc.so.6 + 0xdeb0f)
                                         #4  0x00007f9c5fe7762b _ZN3std3sys7process4unix4unix7Process4wait17ha93bdc6325964c43E (libglycin-2.so.0 + 0x27762b)
                                         #5  0x00007f9c5fc6ab7a _ZN3std3sys9backtrace28__rust_begin_short_backtrace17h6778dd16316a07a7E (libglycin-2.so.0 + 0x6ab7a)
                                         #6  0x00007f9c5fc7355f _ZN4core3ops8function6FnOnce40call_once$u7b$$u7b$vtable.shim$u7d$$u7d$17h6844a6ea1d78e190E (libglycin-2.so.0 + 0x7355f)
                                         #7  0x00007f9c5fe719f0 _ZN3std3sys6thread4unix6Thread3new12thread_start17hf83b65292bfddc02E (libglycin-2.so.0 + 0x2719f0)
                                         #8  0x00007f9c60a0b3c4 start_thread (libc.so.6 + 0x723c4)
                                         #9  0x00007f9c60a8e56c __clone3 (libc.so.6 + 0xf556c)
                                         
                                         Stack trace of thread 16811:
                                         #0  0x00007f9c60a8c30d syscall (libc.so.6 + 0xf330d)
                                         #1  0x00007f9c6189136b g_cond_wait (libglib-2.0.so.0 + 0x7536b)
                                         #2  0x00007f9c6182620c g_async_queue_pop_intern_unlocked (libglib-2.0.so.0 + 0xa20c)
                                         #3  0x00007f9c61894124 g_thread_pool_spawn_thread (libglib-2.0.so.0 + 0x78124)
                                         #4  0x00007f9c61890752 g_thread_proxy (libglib-2.0.so.0 + 0x74752)
                                         #5  0x00007f9c60a0b3c4 start_thread (libc.so.6 + 0x723c4)
                                         #6  0x00007f9c60a8e56c __clone3 (libc.so.6 + 0xf556c)
                                         
                                         Stack trace of thread 16813:
                                         #0  0x00007f9c60a13902 __syscall_cancel_arch (libc.so.6 + 0x7a902)
                                         #1  0x00007f9c60a07b9c __internal_syscall_cancel (libc.so.6 + 0x6eb9c)
                                         #2  0x00007f9c60a07be4 __syscall_cancel (libc.so.6 + 0x6ebe4)
                                         #3  0x00007f9c60a81686 ppoll (libc.so.6 + 0xe8686)
                                         #4  0x00007f9c618663a0 g_main_context_iterate_unlocked.isra.0 (libglib-2.0.so.0 + 0x4a3a0)
                                         #5  0x00007f9c6186655f g_main_loop_run (libglib-2.0.so.0 + 0x4a55f)
                                         #6  0x00007f9c60da9f92 gdbus_shared_thread_func.lto_priv.0 (libgio-2.0.so.0 + 0xe8f92)
                                         #7  0x00007f9c61890752 g_thread_proxy (libglib-2.0.so.0 + 0x74752)
                                         #8  0x00007f9c60a0b3c4 start_thread (libc.so.6 + 0x723c4)
                                         #9  0x00007f9c60a8e56c __clone3 (libc.so.6 + 0xf556c)
                                         
                                         Stack trace of thread 16816:
                                         #0  0x00007f9c5fd3eb53 _ZN8async_io7reactor11ReactorLock5react17h7f3be23b904b6eb4E (libglycin-2.so.0 + 0x13eb53)
                                         #1  0x00007f9c5fd37c8d _ZN21async_global_executor9threading16thread_main_loop17hc183cd7da5ecf256E (libglycin-2.so.0 + 0x137c8d)
                                         #2  0x00007f9c5fd36189 _ZN3std3sys9backtrace28__rust_begin_short_backtrace17h55fe912b5053ac4cE (libglycin-2.so.0 + 0x136189)
                                         #3  0x00007f9c5fd36091 _ZN4core3ops8function6FnOnce40call_once$u7b$$u7b$vtable.shim$u7d$$u7d$17hbe883a977f44f7caE (libglycin-2.so.0 + 0x136091)
                                         #4  0x00007f9c5fe719f0 _ZN3std3sys6thread4unix6Thread3new12thread_start17hf83b65292bfddc02E (libglycin-2.so.0 + 0x2719f0)
                                         #5  0x00007f9c60a0b3c4 start_thread (libc.so.6 + 0x723c4)
                                         #6  0x00007f9c60a8e56c __clone3 (libc.so.6 + 0xf556c)
                                         ELF object binary architecture: AMD x86-64
mei 30 14:49:40 systemd[1]: systemd-coredump@0-1-21840_31177-0.service: Deactivated successfully.
mei 30 14:49:40 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@0-1-21840_31177-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
mei 30 14:49:40 systemd[1]: systemd-coredump@0-1-21840_31177-0.service: Consumed 432ms CPU time, 114.2M memory peak.
mei 30 14:49:40 systemd[7166]: dbus-:1.1-org.gnome.Screenshot@0.service: Main process exited, code=dumped, status=11/SEGV
mei 30 14:49:40 systemd[7166]: dbus-:1.1-org.gnome.Screenshot@0.service: Failed with result 'core-dump'.
mei 30 14:49:40 systemd[7166]: dbus-:1.1-org.gnome.Screenshot@0.service: Consumed 7.550s CPU time, 31.6M memory peak.
mei 30 14:49:40 audit: BPF prog-id=116 op=UNLOAD
mei 30 14:49:40 audit: BPF prog-id=115 op=UNLOAD
mei 30 14:49:40 audit: BPF prog-id=114 op=UNLOAD
mei 30 14:49:48 abrt-server[21857]: Deleting problem directory ccpp-2026-05-30-14:49:41.151143-16809 (dup of ccpp-2026-05-29-19:29:49.729830-40613)

mei 30 14:49:48 abrt-applet[7738]: g_app_info_should_show: assertion 'G_IS_APP_INFO (appinfo)' failed
mei 30 14:49:48 abrt-notification[21908]: [🡕] Process 40613 (gnome-screenshot) crashed in ??()
mei 30 14:49:49 abrt-applet[7738]: g_app_info_should_show: assertion 'G_IS_APP_INFO (appinfo)' failed

Screen

Error message after clicking on Take Screenshot while having Screen selected as capture area:

The journal while trying to capture the whole screen:

mei 30 15:02:25 systemd[7166]: Started dbus-:1.1-org.gnome.Screenshot@1.service.
mei 30 15:02:54 gnome-screenshot[26492]: Unable to use GNOME Shell's builtin screenshot interface, resorting to fallback X11.
mei 30 15:02:54 gnome-screenshot[26492]: gdk_pixbuf_get_from_surface: assertion 'width > 0 && height > 0' failed
mei 30 15:02:54 gnome-screenshot[26492]: *** BUG ***
mei 30 15:02:54 gnome-screenshot[26492]: In pixman_region32_init_rect: Invalid rectangle passed
mei 30 15:02:54 gnome-screenshot[26492]: Set a breakpoint on '_pixman_log_error' to debug
mei 30 15:02:54 gnome-screenshot[26492]: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
mei 30 15:02:54 gnome-screenshot[26492]: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
mei 30 15:02:54 gnome-screenshot[26492]: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
mei 30 15:02:54 gnome-screenshot[26492]: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
mei 30 15:02:54 gnome-screenshot[26492]: gtk_window_resize: assertion 'width > 0' failed
mei 30 15:02:54 gnome-screenshot[26492]: Unable to capture a screenshot of any window

I can live without this app and use the new built-in screenshot app for Gnome, but Flameshot is also unable to make a screen capture.

Flameshot

When I try to take a screenshot, then I see two sames messages at the top of my desktop:

Flameshot error
Unable to capture screen

And the journal:

mei 30 16:02:22 systemd[7198]: Started app-gnome-org.flameshot.Flameshot-10661.scope - Application launched by gnome-shell.
mei 30 16:02:23 xdg-desktop-portal-gnome[7954]: Failed to associate portal window with parent window 
mei 30 16:02:23 /usr/libexec/xdg-desktop-portal[7863]: Failed to show access dialog: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Only the focused app is allowed to show a system access dialog
mei 30 16:02:23 org.flameshot.Flameshot.desktop[10661]: flameshot: error: Unable to capture screen
mei 30 16:02:23 org.flameshot.Flameshot.desktop[10661]: flameshot: error: Unable to capture screen
mei 30 16:02:23 flameshot[10661]: Unable to get current screen, starting to use primary screen. It may be a cause of logical error and working with a wrong screen.
mei 30 16:02:23 flameshot[10661]: QLayout: Attempting to add QLayout "" to SidePanelWidget "", which already has a layout
mei 30 16:02:23 flameshot[10661]: Unable to get current screen, starting to use primary screen. It may be a cause of logical error and working with a wrong screen.
mei 30 16:02:24 flameshot[10661]: Unable to get current screen, starting to use primary screen. It may be a cause of logical error and working with a wrong screen.
mei 30 16:02:24 gnome-shell[7461]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
mei 30 16:02:24 org.flameshot.Flameshot.desktop[10661]: flameshot: info: Screenshot aborted.
mei 30 16:02:24 flameshot[10661]: QThreadStorage: entry 2 destroyed before end of thread 0x55d42817ad90
mei 30 16:02:24 flameshot[10661]: QThreadStorage: entry 1 destroyed before end of thread 0x55d42817ad90

Conclusion

I tried all the basic stuff.
I removed and installed with the Software app, both rpm and flatpak.
I tried to install through dnf.
No difference in behaviour.

What I did find was that something with Gnome might have changed since Fedora 43. It seems that Gnome 49 added some restrictions what apps are allowed to do.

In a thread[1] I’ve found this explanation which is the same or similar to what I have in Gnome.

Mar 14 18:55:18 johnny5 xdg-desktop-portal-gnome[427758]: Failed to associate portal window with parent window                               
Mar 14 18:55:18 johnny5 xdg-desktop-portal[427783]: Failed to show access dialog: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied:       
GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Only the focused app is allowed to show a system access dialog

This repeats on every attempt. The flow is:
1. Flameshot calls the Screenshot portal
2. The portal tries to show an access/permission dialog
3. GNOME blocks the dialog because flameshot isn't the focused window
4. Flameshot gets no screenshot data back and reports "Unable to capture screen"

Maybe I should switch over from Gnome to another desktop?
Or is there a way to apply a similar fix in Fedora?


  1. ↩︎

I’ve found for the Screenshot app a Gnome shell extension which allows this app to take a screenshot. Basically, it adds the app to a whitelist to allow access to private screenshotting API.

Probably similar rules/exceptions can be made to other third-party apps.

There is an unsafe workaround which can be applied during a Gnome session. This unsafe worked for the Screenshot app and ksnip – I didn’t remember I had it installed, but it has similar issues like the earlier mentioned apps.
For Flameshot this unsafe method works kinda buggy.
Anyway, to apply it follow the steps below:

  • Open Looking Glass by pressing Alt + F2
  • Enter lg
  • Open Evaluator tab, if not already open
  • Enter global.context.unsafe_mode = true
  • Press Esc to exit Looking Glass

You can undo it by logging out of Gnome and log in back again, or open Looking Glass and enter global.context.unsafe_mode = false to undo it.

Gnome allows screenshots by default using the print screen button. No need for extra apps, shell extensions, or jumping through any other hoops.

Unfortunately, the built-in screen capture tool has no annotation capabilities.

Tried spectacle? Works fine for KDE using Wayland so I can’t see why it wouldn’t work for Gnome, has annotation, OCR and all the screenshot modes you’d expect.

Yes, I tried. It doesn’t work on Gnome, only KDE Plasma

spectacle[42033]: On Wayland, Spectacle requires KDE Plasma's KWin compositor, which does not seem to be available. Use Spectacle on KDE Plasma, or use a different screenshot tool.

Shame.

One more reason to use KDE then, I guess.

I’m actually contemplating wheter or not I should move away from Gnome to another desktop.

Fire it up in a live session from USB. Spend an afternoon with it and see if it tickles your fancy.

You could also have a quick look on here for the topics tagged workstation versus kde versus cosmic and so on ; it’ll give you a feel for the pain points that each desktop brings.

I can’t really comment on Gnome as the last time I bothered with it was back in the early 2000’s before it got opinionated on “you will do it this way as this is the way we have decided it should be done”