Git Product home page Git Product logo

Comments (13)

JakeStanger avatar JakeStanger commented on June 14, 2024

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

from ironbar.

lyasm avatar lyasm commented on June 14, 2024

just a reboot

from ironbar.

lyasm avatar lyasm commented on June 14, 2024

But after a few minutes I get a coredump again

from ironbar.

JakeStanger avatar JakeStanger commented on June 14, 2024

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?

from ironbar.

lyasm avatar lyasm commented on June 14, 2024

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

from ironbar.

JakeStanger avatar JakeStanger commented on June 14, 2024

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.

from ironbar.

lyasm avatar lyasm commented on June 14, 2024

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

Will try with trace logging once it crashes again

from ironbar.

JakeStanger avatar JakeStanger commented on June 14, 2024

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.

from ironbar.

lyasm avatar lyasm commented on June 14, 2024

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

from ironbar.

JakeStanger avatar JakeStanger commented on June 14, 2024

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

from ironbar.

lyasm avatar lyasm commented on June 14, 2024

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

from ironbar.

JakeStanger avatar JakeStanger commented on June 14, 2024

@lyasm have you had any crashes since?

from ironbar.

lyasm avatar lyasm commented on June 14, 2024

No seems to be fixed

from ironbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.