Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
5.81k stars 656 forks source link

Segmentation Fault on start #3371

Closed techyporcupine closed 1 week ago

techyporcupine commented 1 week ago

Hello folks, I just updated my NixOS installation and after launching Hyprland like I normally do, I observed that my waybar was not showing, so I decided to launch it manually from the terminal and noted that it stopped with a segmentation fault. In theory the version of waybar between me updating now and when I last updated hasn't changed, so I'm confused as to why its broken now, any ideas? I will attach what running waybar (with a log level of trace) looks like from the terminal.

waybar -l trace                                                                                                                                                                                              
[2024-06-18 15:44:53.279] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config
[2024-06-18 15:44:53.279] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config.jsonc
[2024-06-18 15:44:53.279] [debug] Try expanding: $HOME/.config/waybar/config
[2024-06-18 15:44:53.279] [debug] Found config file: $HOME/.config/waybar/config
[2024-06-18 15:44:53.279] [info] Using configuration file /home/username/.config/waybar/config
[2024-06-18 15:44:53.281] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-06-18 15:44:53.281] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style.css
[2024-06-18 15:44:53.281] [debug] Try expanding: $HOME/.config/waybar/style.css
[2024-06-18 15:44:53.281] [debug] Found config file: $HOME/.config/waybar/style.css
[2024-06-18 15:44:53.281] [info] Using CSS file /home/username/.config/waybar/style.css
[2024-06-18 15:44:53.289] [debug] Output detection done: eDP-1 (Samsung Display Corp. 0x4C48)
[2024-06-18 15:44:53.290] [debug] window-rewrite is not defined or is not an object, using default rules.
[2024-06-18 15:44:53.290] [info] Hyprland IPC starting
[2024-06-18 15:44:53.291] [trace] Current monitor ID: 0
[2024-06-18 15:44:53.291] [debug] Initializing workspaces
[2024-06-18 15:44:53.292] [debug] Initializing persistent workspaces
[2024-06-18 15:44:53.292] [info] Loading persistent workspaces from Hyprland workspace rules
[1]    116815 segmentation fault (core dumped)  waybar -l trace

I will happily supply more info if needed!

khaneliman commented 1 week ago

What version of waybar are you using?

techyporcupine commented 1 week ago

Waybar v0.10.3

khaneliman commented 1 week ago

Waybar v0.10.3

Latest release or off master branch?

techyporcupine commented 1 week ago

Whatever is in nixos-unstable, so I would guess latest release

khaneliman commented 1 week ago

Whatever is in nixos-unstable, so I would guess latest release

Curious if you tried using the flake from this repo if it still crashes. There are about 100 commits from that release, now with a bunch of Hyprland changes. https://github.com/Alexays/Waybar/compare/0.10.3...master

techyporcupine commented 1 week ago

Will do. I should note I tried v0.9.24 and waybar was able to launch with that.

techyporcupine commented 1 week ago

Directly using the flake causes it to work.

techyporcupine commented 1 week ago

I assume there is nothing else to do and I should just close this and wait for the next release?

khaneliman commented 1 week ago

I assume there is nothing else to do and I should just close this and wait for the next release?

Yeah, I saw that there were several bug fixes for seg faults in the diff between 10.3 and whats in unreleased atm.

techyporcupine commented 1 week ago

Sounds good, thanks for the help!