Closed joshbarrass closed 8 months ago
Can you check whether this issue still occurs with 1.9.6-beta1?
I'll try 1.9.6-beta1 for a while and see if it's still happening. Since it seems to occur pretty randomly, with no exact reproduction process, I'll just have to use it as I normally do for a while and get back to you if it happens again.
I can confirm it is still happening for me in 1.9.6-beta1. I used it for a day or so with ALSA output and had no problems, but got a freeze within half an hour of switching to PulseAudio. When I was using 1.9.5, I had it happen with both ALSA and Pulse, but so far haven't had it reoccur with ALSA in 1.9.6. Maybe it's just a coincidence, but I'll see if it happens again when using ALSA.
Thanks for the update.
It seems much less common in 1.9.6 than in 1.9.5; I'm struggling to replicate it a second time. I'll continue to keep an eye on it and update if I can.
Is there anything I can do on my side that would help with debugging the issue if I can reproduce it again?
well the only thing that would be truly useful is to always run in gdb, and when the deadlock occurs -- make a break, and full backtrace of all threads. But I also understand this is pretty hard to do from user/usage perspective
I was revisiting bugs, and noticed that you actually posted a backtrace - also I probably didn't notice it the first time, since it was hidden under a cut.
If you could do the same thing on a debug build -- this should help investigating and fixing the issue. For now you could try using another output plugin instead of pulseaudio -- ALSA or pipewire, and see if this helps.
I actually haven't been able to reproduce the crash on 1.9.6 a second time, so I have no idea what caused it last time. I stuck with the PulseAudio plugin for a while to see if I could get it to reoccur, but got nothing after a few weeks of ~daily usage. I've switched back to the ALSA plugin, as this is generally what I use, and have had no problems with it at all.
I'm happy to close this issue if you are, since I can't seem to reproduce it.
sounds good to me, thanks for checking. If it starts reoccurring -- let's reopen :)
Steps to reproduce the problem
The crash seems fairly random, but I've definitely noticed it occurring near the start of a new song (seems similar to #2865, though I haven't been able to replicate the bug by spamming next song). The bug also occurs when deadbeef is paused (and I'd be inclined to say it occurs more frequently when paused). Sometimes, I can go for hours without encountering this bug, other times it occurs within a few minutes of me launching deadbeef.
What's going on? Describe the problem in as much detail as possible.
deadbeef seems to randomly lock up, with little indication of why. When this occurs, playback noticeably seems to stutter and then stop altogether, and the GUI becomes completely blank and unresponsive. My taskbar uses
deadbeef --nowplaying-tf
to display my currently playing song, and this process is also unresponsive, causing my taskbar to freeze. Cannot exit the software with ALT+F4, I have to kill it. I have tried using both the PulseAudio plugin and the ALSA plugin, and the problem occurs for both.Information about the software:
Problem did not occur in 1.8.4, but has started occurring since I upgraded from that version.
Plugins installed: all standard plugins included in the deb, Musical Spectrum v0.2, and GSF Decoder (though bug occurs when not playing GSFs).
Deadbeef version: 1.9.5, installed from deb OS: Ubuntu 20.04 DE: i3
gdb dump
``` (gdb) thread apply all backtrace Thread 1 "deadbeef-main" received signal SIGINT, Interrupt. __lll_lock_wait (futex=futex@entry=0x69bf00, private=0) at lowlevellock.c:52 52 lowlevellock.c: No such file or directory. (gdb) generate-core-file warning: Memory read failed for corefile section, 4096 bytes at 0xffffffffff600000. Saved corefile core.12416 (gdb) thread apply all backtrace Thread 209 (Thread 0x7fffda53e700 (LWP 25077)): #0 __lll_lock_wait (futex=futex@entry=0x69bf00, private=0) at lowlevellock.c:52 #1 0x00007ffff7e33131 in __GI___pthread_mutex_lock (mutex=0x69bf00) at ../nptl/pthread_mutex_lock.c:115 #2 0x00000000004378f9 in () #3 0x000000000042e13d in () #4 0x00007fffee76c634 in () at /opt/deadbeef/lib/deadbeef/pulse.so #5 0x00007ffff7e30609 in start_thread (arg=