Skip to content

cmus hangs on OSX after running for some time #391

Closed

Description

@philc

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.

Activity

  1. changed the title [-]cmus hangs sometimes on OSX[/-] [+]cmus hangs on OSX after running for some time[/+] on Jan 27, 2016
  2. Wang-Yue commented on Feb 2, 2016

    @Wang-Yue
    Contributor

    which output driver do you use?

  3. azadkuh commented on Feb 11, 2016

    @azadkuh

    @philc
    i have the same problem but only on the smbfs folders where cmus freezes frequently (esp when the system sleeps and then resumes)

    and for smbfs i guess the problem is mostly caused by OS X itself, googling the problem, there are many freeze reports and tweaks.

  4. philc commented on Feb 12, 2016

    @philc
    Author

    My music is not stored on smb.
    On Feb 11, 2016 1:44 AM, "amir zamani" [email protected] wrote:

    @philc https://github.com/philc
    i have the same problem but only on the smbfs folders where cmus freezes
    frequently (esp when the system sleeps and then resumes)

    and for smbfs i guess the problem is mostly caused by OS X itself,
    googling the problem, there are many freeze reports and tweaks.

    —
    Reply to this email directly or view it on GitHub
    #391 (comment).

  5. philc commented on Feb 26, 2016

    @philc
    Author

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

  6. Wang-Yue commented on Feb 26, 2016

    @Wang-Yue
    Contributor

    @philc you are using the outdated one. update your cmus and try again.

  7. Wang-Yue commented on Sep 21, 2016

    @Wang-Yue
    Contributor

    Close this one. never got a reply. Unable to reproduce.

  8. philc commented on Sep 21, 2016

    @philc
    Author

    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:

    Close this one. never got a reply. Unable to reproduce.

    —
    You are receiving this because you were mentioned.
    Reply to this email directly, view it on GitHub
    #391 (comment), or mute
    the thread
    https://github.com/notifications/unsubscribe-auth/AAAhltsASElt21nTYvx_ZLwFrUGagCooks5qsMocgaJpZM4HN1vK
    .

  9. flyingmutant commented on Sep 21, 2016

    @flyingmutant
    Member

    Great! Closing.

  10. philc commented on May 25, 2017

    @philc
    Author

    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.

  11. mahkoh commented on May 25, 2017

    @mahkoh
    Member

    Try attaching a debugger when cmus hangs.

  12. reopened this on May 25, 2017
  13. philc commented on Jun 1, 2017

    @philc
    Author

    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 ?? ()
    
  14. kolen commented on Aug 3, 2017

    @kolen

    Sometimes (rarely) freezes on my machine too, here is stacktrace. Possibly CoreAudio-related deadlock.

  15. Wang-Yue commented on Aug 4, 2017

    @Wang-Yue
    Contributor

    you are using ao output. please update your cmus installation.

  16. kolen commented on Aug 4, 2017

    @kolen

    ao is broken and will be deprecated in newer versions? I'll try version from master, latest stable 2.7.1 has only ao on Mac OS.

  17. Wang-Yue commented on Aug 5, 2017

    @Wang-Yue
    Contributor

    yes. core audio plugin is the future. ao is for compatibility fallback only

  18. philc commented on Oct 5, 2017

    @philc
    Author

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

  19. aki-cat commented on Feb 12, 2018

    @aki-cat

    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)

  20. sijad commented on Apr 3, 2018

    @sijad

    same problem here, I'm using v2.8.0-rc0 and softvol=true.

  21. gshmu commented on Jul 3, 2018

    @gshmu

    after reconnect blue tooth not hang but nothing output.
    after sleep will hang...

    MAC OS X

  22. sijad commented on Jul 3, 2018

    @sijad

    after switching to coreaudio (:set output_plugin=coreaudio) I never encounter this problem. can you please confirm? I'm using HEAD version though.

  23. pgaskin commented on Dec 13, 2020

    @pgaskin
    Member

    Is this still an issue?

  24. philc commented on Dec 13, 2020

    @philc
    Author
  25. pgaskin commented on Dec 13, 2020

    @pgaskin
    Member

    OK, I think this can probably be closed then. @nefthy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions