DeaDBeeF-Player / deadbeef

DeaDBeeF Player
https://deadbeef.sourceforge.io/
Other
1.65k stars 178 forks source link

deadbeef freezes or lags entire computer if partition where the music files are is not mounted #3137

Open childoftheabyss opened 1 month ago

childoftheabyss commented 1 month ago

Steps to reproduce the problem

  1. Have a partition for the music files that for unrelated reasons won´t mount during boot (in my specific case, a non-LUKS partition which only decrypts at boot time 80-90% of the time).
  2. Boot the system and start deadbeef.

or

  1. Umount the partition with the music files.
  2. Start deadbeef.

What's going on? Describe the problem in as much detail as possible.

I have an unconventional setup in which I configured to decrypt both the system partition (LUKS) and an extra partition (non-LUKS) during boot time. For unrelated reasons, sometimes the latter won´t decrypt, so I have a terminal alias for a quick decrypt/mount. However, if I forget to mount and start deadbeef in a playlist full of music files in that unmounted partition, deadbeef is not able to read the files and complains, opening the log window. It tries to play each track in the playlist, but while doing this, the entire computer (UI, keyboard) starts to lag and the Gnome interface starts to bug (top bar disappears, icons with wrong background, black spots, etc). deadbeef UI also starts to lag, to the point where the animation of trying to play each track freezes together with the log window. CTRL+ALT+DEL doesn't work, keyboard becomes unresponsive, Gnome clock stops ticking, complete UI freezing. I need to reset (hold the power button) the computer. Only the mouse pointer continues to move.

Less frequently, it may happen not a total freeze, but the entire computer (not only deadbeef's) UI will lag until deadbeef finishes trying to play every single track that is in that unmounted partition.

I would expect in this case the error log to appear and even try to play the next track, but not bringing down the system.

Information about the software:

deadbeef version: 1.9.6 OS: PopOS 22.04 LTS Gnome 42.9 Windowing system X11

kuba160 commented 1 month ago

Are you using any extra plugins such as mpris plugin? And yes, having deadbeef try to load non-existent tracks by taking 100% cpu might not be best from user perspective, you can even make an infinite loop if you enable Repeat all. I just tested deadbeef on windows and this manages to either hang, soft hang or crash the player, guess this is a corner case that wasn't tested well enough...