neithern / g4music

A light weight music player written in GTK4, with a fluent adaptive user interface.
https://gitlab.gnome.org/neithern/g4music
GNU General Public License v3.0
195 stars 15 forks source link

sub menus flash and jitter #89

Open TechyTrickster opened 1 month ago

TechyTrickster commented 1 month ago

whenever i open up a sub menu, like for volume or a context menu with right click, the sub menu will flash at a low frequency (at about 1 or 2 hz) if there are any screen updates happening in the window, like for the spinning album art or the vu meter. when music is playing Though, if nothing is moving, mousing over and changing the highlight state of a menu doesn't seem to count as an update for the purposes of this issue. But, moving the volume slider does. Its mild annoyance, but for me its starkly highlighted since its the ONLY problem i've come across.

TechyTrickster commented 1 month ago

update to the issue. if i try to change the volume using the app control while music is playing, the app crashes. it does not crash if the music is paused while i'm using the volume slider. So this is a bit more serious, now.

neithern commented 1 month ago

Any other platform info?

Xornent commented 1 month ago

whenever i open up a sub menu, like for volume or a context menu with right click, the sub menu will flash at a low frequency (at about 1 or 2 hz) if there are any screen updates happening in the window, like for the spinning album art or the vu meter. when music is playing Though, if nothing is moving, mousing over and changing the highlight state of a menu doesn't seem to count as an update for the purposes of this issue. But, moving the volume slider does. Its mild annoyance, but for me its starkly highlighted since its the ONLY problem i've come across.

Having the same issue. But I found the flashes and jitters occur only when the music is playing (no matter I turn on the spinning of the album art or not). If the music is stopped, all these flashes go away.

Running on Fedora 40 with GNOME 46. Build from source.

Xornent commented 1 month ago

Here's a screen recording. Well, the volume bar flashes regardless of whether the music is playing

https://github.com/user-attachments/assets/b84dfa75-b6dd-411f-8a2e-838d89c8db1f

TechyTrickster commented 4 weeks ago

Any other platform info?

my apologies! image

neithern commented 4 weeks ago

Looks like gnome 42 released 2 years ago is too old, you'd better upgrade to 46.

Winterhuman commented 3 weeks ago

This seems to be the same issue as https://github.com/neithern/g4music/issues/60. I'm using XFCE 4.18.4 (Linux 6.10.4), so it's not a Gnome specific issue at least.

Interestingly, me and @TechyTrickster both have 1440p displays it seems; I wonder if that (and maybe the DPI being used) is the common factor for reproducing this.

TechyTrickster commented 2 weeks ago

i'm actually learning gtk 4, right now. maybe in a few weeks i could take a look at the code base and try to pin down what the issue could be.

Winterhuman commented 2 weeks ago

Gapless v3.9 (Flatpak) has fixed the volume bar shaking for me. @TechyTrickster does that version fix things for you as well?

neithern commented 2 weeks ago

Gapless v3.9 (Flatpak) has fixed the volume bar shaking for me. @TechyTrickster does that version fix things for you as well?

I wrote a new Leaflet which based on Adw.NavigationView (libadwaita>=1.4) or Gtk.Stack to replace the deprecated Adw.Leaflet (which may caused some layout issues in my app).