Skip to content

Workaround for crashing when many tooltips are shown consecutively#563

Open
flodavid wants to merge 1 commit intoelementary:mainfrom
flodavid:wayland-crash-workaround
Open

Workaround for crashing when many tooltips are shown consecutively#563
flodavid wants to merge 1 commit intoelementary:mainfrom
flodavid:wayland-crash-workaround

Conversation

@flodavid
Copy link

@flodavid flodavid commented Jan 18, 2026

Add delay of 100ms before showing dock tooltips:
Fixes #559. After researching it, the culprit seems to be the Nvidia driver, which causes a problem with GTK.Popup, which is used as tooltips when hovering launchers in the doc since #441.

Adding a big enough delay before showing the tooltip seems to prevent the error (or at least making it very unlikely). I tried 1ms and it seemed to reduces the crashes quite a bit already, but I succeeded with 50ms by increasing the pointer speed, so I set it to 100ms.
This can also have a positive side effect: When rapidly hovering the launchers, every tooltip were briefly shown, but not long enough to be readable. So the delay makes it less distracting a restores the behaviour before #441.

I only added the delay to the Launcher class, and not the parent BaseItem. Feel free to rework the PR or close it to implement a cleaner fix. Maybe a proper fix should be added to GTK, but a simple workaround by adding a delay like here would not be acceptable I guess.

@danirabbit danirabbit mentioned this pull request Jan 21, 2026
2 tasks
@danirabbit danirabbit requested a review from a team February 3, 2026 18:12
@flodavid flodavid force-pushed the wayland-crash-workaround branch from 36e88cc to 4fc351d Compare February 7, 2026 16:40
@flodavid
Copy link
Author

flodavid commented Feb 7, 2026

I moved the code to BaseItem since existing code was moved out of Launcher (I tested with the latest changes and crash still happens without this PR), and rebased to fix conflicts

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

Successfully merging this pull request may close these issues.

Crash randomly when opening

1 participant