[GH-ISSUE #78] Coredump on Hyprland/Arch #5670

Closed
opened 2026-05-23 01:52:20 +01:00 by JakeStanger · 13 comments
Owner

Originally created by @lyasm on GitHub (Feb 26, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/78

When I try to start Ironbar I get a coredump:

2023-02-26T18:05:20.661011Z  INFO ironbar: Ironbar version 0.10.0 
2023-02-26T18:05:20.661060Z  INFO ironbar: Starting application 
2023-02-26T18:05:20.728345Z DEBUG ironbar: Loaded config file 
2023-02-26T18:05:20.728374Z DEBUG ironbar: Received 1 outputs from Wayland 
2023-02-26T18:05:20.728411Z DEBUG ironbar: Outputs: [OutputInfo { id: 44, model: "0xA08B", make: "AU Optronics", name: "eDP-1", description: "AU Optronics 0xA08B (eDP-1)", location: (0, 0), physical_size: (340, 190), subpixel: Unknown, transform: Normal, scale_factor: 1, modes: [Mode { dimensions: (1920, 1080), refresh_rate: 60164, is_current: true, is_preferred: false }], obsolete: false }] 
2023-02-26T18:05:20.728459Z  INFO ironbar: Creating bar on 'eDP-1' 
2023-02-26T18:05:20.733976Z DEBUG ironbar::clients::compositor: Getting workspace client for: Hyprland
2023-02-26T18:05:20.734008Z  INFO ironbar::clients::compositor::hyprland: Starting Hyprland event listener
2023-02-26T18:05:20.734484Z DEBUG ironbar::popup: Registered popup content for #1 
Segmentation fault (core dumped) 
Originally created by @lyasm on GitHub (Feb 26, 2023). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/78 When I try to start Ironbar I get a coredump: ``` 2023-02-26T18:05:20.661011Z INFO ironbar: Ironbar version 0.10.0 2023-02-26T18:05:20.661060Z INFO ironbar: Starting application 2023-02-26T18:05:20.728345Z DEBUG ironbar: Loaded config file 2023-02-26T18:05:20.728374Z DEBUG ironbar: Received 1 outputs from Wayland 2023-02-26T18:05:20.728411Z DEBUG ironbar: Outputs: [OutputInfo { id: 44, model: "0xA08B", make: "AU Optronics", name: "eDP-1", description: "AU Optronics 0xA08B (eDP-1)", location: (0, 0), physical_size: (340, 190), subpixel: Unknown, transform: Normal, scale_factor: 1, modes: [Mode { dimensions: (1920, 1080), refresh_rate: 60164, is_current: true, is_preferred: false }], obsolete: false }] 2023-02-26T18:05:20.728459Z INFO ironbar: Creating bar on 'eDP-1' 2023-02-26T18:05:20.733976Z DEBUG ironbar::clients::compositor: Getting workspace client for: Hyprland 2023-02-26T18:05:20.734008Z INFO ironbar::clients::compositor::hyprland: Starting Hyprland event listener 2023-02-26T18:05:20.734484Z DEBUG ironbar::popup: Registered popup content for #1 Segmentation fault (core dumped) ```
JakeStanger 2026-05-23 01:52:20 +01:00
  • closed this issue
  • added the
    T:Bug
    label
Author
Owner

@JakeStanger commented on GitHub (Feb 26, 2023):

@lyasm Could you please share what caused/fixed this for you? The bar should not segfault under any condition.

<!-- gh-comment-id:1445431085 --> @JakeStanger commented on GitHub (Feb 26, 2023): @lyasm Could you please share what caused/fixed this for you? The bar should not segfault under any condition.
Author
Owner

@lyasm commented on GitHub (Feb 26, 2023):

just a reboot

<!-- gh-comment-id:1445436992 --> @lyasm commented on GitHub (Feb 26, 2023): just a reboot
Author
Owner

@lyasm commented on GitHub (Feb 26, 2023):

But after a few minutes I get a coredump again

<!-- gh-comment-id:1445437624 --> @lyasm commented on GitHub (Feb 26, 2023): But after a few minutes I get a coredump again
Author
Owner

@JakeStanger commented on GitHub (Feb 26, 2023):

Could you please provide some more info, ie your software versions, config, etc...

The issue template exists for a reason, as it makes it a lot easier for me to track down issues. Can you please use that in future?

<!-- gh-comment-id:1445446630 --> @JakeStanger commented on GitHub (Feb 26, 2023): Could you please provide some more info, ie your software versions, config, etc... The issue template exists for a reason, as it makes it a lot easier for me to track down issues. Can you please use that in future?
Author
Owner

@lyasm commented on GitHub (Feb 27, 2023):

Sorry didn‘t find it at first:
Describe the bug

A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. boot
  2. wait some Time
  3. start ironbar
  4. get a Segfault

Expected behavior

It starting normally

System information:

  • Archlinux
  • Hyprland
  • Ironbar version: 0.10.0

Configuration

Style sheet is the example from the repo config is: config.corn:

let {
    $workspaces = {
        type = "workspaces"
        all_monitors = false
        name_map = {
            1 = "ﭮ"
            2 = "icon:firefox"
            3 = ""
            Games = "icon:steam"
            Code = ""
        }
    }

    $focused = { type = "focused" }

    $launcher = {
        type = "launcher"
        favorites = ["firefox" "discord" "Steam"]
        show_names = false
        show_icons = true
    }


    $sys_info = {
        type = "sys_info"

        interval.memory = 30
        interval.cpu = 1
        interval.temps = 5
        interval.disks = 300
        interval.networks = 3

        format = [
            " {cpu_percent}% | {temp_c:k10temp_Tccd1}°C"
            " {memory_used} / {memory_total} GB ({memory_percent}%)"
            "| {swap_used} / {swap_total} GB ({swap_percent}%)"
            " {disk_used:/} / {disk_total:/} GB ({disk_percent:/}%)"
            "李 {net_down:enp39s0} / {net_up:enp39s0} Mbps"
            "猪 {load_average:1} | {load_average:5} | {load_average:15}"
            " {uptime}"
        ]
    }

    $tray = { type = "tray" }

    $clock = { type = "clock" }

    // -- begin custom --
    $button = { type = "button" name="power-btn" label = "" on_click = "popup:toggle" }

    $popup = {
        type = "box"
        orientation = "vertical"
        widgets = [
            { type = "label" name = "header" label = "Power menu" }
            {
                type = "box"
                widgets = [
                    { type = "button" class="power-btn" label = "<span font-size='40pt'></span>" on_click = "!shutdown now" }
                    { type = "button" class="power-btn" label = "<span font-size='40pt'></span>" on_click = "!reboot" }
                ]
            }
            { type = "label" name = "uptime" label = "Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}" }
        ]
    }

    $power_menu = {
        type = "custom"
        class = "power-menu"

        bar = [ $button ]
        popup = [ $popup ]

        tooltip = "Up: {{30000:uptime -p | cut -d ' ' -f2-}}"
    }
    // -- end custom --

    $left = [ $workspaces $launcher ]
    $right = [ $sys_info $power_menu $clock ]
}
in {
    anchor_to_edges = true
    position = "top"
    start = $left end = $right
}

Styles
 the example in the Repo

Additional context

Using a Laptop with Intel iGPU also Waybar was running when it Segfaulted

<!-- gh-comment-id:1445738944 --> @lyasm commented on GitHub (Feb 27, 2023): Sorry didn‘t find it at first: **Describe the bug** > A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. boot 2. wait some Time 3. start ironbar 4. get a Segfault **Expected behavior** > It starting normally **System information:** - Archlinux - Hyprland - Ironbar version: 0.10.0 **Configuration** <details><summary>Style sheet is the example from the repo config is: config.corn:</summary> ``` let { $workspaces = { type = "workspaces" all_monitors = false name_map = { 1 = "ﭮ" 2 = "icon:firefox" 3 = "" Games = "icon:steam" Code = "" } } $focused = { type = "focused" } $launcher = { type = "launcher" favorites = ["firefox" "discord" "Steam"] show_names = false show_icons = true } $sys_info = { type = "sys_info" interval.memory = 30 interval.cpu = 1 interval.temps = 5 interval.disks = 300 interval.networks = 3 format = [ " {cpu_percent}% | {temp_c:k10temp_Tccd1}°C" " {memory_used} / {memory_total} GB ({memory_percent}%)" "| {swap_used} / {swap_total} GB ({swap_percent}%)" " {disk_used:/} / {disk_total:/} GB ({disk_percent:/}%)" "李 {net_down:enp39s0} / {net_up:enp39s0} Mbps" "猪 {load_average:1} | {load_average:5} | {load_average:15}" " {uptime}" ] } $tray = { type = "tray" } $clock = { type = "clock" } // -- begin custom -- $button = { type = "button" name="power-btn" label = "" on_click = "popup:toggle" } $popup = { type = "box" orientation = "vertical" widgets = [ { type = "label" name = "header" label = "Power menu" } { type = "box" widgets = [ { type = "button" class="power-btn" label = "<span font-size='40pt'></span>" on_click = "!shutdown now" } { type = "button" class="power-btn" label = "<span font-size='40pt'></span>" on_click = "!reboot" } ] } { type = "label" name = "uptime" label = "Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}" } ] } $power_menu = { type = "custom" class = "power-menu" bar = [ $button ] popup = [ $popup ] tooltip = "Up: {{30000:uptime -p | cut -d ' ' -f2-}}" } // -- end custom -- $left = [ $workspaces $launcher ] $right = [ $sys_info $power_menu $clock ] } in { anchor_to_edges = true position = "top" start = $left end = $right } ``` </details> <details><summary>Styles</summary> ```css the example in the Repo ``` </details> **Additional context** >Using a Laptop with Intel iGPU also Waybar was running when it Segfaulted
Author
Owner

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

Thanks for the additional info. Could you let me know what version of Hyprland and Wlroots please?

pacman -Q hyprland wlroots

It may also be worth running with trace logging. Could you try running with IRONBAR_LOG=trace and re-sharing the log file please? This might give me some more info to go on.

<!-- gh-comment-id:1446756842 --> @JakeStanger commented on GitHub (Feb 27, 2023): Thanks for the additional info. Could you let me know what version of Hyprland and Wlroots please? ``` pacman -Q hyprland wlroots ``` It may also be worth running with trace logging. Could you try running with `IRONBAR_LOG=trace` and re-sharing the log file please? This might give me some more info to go on.
Author
Owner

@lyasm commented on GitHub (Feb 28, 2023):

hyprland-git r2166.e1d7a13-1
wlroots 0.16.2-1

Will try with trace logging once it crashes again

<!-- gh-comment-id:1448036503 --> @lyasm commented on GitHub (Feb 28, 2023): hyprland-git r2166.e1d7a13-1 wlroots 0.16.2-1 Will try with trace logging once it crashes again
Author
Owner

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

Cheers.

Running a -git compositor without wlroots-git is not recommended, as the two tend to update in tandem. Wlroots has also had quite a few changes recently, which have caused at least one other Wayland related bug that cause the bar to crash in a similar manner. The launcher and focused (and upcoming clipboard) modules interact with Wayland directly so are more susceptible to these crashes.

I notice you are also running a build of Hyprland from a few months ago so it might pay to update that.

I would recommend a few things to try:

  • Update hyprland-git to the latest version, and replace wlroots with wlroots-git.
  • Replace hyprland-git with the stable package.
  • If you still get a crash, try removing launcheror focused from your config.
<!-- gh-comment-id:1448063570 --> @JakeStanger commented on GitHub (Feb 28, 2023): Cheers. Running a `-git` compositor without `wlroots-git` is not recommended, as the two tend to update in tandem. Wlroots has also had quite a few changes recently, which have caused at least one other Wayland related bug that cause the bar to crash in a similar manner. The `launcher` and `focused` (and upcoming `clipboard`) modules interact with Wayland directly so are more susceptible to these crashes. I notice you are also running a build of Hyprland from a few months ago so it might pay to update that. I would recommend a few things to try: - Update `hyprland-git` to the latest version, and replace `wlroots` with `wlroots-git`. - Replace `hyprland-git` with the stable package. - If you still get a crash, try removing `launcher`or `focused` from your config.
Author
Owner

@lyasm commented on GitHub (Feb 28, 2023):

So it doesn’t seem to crash anymore, and also Hyprland has wlroots bundled into itself

<!-- gh-comment-id:1448122936 --> @lyasm commented on GitHub (Feb 28, 2023): So it doesn’t seem to crash anymore, and also Hyprland has wlroots bundled into itself
Author
Owner

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

What did you change please (if anything), in case anybody else encounters this?

<!-- gh-comment-id:1448136380 --> @JakeStanger commented on GitHub (Feb 28, 2023): What did you change please (if anything), in case anybody else encounters this?
Author
Owner

@lyasm commented on GitHub (Feb 28, 2023):

Didn’t change anything, but it also worked before expect that it would start crashing at a seemingly random time

<!-- gh-comment-id:1448240791 --> @lyasm commented on GitHub (Feb 28, 2023): Didn’t change anything, but it also worked before expect that it would start crashing at a seemingly random time
Author
Owner

@JakeStanger commented on GitHub (Mar 20, 2023):

@lyasm have you had any crashes since?

<!-- gh-comment-id:1477027302 --> @JakeStanger commented on GitHub (Mar 20, 2023): @lyasm have you had any crashes since?
Author
Owner

@lyasm commented on GitHub (Mar 22, 2023):

No seems to be fixed

<!-- gh-comment-id:1478990126 --> @lyasm commented on GitHub (Mar 22, 2023): No seems to be fixed
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#5670
No description provided.