OttoAllmendinger / gnome-shell-screenshot

Gnome Shell extension for making and uploading screenshots
MIT License
267 stars 53 forks source link

Gnome Shell crashes after using Screenshot Tool #147

Closed Meteormesh closed 2 years ago

Meteormesh commented 3 years ago

I am on a fresh Fedora installation with Gnome 40. Doesn't matter which function I use, it always crashes.

OttoAllmendinger commented 3 years ago
  1. Can you describe the crash in more detail?
  2. please provide the output of these commands
    
    journalctl --user /usr/bin/gjs --boot

journalctl --user /usr/bin/gnome-shell --boot

Meteormesh commented 3 years ago
  1. I just select the tool, then I get logged out and after that I log back in and often all my extensions get disabled.

    • Journal begins at Thu 2021-04-29 19:11:00 CEST, ends at Mon 2021-05-10 15:51> May 10 12:49:42 fedora org.gnome.Chara[7752]: JS LOG: Failed to search by keywo>

-- Journal begins at Thu 2021-04-29 19:11:00 CEST, ends at Mon 2021-05-10 15:54:10 CEST. -- May 10 12:46:59 fedora gnome-shell[4016]: Adding device '/dev/dri/card0' (amdgpu) using atomic mode setting. May 10 12:46:59 fedora gnome-shell[4016]: Boot VGA GPU /dev/dri/card0 selected as primary May 10 12:46:59 fedora gnome-shell[4016]: Disabling DMA buffer screen sharing for driver 'amdgpu'. May 10 12:46:59 fedora gnome-shell[4016]: Using public X11 display :0, (using :1 for managed services) May 10 12:46:59 fedora gnome-shell[4016]: Using Wayland display name 'wayland-0' May 10 12:47:00 fedora gnome-shell[4016]: Skipping parental controls support as it’s disabled May 10 12:47:00 fedora gnome-shell[4016]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly. May 10 12:47:00 fedora gnome-shell[4016]: Will monitor session 2 May 10 12:47:00 fedora gnome-shell[4016]: Telepathy is not available, chat integration will be disabled. May 10 12:47:01 fedora gnome-shell[4016]: [Blur my Shell] enabling extension... May 10 12:47:01 fedora gnome-shell[4016]: [Blur my Shell] blurring top panel May 10 12:47:01 fedora gnome-shell[4016]: [Blur my Shell] blurring dash May 10 12:47:01 fedora gnome-shell[4016]: [Blur my Shell] searching for dash May 10 12:47:01 fedora gnome-shell[4016]: [Blur my Shell] blurring overview May 10 12:47:01 fedora gnome-shell[4016]: [Blur my Shell] blurring lockscreen May 10 12:47:01 fedora gnome-shell[4016]: [Blur my Shell] extension enabled. May 10 12:47:01 fedora gnome-shell[4016]: loading user theme: /home/mirco/.themes/Nordic-Polar/gnome-shell/gnome-shell.css May 10 12:47:01 fedora gnome-shell[4016]: Extension user-theme@gnome-shell-extensions.gcampax.github.com already installed in /home/mirco/.local/share/gnome-shell/extensions/user-theme@gnome-shell-extensions.gcampax.github.com. /usr/shar> May 10 12:47:01 fedora gnome-shell[4016]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation May 10 12:47:03 fedora gnome-shell[4016]: GNOME Shell started at Mon May 10 2021 12:47:00 GMT+0200 (Central European Summer Time) May 10 12:47:03 fedora gnome-shell[4016]: Registering session with GDM May 10 12:47:23 fedora gnome-shell[4016]: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed May 10 12:47:23 fedora gnome-shell[4016]: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed May 10 12:47:23 fedora gnome-shell[4016]: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed May 10 12:47:34 fedora gnome-shell[5393]: Adding device '/dev/dri/card0' (amdgpu) using atomic mode setting. May 10 12:47:34 fedora gnome-shell[5393]: Boot VGA GPU /dev/dri/card0 selected as primary May 10 12:47:34 fedora gnome-shell[5393]: Disabling DMA buffer screen sharing for driver 'amdgpu'. May 10 12:47:34 fedora gnome-shell[5393]: Using public X11 display :0, (using :1 for managed services) May 10 12:47:34 fedora gnome-shell[5393]: Using Wayland display name 'wayland-0' May 10 12:47:35 fedora gnome-shell[5393]: Skipping parental controls support as it’s disabled May 10 12:47:35 fedora gnome-shell[5393]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly. May 10 12:47:35 fedora gnome-shell[5393]: Will monitor session 5 May 10 12:47:35 fedora gnome-shell[5393]: Telepathy is not available, chat integration will be disabled. May 10 12:47:35 fedora gnome-shell[5393]: Failed to create file /run/user/1000/gnome-shell-disable-extensions: Error opening file “/run/user/1000/gnome-shell-disable-extensions”: File exists May 10 12:47:35 fedora gnome-shell[5393]: Extension user-theme@gnome-shell-extensions.gcampax.github.com already installed in /home/mirco/.local/share/gnome-shell/extensions/user-theme@gnome-shell-extensions.gcampax.github.com. /usr/shar> May 10 12:47:36 fedora gnome-shell[5393]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation May 10 12:47:37 fedora gnome-shell[5393]: GNOME Shell started at Mon May 10 2021 12:47:35 GMT+0200 (Central European Summer Time) May 10 12:47:37 fedora gnome-shell[5393]: Registering session with GDM May 10 12:47:40 fedora gnome-shell[5393]: Received error from D-Bus search provider firefox.desktop: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable May 10 12:47:40 fedora gnome-shell[5393]: Received error from D-Bus search provider firefox.desktop: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable May 10 12:47:50 fedora gnome-shell[5393]: [Blur my Shell] enabling extension... May 10 12:47:50 fedora gnome-shell[5393]: [Blur my Shell] blurring top panel May 10 12:47:50 fedora gnome-shell[5393]: [Blur my Shell] blurring dash May 10 12:47:50 fedora gnome-shell[5393]: [Blur my Shell] searching for dash May 10 12:47:50 fedora gnome-shell[5393]: [Blur my Shell] blurring overview May 10 12:47:50 fedora gnome-shell[5393]: [Blur my Shell] blurring lockscreen May 10 12:47:50 fedora gnome-shell[5393]: [Blur my Shell] extension enabled. May 10 12:47:50 fedora gnome-shell[5393]: loading user theme: /home/mirco/.themes/Nordic-Polar/gnome-shell/gnome-shell.css May 10 12:48:28 fedora gnome-shell[5393]: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed May 10 12:48:28 fedora gnome-shell[5393]: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed May 10 12:48:28 fedora gnome-shell[5393]: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed May 10 12:48:40 fedora gnome-shell[7054]: Adding device '/dev/dri/card0' (amdgpu) using atomic mode setting. May 10 12:48:40 fedora gnome-shell[7054]: Boot VGA GPU /dev/dri/card0 selected as primary May 10 12:48:40 fedora gnome-shell[7054]: Disabling DMA buffer screen sharing for driver 'amdgpu'.

