andlabs / ui

Platform-native GUI library for Go.
Other
8.33k stars 652 forks source link

`SetTitle()` causes Kubuntu to hang when called with any frequency at all. #364

Open MMulthaupt opened 4 years ago

MMulthaupt commented 4 years ago

In one application we report some sort of progress in the title bar, so the user can see progress even when the application is minimized, e.g. [34%] My Application or such. Obviously one should not needlessly spam the OS with UI updates. Still, we were dumbfounded to find that Kubuntu could be made to lock up almost entirely by calling SetTitle() 10 times per second. While all applications are still responsive, clicking anywhere on the Desktop is unresponsive. Also the taskbar would lock up while trying to render an animation of the tab of the application appearing and take multiple seconds to settle in. This happens on Kubuntu 18.04. We worked around the issue by reducing the update rate to 1Hz.

andlabs commented 4 years ago

Can you try reproducing this with a non-libui application?