fix: prevent dash icon teardown crashes - #340
Open
mihaly044 wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Prevent GNOME Shell from aborting when a transient application item is removed from the hidden Dash2Dock Lite Dash.
Fixes the teardown path reported in #299 on GNOME 49/50.
Root cause
The crash is the Clutter invariant failure:
A diagnostic Dash subclass recorded the active redisplay path in shared memory. At the crash it was left at
custom begin 21, proving that the failingdash.js:77 → dash.js:788stack belonged to the extension-created Dash rather than the overview Dash.Inspection of the fresh core resolved the recursive actor chain as:
The assertion fired in the
StBinthat owns the BaseIcon texture. Dash2Dock Lite made that nested GNOME-ownedStIconreactive and hover-tracked. Removing a transient app while its texture was under pointer input could therefore drive a hover/style refresh while the BaseIcon subtree was being destroyed, allowing the icon bin child to be refreshed duringdestroy_all_children().Changes
The magnification renderer, favorites, running indicators, and dock layout remain unchanged.
Verification
Tested on Fedora 44, GNOME Shell 50.3, Wayland, Dash2Dock Lite v100.
Before the final fix:
After the fix, using the same Showtime-heavy workload and pointer pattern:
node --checkandgit diff --check.This is related to, but distinct from, #336, which reports a null icon during
_adjustIconSize().