OttoAllmendinger commented 3 years ago

thank you

can you please try this command (careful, it might trigger the bug and crash gnome-shell)

gjs ~/.local/share/gnome-shell/extensions/gnome-shell-screenshot@ttll.de/auxhelper.js --filename /tmp/test.png --window
Meteormesh commented 3 years ago

That command worked and didn't trigger the bug.

raffaem commented 3 years ago

I also experienced a crash of the shell, but uninstalling and reinstalling the extension fixed it.

journalctl --user /usr/bin/gjs --boot

has no entries.

With:

journalctl --user /usr/bin/gnome-shell --boot

I have some failed assertions:

Jun 11 09:59:24 fedora gnome-shell[4148]: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Jun 11 09:59:24 fedora gnome-shell[4148]: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Jun 11 09:59:24 fedora gnome-shell[4148]: Some code accessed the property 'SecondaryMonitorDisplay' on the module 'workspacesView'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is >
Jun 11 09:59:24 fedora gnome-shell[4148]: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
[...]
Jun 11 10:01:51 fedora gnome-shell[4148]: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
Jun 11 10:01:51 fedora gnome-shell[4148]: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
Jun 11 10:01:51 fedora gnome-shell[4148]: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
andreluisos commented 3 years ago

Same issue here.

Noremacam commented 3 years ago

