You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmus hangs on OSX after running for some time #391
After leaving it open for a few days, paused, when I go to resume playback, cmus hangs after hitting the playback key. This happens happens to me every 3 days; I use cmus every day.
I have to kill -9 the process. It doesn't respond to a regular kill or CTRL-C.
If you can tell me how to get more debug information or a thread dump, I will the next time this happens.
@Wang-Yue I use the default output driver, whatever it is. I see the warning "This application... is using the deprecated Carbon Component Manager" when first starting playback. This continues to happen once every couple of days since I've reported it.
Hey folks, sorry for the back and forth. I do still see this issue while using cmus v2.7.1. Since it's intermittent and hard to reproduce, I haven't come back to update this bug, but I have some new insights which might be helpful:
I usually have to kill cmus at the start of each day, after my laptop has awoken from sleep. So the issue occurs either because the laptop was asleep, or a long time period has passed since I last used cmus.
cmus freezes when I hit play. Before I hit play, the UI is functional.
Here are some stats on how frequently this occurs. I have cmus open in a terminal and it doesn't get closed until my system reboots. I reboot once every few days for various reasons.
# How many times have I launched cmus
cat ~/.histfile | grep cmus | grep -v cat | grep -v brew | grep -v pkill | wc -l
114
# How many times have I had to forcefully kill it using pkill
cat ~/.histfile | grep cmus | grep -v cat | grep -v brew | grep pkill | wc -l
53
So it happens quite regularly and reliably -- once every 2-3 days, as I originally reported.
I have cmus installed via homebrew and can try the latest version (2.8.0 rc) if you think there are any related changes.
Here's the rather succinct backtrace. This was obtained from a cmus not built with debugging symbols.
(gdb) backtrace
#0 0x00007fff8f7dede6 in __psynch_mutexwait () from /usr/lib/system/libsystem_kernel.dylib
#1 0x00007fff8ed35e4a in ?? () from /usr/lib/system/libsystem_pthread.dylib
#2 0x0000000000000000 in ?? ()
@Wang-Yue cool, although the README doesn't mention anything about how to use the coreaudio plugin, and coreaudio isn't installed/enabled by the homebrew package, which I assume is how most OSX cmus users get it installed. So to actually move users to the coreaudio plugin and resolve problems like the one in this GH issue, we should update the README with instructions and/or improve the homebrew package.
this issue happens to me oftenly and i do keep my cmus updated with brew
i can kill it with pkill -3, though, no need for -9
it seems to happen most after i come back to it when leaving it open and letting my computer sleep for some time, but it's hard to reproduce it consistently (i don't know how much time i have to leave it open, for one)
Activity
[-]cmus hangs sometimes on OSX[/-][+]cmus hangs on OSX after running for some time[/+]Wang-Yue commentedon Feb 2, 2016
which output driver do you use?
azadkuh commentedon Feb 11, 2016
@philc
i have the same problem but only on the
smbfsfolders wherecmusfreezes frequently (esp when the system sleeps and then resumes)and for
smbfsi guess the problem is mostly caused by OS X itself, googling the problem, there are many freeze reports and tweaks.philc commentedon Feb 12, 2016
My music is not stored on smb.
On Feb 11, 2016 1:44 AM, "amir zamani" [email protected] wrote:
philc commentedon Feb 26, 2016
@Wang-Yue I use the default output driver, whatever it is. I see the warning "This application... is using the deprecated Carbon Component Manager" when first starting playback. This continues to happen once every couple of days since I've reported it.
Wang-Yue commentedon Feb 26, 2016
@philc you are using the outdated one. update your cmus and try again.
Wang-Yue commentedon Sep 21, 2016
Close this one. never got a reply. Unable to reproduce.
philc commentedon Sep 21, 2016
I updated cmus and haven't seen this hanging issue since.
On Tue, Sep 20, 2016 at 11:09 PM, Yue Wang [email protected] wrote:
flyingmutant commentedon Sep 21, 2016
Great! Closing.
philc commentedon May 25, 2017
Hey folks, sorry for the back and forth. I do still see this issue while using cmus v2.7.1. Since it's intermittent and hard to reproduce, I haven't come back to update this bug, but I have some new insights which might be helpful:
So it happens quite regularly and reliably -- once every 2-3 days, as I originally reported.
I have cmus installed via homebrew and can try the latest version (2.8.0 rc) if you think there are any related changes.
mahkoh commentedon May 25, 2017
Try attaching a debugger when cmus hangs.
philc commentedon Jun 1, 2017
Here's the rather succinct backtrace. This was obtained from a cmus not built with debugging symbols.
kolen commentedon Aug 3, 2017
Sometimes (rarely) freezes on my machine too, here is stacktrace. Possibly CoreAudio-related deadlock.
Wang-Yue commentedon Aug 4, 2017
you are using ao output. please update your cmus installation.
kolen commentedon Aug 4, 2017
aois broken and will be deprecated in newer versions? I'll try version frommaster, latest stable2.7.1has onlyaoon Mac OS.Wang-Yue commentedon Aug 5, 2017
yes. core audio plugin is the future. ao is for compatibility fallback only
philc commentedon Oct 5, 2017
@Wang-Yue cool, although the README doesn't mention anything about how to use the coreaudio plugin, and coreaudio isn't installed/enabled by the homebrew package, which I assume is how most OSX cmus users get it installed. So to actually move users to the coreaudio plugin and resolve problems like the one in this GH issue, we should update the README with instructions and/or improve the homebrew package.
aki-cat commentedon Feb 12, 2018
this issue happens to me oftenly and i do keep my cmus updated with brew
i can kill it with
pkill -3, though, no need for-9it seems to happen most after i come back to it when leaving it open and letting my computer sleep for some time, but it's hard to reproduce it consistently (i don't know how much time i have to leave it open, for one)
sijad commentedon Apr 3, 2018
same problem here, I'm using
v2.8.0-rc0andsoftvol=true.gshmu commentedon Jul 3, 2018
after reconnect blue tooth not hang but nothing output.
after sleep will hang...
MAC OS X
sijad commentedon Jul 3, 2018
after switching to
coreaudio(:set output_plugin=coreaudio) I never encounter this problem. can you please confirm? I'm using HEAD version though.pgaskin commentedon Dec 13, 2020
Is this still an issue?
philc commentedon Dec 13, 2020
pgaskin commentedon Dec 13, 2020
OK, I think this can probably be closed then. @nefthy?