Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GNOME shell crashes when dash-to-dock extension is disabled in overview #2179

Closed
taoky opened this issue Mar 27, 2024 · 10 comments
Closed

GNOME shell crashes when dash-to-dock extension is disabled in overview #2179

taoky opened this issue Mar 27, 2024 · 10 comments

Comments

@taoky
Copy link
Contributor

taoky commented Mar 27, 2024

With current code from master (1053b3e), dash-to-dock would make shell crash in both GNOME 45 and 46. This could be reproduced by:

  1. Open Overview (both window picker and app grid could trigger this)
  2. Lock the screen, or run gnome-extensions disable [email protected] if sshing.

My local bisecting result shows that de35ab6 is the first bad commit (weird) when testing with GNOME 45. And this diff patch "workarounds" the crash in both GNOME 45 and 46:

diff --git a/_stylesheet.scss b/_stylesheet.scss
index b23cc43..adc45af 100644
--- a/_stylesheet.scss
+++ b/_stylesheet.scss
@@ -251,10 +251,6 @@ $dock_style_modes: [null, shrink, extended, extended-shrink];
     }
 }
 
-.dash-item-container .overview-tile .overview-icon,
-.dash-item-container .show-apps .overview-icon {
-    background-color: rgba(255,255,255,0);
-}
 
 .dash-item-container .overview-tile:hover .overview-icon,
 .dash-item-container .overview-tile.focused .overview-icon,

This issue looks like https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7339 but it's slightly different (crashing widget is Gjs_ui_dash_ShowAppsIcon), and I have tried to find the cause but no clue. And this bug, if exists in shell, could only be triggered by an extension. I have also tried to build a simpler extension example, but it does not crash with a CSS-only extension.

bt full (GNOME 46):
bt-full-fedora-gnome46.txt

@vanvugt
Copy link
Collaborator

vanvugt commented Mar 28, 2024

Thanks for the bug report. dash-to-dock shouldn't be able to cause a segfault like that, and particularly not with style changes. It looks like we should track this upstream just keeping in mind the only way to reproduce it is with dash-to-dock.

@vanvugt
Copy link
Collaborator

vanvugt commented Mar 28, 2024

I'm working on an upstream fix so let's track this in https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7339 instead.

@vanvugt
Copy link
Collaborator

vanvugt commented Jan 9, 2025

The upstream fix is https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3252, and it's already fixed in Ubuntu.

@nleanba
Copy link

nleanba commented Feb 4, 2025

Even if this gets fixed in upstream GNOME, it would be nice if you could update the extension to not have the problematic CSS rule -- it might take a while until GNOME is patched and the update reaches e.g. my laptop.

While I agree that this is not "your" bug, but an upstream bug, I still think it would be best to implement a workaround here. I would like to be able to use the extension again before GNOME 49 or even 50 gets released with the fix.

@bradchristensen
Copy link

In the meantime, you can manually apply the patch mentioned by @taoky on your system by modifying ~/.local/share/gnome-shell/extensions/dash-to-dock@[email protected]/stylesheet.css (it's the first few lines at the top of the file), bearing in mind that it might get overwritten if the extension updates itself. For me it seems to make no difference to the dock appearance.

@vanvugt
Copy link
Collaborator

vanvugt commented Feb 5, 2025

Since @sergio-costas wrote the "first bad commit" de35ab6 he can decide whether modifying that is an acceptable workaround for non-Ubuntu systems. But I suspect it may not even be a reliable workaround if any stylesheet changes could cause the same crash.

@sergio-costas
Copy link
Collaborator

I'm not sure... I tested it in Gnome Shell 47 and seems to have no aesthetic impact, but as @vanvugt said, that's not even a reliable workaround because the bug is in Gnome Shell, so a future patch in dash-to-dock can easily reinsert it...

@vanvugt
Copy link
Collaborator

vanvugt commented Feb 6, 2025

I guess there's a stochastic benefit to changing the CSS. If it reduces the frequency of the crashes then that reduces the burden of repeated crash reports we get here.

@sergio-costas
Copy link
Collaborator

You are right... I'll prepare a quick patch and do more tests.

@sergio-costas
Copy link
Collaborator

@vanvugt @bradchristensen I'm unable to reproduce the bug neither with the dash-to-dock from the extensions page, nor with the code from master. I've been doing the tests in a VM with Fedora 40 (Gnome Shell 46).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants