[GH-ISSUE #528] exiting session causes broken pipe error spam #7199

Closed
opened 2026-05-23 02:52:59 +01:00 by JakeStanger · 11 comments
Owner

Originally created by @aquifolly on GitHub (Apr 1, 2024).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/528

Describe the bug
when i exit the session, the logs are spammed with broken pipe errors

To Reproduce
Steps to reproduce the behavior:

  1. launch your wayland compositor
  2. exit the session
  3. check the latest log

Expected behavior
ironbar exits cleanly with the session

System information:

  • Distro: NixOS
  • Compositor: Sway
  • Ironbar version: 0.15.0-pre (flake input last updated at: 1711718149)

Screenshots

image

Originally created by @aquifolly on GitHub (Apr 1, 2024). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/528 **Describe the bug** when i exit the session, the logs are spammed with broken pipe errors **To Reproduce** Steps to reproduce the behavior: 1. launch your wayland compositor 2. exit the session 3. check the latest log **Expected behavior** ironbar exits cleanly with the session **System information:** - Distro: NixOS - Compositor: Sway - Ironbar version: 0.15.0-pre (flake input last updated at: 1711718149) **Screenshots** ![image](https://github.com/JakeStanger/ironbar/assets/35699052/67706a15-ac8f-46b5-add4-63b7a179199d)
JakeStanger 2026-05-23 02:52:59 +01:00
  • closed this issue
  • added the
    T:Bug
    label
Author
Owner

@JakeStanger commented on GitHub (Apr 1, 2024):

How is Ironbar started? Are you using a systemd service?

The errors make sense as Ironbar is staying open once your compositor closes for some reason, which obviously isn't going to work. The question is how we ensure it closes.

<!-- gh-comment-id:2029980927 --> @JakeStanger commented on GitHub (Apr 1, 2024): How is Ironbar started? Are you using a systemd service? The errors make sense as Ironbar is staying open once your compositor closes for some reason, which obviously isn't going to work. The question is how we ensure it closes.
Author
Owner

@aquifolly commented on GitHub (Apr 1, 2024):

ah, I'm starting it inside the sway config
https://git.gay/pinkcreeper100/nix-config/src/branch/main/modules/home/desktop/sway/default.nix#L158

<!-- gh-comment-id:2030170209 --> @aquifolly commented on GitHub (Apr 1, 2024): ah, I'm starting it inside the sway config https://git.gay/pinkcreeper100/nix-config/src/branch/main/modules/home/desktop/sway/default.nix#L158
Author
Owner

@aquifolly commented on GitHub (Apr 1, 2024):

that'd make sense

<!-- gh-comment-id:2030171889 --> @aquifolly commented on GitHub (Apr 1, 2024): that'd make sense
Author
Owner

@JakeStanger commented on GitHub (Apr 1, 2024):

What if you set it as a bar rather than a startup command? Hopefully sway would handle shutting it down then. If not I'll have to change the wayland client logic to exit on error.

<!-- gh-comment-id:2030374043 --> @JakeStanger commented on GitHub (Apr 1, 2024): What if you set it as a bar rather than a startup command? Hopefully sway would handle shutting it down then. If not I'll have to change the wayland client logic to exit on error.
Author
Owner

@aquifolly commented on GitHub (Apr 2, 2024):

when i looked in btop, there were two ironbar processes, so i've removed it from the startup and will check if it still works

<!-- gh-comment-id:2031128483 --> @aquifolly commented on GitHub (Apr 2, 2024): when i looked in btop, there were two ironbar processes, so i've removed it from the `startup` and will check if it still works
Author
Owner

@aquifolly commented on GitHub (Apr 2, 2024):

the systemd unit works

<!-- gh-comment-id:2031171509 --> @aquifolly commented on GitHub (Apr 2, 2024): the systemd unit works
Author
Owner

@JakeStanger commented on GitHub (Apr 2, 2024):

What systemd unit? Define 'works'. Did you test my suggestions?

Pleae give me something to go on here.

<!-- gh-comment-id:2032638314 --> @JakeStanger commented on GitHub (Apr 2, 2024): What systemd unit? Define 'works'. Did you test my suggestions? Pleae give me something to go on here.
Author
Owner

@aquifolly commented on GitHub (Apr 2, 2024):

I removed ironbar from the startup section in my sway config, and just using the systemd unit provided by the nix module, i no longer seem to encounter the error

<!-- gh-comment-id:2033037019 --> @aquifolly commented on GitHub (Apr 2, 2024): I removed ironbar from the startup section in my sway config, and just using the systemd unit provided by the nix module, i no longer seem to encounter the error
Author
Owner

@JakeStanger commented on GitHub (Apr 2, 2024):

In that case I'll close this issue. Any further issues let me know and we can reopen

<!-- gh-comment-id:2033074831 --> @JakeStanger commented on GitHub (Apr 2, 2024): In that case I'll close this issue. Any further issues let me know and we can reopen
Author
Owner

@aquifolly commented on GitHub (Apr 2, 2024):

If not I'll have to change the wayland client logic to exit on error.

it may still be a good idea to do this, as there may be users who don't use the systemd unit, or just aren't using systemd at all

<!-- gh-comment-id:2033081453 --> @aquifolly commented on GitHub (Apr 2, 2024): > If not I'll have to change the wayland client logic to exit on error. it may still be a good idea to do this, as there may be users who don't use the systemd unit, or just aren't using systemd at all
Author
Owner

@yavko commented on GitHub (Apr 2, 2024):

I removed ironbar from the startup section in my sway config, and just using the systemd unit provided by the nix module, i no longer seem to encounter the error

Glad my code works

<!-- gh-comment-id:2033285728 --> @yavko commented on GitHub (Apr 2, 2024): > I removed ironbar from the startup section in my sway config, and just using the systemd unit provided by the nix module, i no longer seem to encounter the error Glad my code works
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#7199
No description provided.