Pinta icon indicating copy to clipboard operation
Pinta copied to clipboard

Freezes completely when waiting for tooltip

Open Frakits opened this issue 10 months ago • 6 comments

Description Whenever you hover over an item where a tooltip is expected, the program freezes and stops functioning.. (occasionally also crashes the whole desktop environment)

To Reproduce Compile Pinta master Hover over a tool for a few seconds Freezes

Additional Info https://github.com/user-attachments/assets/12a75e6e-17f8-4bec-a1d9-9b0cf370642c

Version EndeavourOS Mercury and Pinta git (cloned from master)

Frakits avatar Feb 24 '25 11:02 Frakits

Thanks for the report! I haven't seen this before in my testing on Linux, but I'm wondering if it might be an issue with either Wayland or Vulkan

I've tested on Wayland on Ubuntu 24.04 VM and didn't have this issue, or any of the warnings you had in the console..

Could you try launching with the GSK_RENDER environment variable set to either gl or cairo to have GTK use a different rendering backend than Vulkan? (https://docs.gtk.org/gtk4/running.html#gsk_renderer)

cameronwhite avatar Feb 25 '25 03:02 cameronwhite

Hi, thanks for replying to my issue! I tried doing what you've told me to do and it has produced mixed results.

Both renderer options seem to fix the initial issue but produce different side effects:

  • GL renderer produces artifacts in the UI
  • Cairo slows down canvas rendering

https://github.com/user-attachments/assets/4a7578f1-4481-4686-9294-a22d935bf03c

Frakits avatar Feb 25 '25 15:02 Frakits

Interesting, thanks! One other thing to try would be to see if you get similar freezes with tooltips in other applications, e.g. gtk4-demo (I think launching the Builder demo should have tooltips when hovering over the toolbar buttons).

cameronwhite avatar Feb 26 '25 02:02 cameronwhite

Just tried the demo and GOverlay to see if they have similar problems and turns out they don't. This problem definitely resides within Pinta itself.

Frakits avatar Feb 26 '25 07:02 Frakits

Thanks for checking! I realized I should have asked you to run the libadwaita demo (adwaita-1-demo) instead in case there are any differences from libadwaita's widgets and stylesheets vs the defaults of GTK

Pinta isn't doing anything very custom in terms of its widgets, so I'm hoping it's not actually Pinta-specific :)

cameronwhite avatar Feb 26 '25 22:02 cameronwhite

Thanks for checking! I realized I should have asked you to run the libadwaita demo (adwaita-1-demo) instead in case there are any differences from libadwaita's widgets and stylesheets vs the defaults of GTK Just tried this one too and doesn't seem to freeze either...

Frakits avatar Feb 27 '25 09:02 Frakits