Skip to content

Waybar crash due to MPD module segfaulting #4030

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

Open
litemotiv opened this issue Apr 5, 2025 · 0 comments
Open

Waybar crash due to MPD module segfaulting #4030

litemotiv opened this issue Apr 5, 2025 · 0 comments
Labels
bug Something isn't working custom mpd

Comments

@litemotiv
Copy link

Waybar Version: v0.12.0

I've noticed occasionally that the MPD module stopped updating the now-playing information. Usually this prompts me to kill and restart Waybar, after which the module shows the playback information again. Today however Waybar crashed completely with the following log line:

[warning] mpd: Playing: error: Connection reset by peer
waybar: ../src/status.c:415: mpd_status_get_song_pos: Assertion `status != NULL' failed.
Aborted (core dumped)

The music was still playing in the background so MPD itself didn't crash.

MPD module config:

 "mpd": {
    "server": "10.0.0.6",
    "format": "{stateIcon} {artist} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})",
    "format-disconnected": "<U+F001> Disconnected",
    "format-stopped": "<U+F001> Not playing",
    "unknown-tag": "N/A",
    "max-length": 50,
    "artist-len": 20,
    "title-len": 20,
    "state-icons": {
      "paused": "<U+F04C>",
      "playing": "<U+F001>"
    },
    "tooltip-format": "{album} [{songPosition}/{queueLength}]",
    "tooltip-format-disconnected": "Disconnected",
    "on-click": "mpc -q -h 10.0.0.6 toggle",
    "on-click-right": "mpc -q -h 10.0.0.6 next",
    "on-scroll-up": "mpc -q -h 10.0.0.6 seek -5%",
    "on-scroll-down": "mpc -q -h 10.0.0.6 seek +5%"
}
@github-actions github-actions bot added bug Something isn't working custom mpd labels Apr 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working custom mpd
Projects
None yet
Development

No branches or pull requests

1 participant