Skip to content

Workaround for crashing when many tooltips are shown consecutively#563

Open
flodavid wants to merge 3 commits intoelementary:mainfrom
flodavid:wayland-crash-workaround
Open

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

Conversation

@flodavid
Copy link
Copy Markdown

@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
Copy Markdown
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

@flodavid flodavid force-pushed the wayland-crash-workaround branch from 4fc351d to 5c5b953 Compare March 2, 2026 22:05
@flodavid flodavid force-pushed the wayland-crash-workaround branch 2 times, most recently from 29b7319 to 9ed958f Compare March 13, 2026 12:54
@flodavid flodavid force-pushed the wayland-crash-workaround branch from 9ed958f to b6968f1 Compare March 13, 2026 18:42
@flodavid

This comment was marked as resolved.

Copy link
Copy Markdown
Member

@ryonakano ryonakano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for my late re-review, leaving some coding style comments.

@flodavid
Copy link
Copy Markdown
Author

flodavid commented Apr 8, 2026

No problem. I addressed your feedback, thanks.

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

2 participants