[GH-ISSUE #166] Crash when tray is enabled #7108

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

Originally created by @TheSunCat on GitHub (May 27, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/166

Describe the bug
If I enable the tray module, ironbar does not start.

To Reproduce
Steps to reproduce the behavior:

  1. Enable the tray module
  2. Try to launch ironbar

Expected behavior
ironbar should start

System information:

  • Distro: Arch Linux
  • Compositor: Hyprland
  • Ironbar version: v0.12.0.r36.ge036ff0-1

Configuration

Share your bar configuration and stylesheet as applicable:

Config
let {
    $tray = { type = "tray" }
    $end = [ $tray ]
}
in {
    position = "top"
    start = $start
    center = $center
    end = $end
}

Additional context
Crash log (with backtrace enabled):
tray_crash.txt

Originally created by @TheSunCat on GitHub (May 27, 2023). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/166 **Describe the bug** If I enable the tray module, ironbar does not start. **To Reproduce** Steps to reproduce the behavior: 1. Enable the tray module 2. Try to launch ironbar **Expected behavior** ironbar should start **System information:** - Distro: Arch Linux - Compositor: Hyprland - Ironbar version: v0.12.0.r36.ge036ff0-1 **Configuration** > Share your bar configuration and stylesheet as applicable: <details><summary>Config</summary> ``` let { $tray = { type = "tray" } $end = [ $tray ] } in { position = "top" start = $start center = $center end = $end } ``` </details> **Additional context** Crash log (with backtrace enabled): [tray_crash.txt](https://github.com/JakeStanger/ironbar/files/11582443/tray_crash.txt)
JakeStanger 2026-05-23 02:52:33 +01:00
Author
Owner

@JakeStanger commented on GitHub (May 27, 2023):

Interesting, I've not seen that before, but I've just tried it on my barebones Arch/Hyprland install and encountered the same thing.

I'm not able to properly test at the moment, but I should be able to over the next couple of days. In the meantime it might be worth checking for any dependencies that are required for the service (I'm not aware of any other than dbus), or seeing if it occurs in different distros/environments.

If the problem is replicable, it will likely be an issue with the stray library since that handles the dbus connection.

<!-- gh-comment-id:1565614364 --> @JakeStanger commented on GitHub (May 27, 2023): Interesting, I've not seen that before, but I've just tried it on my barebones Arch/Hyprland install and encountered the same thing. I'm not able to properly test at the moment, but I should be able to over the next couple of days. In the meantime it might be worth checking for any dependencies that are required for the service (I'm not aware of any other than dbus), or seeing if it occurs in different distros/environments. If the problem is replicable, it will likely be an issue with the [stray](https://github.com/oknozor/stray) library since that handles the dbus connection.
Author
Owner

@TheSunCat commented on GitHub (May 27, 2023):

Thanks for looking into this. I am not familiar with dbus but I've had issues before with Discord being unable to open links due to a missing dbus environment variable. I don't remember what it was as it is not an issue in WebCord, but perhaps ironbar needs this, too?

<!-- gh-comment-id:1565632848 --> @TheSunCat commented on GitHub (May 27, 2023): Thanks for looking into this. I am not familiar with dbus but I've had issues before with Discord being unable to open links due to a missing dbus environment variable. I don't remember what it was as it is not an issue in WebCord, but perhaps ironbar needs this, too?
Author
Owner

@JakeStanger commented on GitHub (May 28, 2023):

I think that env var is possibly related to XDG, which would be separate to this. I've just updated Ironbar on my main machine and I'm now encountering the same thing, so it would seem something under the hood has changed.

<!-- gh-comment-id:1566280162 --> @JakeStanger commented on GitHub (May 28, 2023): I think that env var is possibly related to XDG, which would be separate to this. I've just updated Ironbar on my main machine and I'm now encountering the same thing, so it would seem something under the hood has changed.
Author
Owner

@yavko commented on GitHub (May 29, 2023):

I'm also experiencing this!!
image

<!-- gh-comment-id:1566336318 --> @yavko commented on GitHub (May 29, 2023): I'm also experiencing this!! ![image](https://github.com/JakeStanger/ironbar/assets/15178513/a9ac97b6-b2d0-4189-9ad4-99cb6eb7fa52)
Author
Owner

@JakeStanger commented on GitHub (May 29, 2023):

I've managed to create a minimal repro, and it seems stray is crashing as soon as it tries to connect to DBus.

@TheSunCat are you using the stable Hyprland package or -git?

<!-- gh-comment-id:1566944630 --> @JakeStanger commented on GitHub (May 29, 2023): I've managed to create a minimal repro, and it seems `stray` is crashing as soon as it tries to connect to DBus. @TheSunCat are you using the stable Hyprland package or `-git`?
Author
Owner

@TheSunCat commented on GitHub (May 29, 2023):

I build Hyprland manually from git to add my own (unrelated) bugfixes.

<!-- gh-comment-id:1567367070 --> @TheSunCat commented on GitHub (May 29, 2023): I build Hyprland manually from git to add my own (unrelated) bugfixes.
Author
Owner

@JakeStanger commented on GitHub (Jun 1, 2023):

I think from previous discussions oknozor is struggling to find time to maintain stray. Work's wearing me out at the moment, but I'm hoping to have a look into the issue myself this weekend.

<!-- gh-comment-id:1572573113 --> @JakeStanger commented on GitHub (Jun 1, 2023): I think from previous discussions oknozor is struggling to find time to maintain `stray`. Work's wearing me out at the moment, but I'm hoping to have a look into the issue myself this weekend.
Author
Owner

@JakeStanger commented on GitHub (Jun 17, 2023):

I've opened https://github.com/oknozor/stray/pull/7 with some fixes that seem to coax the tray back into life.

I have just opened #193 here, which builds using the PR above. I'll merge that shortly. Because the fix relies on patching this crate, it will be necessary to install by means other than cargo install, even if the version there gets bumped.

Once the PR in stray is merged, I will be able to bump the package properly. I will leave this issue open until that's resolved.

@yavko FYI it looks like the build is also failing on Nix due to the patch. How easy it that to work around?

<!-- gh-comment-id:1595855235 --> @JakeStanger commented on GitHub (Jun 17, 2023): I've opened https://github.com/oknozor/stray/pull/7 with some fixes that seem to coax the tray back into life. I have just opened #193 here, which builds using the PR above. I'll merge that shortly. Because the fix relies on patching this crate, it will be necessary to install by means other than `cargo install`, even if the version there gets bumped. Once the PR in stray is merged, I will be able to bump the package properly. I will leave this issue open until that's resolved. @yavko FYI it looks like the build is also failing on Nix due to the patch. How easy it that to work around?
Author
Owner

@yavko commented on GitHub (Jun 17, 2023):

Nix is failing because the checksum is being removed from the lockfile, this is probably due to using the patch option
image
The checksum however can be added manually to the package, as mentioned in the error message in CI

FYI: nix requires checksums to stay 100% reproducable

<!-- gh-comment-id:1595869634 --> @yavko commented on GitHub (Jun 17, 2023): Nix is failing because the checksum is being removed from the lockfile, this is probably due to using the patch option ![image](https://github.com/JakeStanger/ironbar/assets/15178513/3420c231-9649-4ee5-b83e-d10b96c4c5b0) The checksum however can be added manually to the package, as mentioned in the error message in CI > FYI: nix requires checksums to stay 100% reproducable
Author
Owner

@JakeStanger commented on GitHub (Jun 17, 2023):

Cool, was able to add a hash into the default.nix which sorted it. Merged!

<!-- gh-comment-id:1595884363 --> @JakeStanger commented on GitHub (Jun 17, 2023): Cool, was able to add a hash into the `default.nix` which sorted it. Merged!
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#7108
No description provided.