Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
childoftheabyss opened this issue Oct 9, 2024 · 2 comments
Labels

Comments

@childoftheabyss
Copy link

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
Copy link
Member

kuba160 commented Oct 9, 2024

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...

@childoftheabyss
Copy link
Author

childoftheabyss commented Dec 10, 2024

Sorry my laaate reply, yes, I am using MPRISv2 plugin. I can try later remove the plugin and see what happens. I think it is ok if deadbeef hangs in this situation but not bringing the entire system down. An alternative would be to not play anything else if a file can´t be read, but then that means if only one file is problematic in the entire playlist, the playlist will stop playing at all. Or have a maximum tries before giving up. I concede there is no straightforward solution in terms of UX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants