strawberrymusicplayer / strawberry

:strawberry: Strawberry Music Player
https://www.strawberrymusicplayer.org/
GNU General Public License v3.0
2.67k stars 183 forks source link

Random freezes, when opening context menu with right click #1478

Closed qarmin closed 1 month ago

qarmin commented 2 months ago

Describe the bug When clicking at some music files with right mouse button, then I see strange ~1s freezes

To Reproduce Change music files, randomly click at the with RMB

Video Freezes(~0.5 - 1.5s) are visible on fading cover and mood bar at the bottom

https://github.com/strawberrymusicplayer/strawberry/assets/41945903/6aaa5c5f-5f55-4e07-8a6a-f7a679eb27b3

System Information:

jonaski commented 2 months ago

What audio format and what GStreamer version are you using?

qarmin commented 2 months ago

Ubuntu 24.04 Gstreamer 1.24.2-1ubuntu1

I have only MP3 with bitrate 128kb/s - 320kb/s

  Duration: 00:03:36.48, start: 0.025056, bitrate: 133 kb/s
  Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc57.24

this is probably related to big number of music files on list. With smaller number, of items(128) I cannot reproduce problem.

It seems that sometimes when right-clicking, only the gui thread would freeze and the music would still play - maybe when right-clicking, some operations are performed on the whole list i.e. counting all the items on list?

AllKind commented 2 months ago

I noticed that happening with my very big playlist 15.000+ songs, when I add a couple of songs (somewhere in the middle of the playlist, to check duplicates - don't know if that's a relevant thing) and then right-click a track just below the ones I just added. Mostly .flac and some .mp3 files....