I can also reproduce this gnome shell crash with Fedora 34. It only crashes if I am in Wayland. On Xorg, taking a screenshot does not cause a crash.

Fedora auto-generated this report for this issue: https://retrace.fedoraproject.org/faf/reports/186289/

taleroangel commented 3 years ago

Same happened to me : Fedora 34 with Gnome 40 in Wayland

statquant commented 3 years ago

Same happened to me too, fedora 34 (default everything), gnome 40

journalctl --user /usr/bin/gjs --boot
# empty
journalctl --user /usr/bin/gnome-shell --boot
-- Journal begins at Mon 2021-07-26 15:28:57 BST, ends at Tue 2021-07-27 09:44:54 BST. --
Jul 27 09:40:42 fedora gnome-shell[2930]: Adding device '/dev/dri/card0' (i915) using atomic mode setting.
Jul 27 09:40:42 fedora gnome-shell[2930]: Boot VGA GPU /dev/dri/card0 selected as primary
Jul 27 09:40:43 fedora gnome-shell[2930]: Using public X11 display :0, (using :1 for managed services)
Jul 27 09:40:43 fedora gnome-shell[2930]: Using Wayland display name 'wayland-0'
Jul 27 09:40:43 fedora gnome-shell[2930]: Skipping parental controls support as it’s disabled
Jul 27 09:40:43 fedora gnome-shell[2930]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Jul 27 09:40:43 fedora gnome-shell[2930]: Will monitor session 2
Jul 27 09:40:43 fedora gnome-shell[2930]: Telepathy is not available, chat integration will be disabled.
Jul 27 09:40:44 fedora gnome-shell[2930]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Jul 27 09:40:46 fedora gnome-shell[2930]: GNOME Shell started at Tue Jul 27 2021 09:40:44 GMT+0100 (British Summer Time)
Jul 27 09:40:46 fedora gnome-shell[2930]: Registering session with GDM
Jul 27 09:41:19 fedora gnome-shell[2930]: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
Jul 27 09:41:19 fedora gnome-shell[2930]: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
Jul 27 09:41:19 fedora gnome-shell[2930]: _gtk_style_provider_private_get_settings: assertion 'GTK_IS_STYLE_PROVIDER_PRIVATE (provider)' failed
Jul 27 09:41:28 fedora gnome-shell[4320]: Adding device '/dev/dri/card0' (i915) using atomic mode setting.
Jul 27 09:41:29 fedora gnome-shell[4320]: Boot VGA GPU /dev/dri/card0 selected as primary
Jul 27 09:41:29 fedora gnome-shell[4320]: Using public X11 display :0, (using :1 for managed services)
Jul 27 09:41:29 fedora gnome-shell[4320]: Using Wayland display name 'wayland-0'
Jul 27 09:41:29 fedora gnome-shell[4320]: Skipping parental controls support as it’s disabled
Jul 27 09:41:29 fedora gnome-shell[4320]: Unset XDG_SESSION_ID, getCurrentSessionProxy() called outside a user session. Asking logind directly.
Jul 27 09:41:29 fedora gnome-shell[4320]: Will monitor session 5
Jul 27 09:41:30 fedora gnome-shell[4320]: Telepathy is not available, chat integration will be disabled.
Jul 27 09:41:30 fedora gnome-shell[4320]: Failed to create file /run/user/1000/gnome-shell-disable-extensions: Error opening file “/run/user/1000/gnome-shell-disable-extensions”: File exists
Jul 27 09:41:30 fedora gnome-shell[4320]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Jul 27 09:41:32 fedora gnome-shell[4320]: GNOME Shell started at Tue Jul 27 2021 09:41:30 GMT+0100 (British Summer Time)
Jul 27 09:41:32 fedora gnome-shell[4320]: Registering session with GDM
OttoAllmendinger commented 3 years ago

Thanks everybody, I have finally been able to reproduce the issue and I am working on a fix.

OttoAllmendinger commented 3 years ago

Fix is pushed to master branch and pending review on extensions.gnome.org.

OttoAllmendinger commented 2 years ago

Please try lastest master