Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

Waybar segfaults when reloading GTK with xsettingsd

Open rein1410 opened this issue 10 months ago • 5 comments

package: waybar-cava from AUR version: 0.12.0 environment: hyprland

description: waybar crashes everytime when it tries to reload CSS log:

[2025-04-06 00:06:17.496] [info] Reloading...
[2025-04-06 00:06:17.499] [debug] hyprland IPC received windowtitle>>6104c1680700
[2025-04-06 00:06:17.500] [debug] hyprland IPC received windowtitlev2>>6104c1680700,xsettingsd
[2025-04-06 00:06:17.508] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config
[2025-04-06 00:06:17.508] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config.jsonc
[2025-04-06 00:06:17.508] [debug] Found config file: /home/rein/.config/waybar/config.jsonc
[2025-04-06 00:06:17.508] [info] Using configuration file /home/rein/.config/waybar/config.jsonc
[2025-04-06 00:06:17.508] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style.css
[2025-04-06 00:06:17.508] [debug] Found config file: /home/rein/.config/waybar/style.css
[2025-04-06 00:06:17.508] [info] Using CSS file /home/rein/.config/waybar/style.css
[2025-04-06 00:06:17.509] [debug] Parsing imports for file: /home/rein/.config/waybar/style.css
[2025-04-06 00:06:17.509] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/../../.cache/wal/colors-waybar.css
[2025-04-06 00:06:17.509] [debug] Found config file: /home/rein/.config/waybar/../../.cache/wal/colors-waybar.css
[2025-04-06 00:06:17.509] [debug] Adding file to watch list: /home/rein/.config/waybar/../../.cache/wal/colors-waybar.css
[2025-04-06 00:06:17.509] [debug] Adding file to watch list: /home/rein/.config/waybar/style.css
[2025-04-06 00:06:17.509] [debug] hyprland IPC received closelayer>>waybar
[2025-04-06 00:06:17.510] [debug] hyprland IPC received closelayer>>waybar
[2025-04-06 00:06:17.510] [debug] Output detection done: DP-1 (Wacom Tech Wacom One 13 1FQ0171000046)
[2025-04-06 00:06:17.510] [debug] window-rewrite is not defined or is not an object, using default rules.
[2025-04-06 00:06:17.511] [trace] Current monitor ID: 0
[2025-04-06 00:06:17.511] [debug] Initializing workspaces
[2025-04-06 00:06:17.511] [trace] Extending orphans with workspace 4
zsh: segmentation fault (core dumped)  waybar -l trace

rein1410 avatar Apr 05 '25 17:04 rein1410

Please run WAYLAND_DEBUG=1 waybar -l trace and then share the last 20-30 lines of the output/error.

FrChocolate avatar Apr 11 '25 16:04 FrChocolate

@FrChocolate Here

[2025-04-12 18:56:45.772] [info] Reloading...
[2025-04-12 18:56:45.775] [debug] hyprland IPC received windowtitle>>55ec12350420
[2025-04-12 18:56:45.776] [debug] hyprland IPC received windowtitlev2>>55ec12350420,xsettingsd
[2203933.019] {Default Queue}  -> zwlr_layer_surface_v1#45.destroy()
[2203933.029] {Default Queue}  -> wl_surface#44.destroy()
[2203933.034] {Default Queue}  -> wl_buffer#47.destroy()
[2203933.036] {Default Queue}  -> wl_shm_pool#37.destroy()
[2203940.050] {Default Queue}  -> zwlr_layer_surface_v1#42.destroy()
[2203940.058] {Default Queue}  -> wl_surface#41.destroy()
[2203940.062] {Default Queue}  -> wl_buffer#43.destroy()
[2203940.065] {Default Queue}  -> wl_shm_pool#46.destroy()
[2025-04-12 18:56:45.785] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config
[2025-04-12 18:56:45.785] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config.jsonc
[2025-04-12 18:56:45.785] [debug] Found config file: /home/rein/.config/waybar/config.jsonc
[2025-04-12 18:56:45.785] [info] Using configuration file /home/rein/.config/waybar/config.jsonc
[2025-04-12 18:56:45.785] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style.css
[2025-04-12 18:56:45.785] [debug] Found config file: /home/rein/.config/waybar/style.css
[2025-04-12 18:56:45.785] [info] Using CSS file /home/rein/.config/waybar/style.css
[2025-04-12 18:56:45.786] [debug] Parsing imports for file: /home/rein/.config/waybar/style.css
[2025-04-12 18:56:45.786] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/../../.cache/wal/colors-waybar.css
[2025-04-12 18:56:45.786] [debug] Found config file: /home/rein/.config/waybar/../../.cache/wal/colors-waybar.css
[2025-04-12 18:56:45.786] [debug] Adding file to watch list: /home/rein/.config/waybar/../../.cache/wal/colors-waybar.css
[2025-04-12 18:56:45.786] [debug] Adding file to watch list: /home/rein/.config/waybar/style.css
[2203940.971] {Default Queue}  -> wl_display#1.get_registry(new id wl_registry#48)
[2203940.975] {Default Queue}  -> wl_display#1.sync(new id wl_callback#40)
[2025-04-12 18:56:45.786] [debug] hyprland IPC received closelayer>>waybar
[2203941.639] discarded [unknown]#47.[event 0](0 fd, 8 byte)
[2203941.641] discarded [unknown]#43.[event 0](0 fd, 8 byte)
[2203941.651] {Display Queue} wl_display#1.delete_id(45)
[2203941.654] {Display Queue} wl_display#1.delete_id(47)
[2203941.657] {Display Queue} wl_display#1.delete_id(37)
[2203941.659] {Display Queue} wl_display#1.delete_id(44)
[2203941.661] {Display Queue} wl_display#1.delete_id(42)
[2203941.664] {Display Queue} wl_display#1.delete_id(43)
[2203941.666] {Display Queue} wl_display#1.delete_id(46)
[2203941.669] {Display Queue} wl_display#1.delete_id(40)
[2203941.671] {Default Queue} wl_registry#48.global(1, "wl_seat", 9)
[2203941.673] {Default Queue} wl_registry#48.global(2, "wl_data_device_manager", 3)
[2203941.676] {Default Queue} wl_registry#48.global(3, "wl_compositor", 6)
[2203941.679] {Default Queue} wl_registry#48.global(4, "wl_subcompositor", 1)
[2203941.681] {Default Queue} wl_registry#48.global(5, "wl_shm", 1)
[2203941.684] {Default Queue} wl_registry#48.global(6, "wp_viewporter", 1)
[2203941.686] {Default Queue} wl_registry#48.global(7, "wp_tearing_control_manager_v1", 1)
[2203941.688] {Default Queue} wl_registry#48.global(8, "wp_fractional_scale_manager_v1", 1)
[2203941.690] {Default Queue} wl_registry#48.global(9, "zxdg_output_manager_v1", 3)
[2203941.693] {Default Queue}  -> wl_registry#48.bind(9, "zxdg_output_manager_v1", 2, new id [unknown]#46)
[2203941.695] {Default Queue} wl_registry#48.global(10, "wp_cursor_shape_manager_v1", 1)
[2203941.698] {Default Queue} wl_registry#48.global(11, "zwp_idle_inhibit_manager_v1", 1)
[2203941.700] {Default Queue}  -> wl_registry#48.bind(11, "zwp_idle_inhibit_manager_v1", 1, new id [unknown]#43)
[2203941.702] {Default Queue} wl_registry#48.global(12, "zwp_relative_pointer_manager_v1", 1)
[2203941.705] {Default Queue} wl_registry#48.global(13, "zxdg_decoration_manager_v1", 1)
[2203941.709] {Default Queue} wl_registry#48.global(14, "wp_alpha_modifier_v1", 1)
[2203941.712] {Default Queue} wl_registry#48.global(15, "zwlr_gamma_control_manager_v1", 1)
[2203941.714] {Default Queue} wl_registry#48.global(16, "ext_foreign_toplevel_list_v1", 1)
[2203941.715] {Default Queue} wl_registry#48.global(17, "zwp_pointer_gestures_v1", 3)
[2203941.718] {Default Queue} wl_registry#48.global(18, "zwlr_foreign_toplevel_manager_v1", 3)
[2203941.721] {Default Queue} wl_registry#48.global(19, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
[2203941.725] {Default Queue} wl_registry#48.global(20, "zwp_text_input_manager_v1", 1)
[2203941.727] {Default Queue} wl_registry#48.global(21, "zwp_text_input_manager_v3", 1)
[2203941.730] {Default Queue} wl_registry#48.global(22, "zwp_pointer_constraints_v1", 1)
[2203941.753] {Default Queue} wl_registry#48.global(23, "zwlr_output_power_manager_v1", 1)
[2203941.755] {Default Queue} wl_registry#48.global(24, "xdg_activation_v1", 1)
[2203941.756] {Default Queue} wl_registry#48.global(25, "ext_idle_notifier_v1", 2)
[2203941.758] {Default Queue} wl_registry#48.global(26, "hyprland_lock_notifier_v1", 1)
[2203941.761] {Default Queue} wl_registry#48.global(27, "ext_session_lock_manager_v1", 1)
[2203941.764] {Default Queue} wl_registry#48.global(28, "zwp_input_method_manager_v2", 1)
[2203941.767] {Default Queue} wl_registry#48.global(29, "zwp_virtual_keyboard_manager_v1", 1)
[2203941.770] {Default Queue} wl_registry#48.global(30, "zwlr_virtual_pointer_manager_v1", 2)
[2203941.773] {Default Queue} wl_registry#48.global(31, "zwlr_output_manager_v1", 4)
[2203941.777] {Default Queue} wl_registry#48.global(32, "org_kde_kwin_server_decoration_manager", 1)
[2203941.780] {Default Queue} wl_registry#48.global(33, "hyprland_focus_grab_manager_v1", 1)
[2203941.783] {Default Queue} wl_registry#48.global(34, "zwp_tablet_manager_v2", 1)
[2203941.786] {Default Queue} wl_registry#48.global(35, "zwlr_layer_shell_v1", 5)
[2203941.788] {Default Queue} wl_registry#48.global(36, "wp_presentation", 1)
[2203941.790] {Default Queue} wl_registry#48.global(37, "xdg_wm_base", 6)
[2203941.792] {Default Queue} wl_registry#48.global(38, "zwlr_data_control_manager_v1", 2)
[2203941.794] {Default Queue} wl_registry#48.global(39, "zwp_primary_selection_device_manager_v1", 1)
[2203941.795] {Default Queue} wl_registry#48.global(40, "xwayland_shell_v1", 1)
[2203941.798] {Default Queue} wl_registry#48.global(41, "zwlr_screencopy_manager_v1", 3)
[2203941.801] {Default Queue} wl_registry#48.global(42, "hyprland_toplevel_export_manager_v1", 2)
[2203941.804] {Default Queue} wl_registry#48.global(43, "hyprland_global_shortcuts_manager_v1", 1)
[2203941.807] {Default Queue} wl_registry#48.global(44, "xdg_wm_dialog_v1", 1)
[2203941.809] {Default Queue} wl_registry#48.global(45, "wp_single_pixel_buffer_manager_v1", 1)
[2203941.811] {Default Queue} wl_registry#48.global(46, "wp_security_context_manager_v1", 1)
[2203941.815] {Default Queue} wl_registry#48.global(47, "hyprland_ctm_control_manager_v1", 2)
[2203941.817] {Default Queue} wl_registry#48.global(48, "hyprland_surface_manager_v1", 2)
[2203941.820] {Default Queue} wl_registry#48.global(49, "wp_content_type_manager_v1", 1)
[2203941.822] {Default Queue} wl_registry#48.global(50, "wp_color_manager_v1", 1)
[2203941.825] {Default Queue} wl_registry#48.global(51, "wp_drm_lease_device_v1", 1)
[2203941.827] {Default Queue} wl_registry#48.global(52, "wp_linux_drm_syncobj_manager_v1", 1)
[2203941.829] {Default Queue} wl_registry#48.global(53, "wl_drm", 2)
[2203941.831] {Default Queue} wl_registry#48.global(54, "zwp_linux_dmabuf_v1", 5)
[2203941.833] {Default Queue} wl_registry#48.global(55, "wl_output", 4)
[2203941.834] {Default Queue} wl_registry#48.global(56, "wl_output", 4)
[2203941.836] {Default Queue} wl_callback#40.done(348)
[2203941.841] {Default Queue}  -> zxdg_output_manager_v1#46.get_xdg_output(new id zxdg_output_v1#40, wl_output#17)
[2203941.845] {Default Queue}  -> zxdg_output_manager_v1#46.get_xdg_output(new id zxdg_output_v1#42, wl_output#20)
[2025-04-12 18:56:45.787] [debug] hyprland IPC received closelayer>>waybar
[2203942.847] {Display Queue} wl_display#1.delete_id(41)
[2203942.853] {Default Queue} zxdg_output_v1#40.name("DP-1")
[2203942.857] {Default Queue} zxdg_output_v1#40.description("Wacom Tech Wacom One 13 1FQ0171000046 (DP-1)")
[2203942.860] {Default Queue} zxdg_output_v1#40.logical_position(0, 1080)
[2203942.863] {Default Queue} zxdg_output_v1#40.logical_size(1920, 1080)
[2203942.865] {Default Queue} zxdg_output_v1#40.done()
[2203942.867] {Default Queue}  -> zxdg_output_v1#40.destroy()
[2025-04-12 18:56:45.788] [debug] Output detection done: DP-1 (Wacom Tech Wacom One 13 1FQ0171000046)
[2025-04-12 18:56:45.788] [debug] window-rewrite is not defined or is not an object, using default rules.
[2025-04-12 18:56:45.788] [trace] Current monitor ID: 0
[2025-04-12 18:56:45.788] [debug] Initializing workspaces
[2025-04-12 18:56:45.788] [trace] Extending orphans with workspace 1
[2025-04-12 18:56:45.788] [trace] Extending orphans with workspace 2
[2025-04-12 18:56:45.788] [trace] Extending orphans with workspace 3
[2025-04-12 18:56:45.788] [debug] Initializing persistent workspaces
[2025-04-12 18:56:45.788] [info] Loading persistent workspaces from Hyprland workspace rules
zsh: segmentation fault (core dumped)  WAYLAND_DEBUG=1 waybar -l trace

rein1410 avatar Apr 12 '25 12:04 rein1410

It's very likely that the problem is coming from hyprland/workspaces. could you remove the module from config.jsonc and try it again?

FrChocolate avatar Apr 15 '25 17:04 FrChocolate

@FrChocolate still doesn't work

[2025-04-16 21:15:33.526] [info] Reloading...
[3944367.593] {Default Queue}  -> zwlr_layer_surface_v1#45.destroy()
[3944367.603] {Default Queue}  -> wl_surface#44.destroy()
[3944367.607] {Default Queue}  -> wl_buffer#47.destroy()
[3944367.610] {Default Queue}  -> wl_shm_pool#37.destroy()
[3944373.627] {Default Queue}  -> zwlr_layer_surface_v1#42.destroy()
[3944373.635] {Default Queue}  -> wl_surface#41.destroy()
[3944373.639] {Default Queue}  -> wl_buffer#43.destroy()
[3944373.641] {Default Queue}  -> wl_shm_pool#46.destroy()
[2025-04-16 21:15:33.537] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config
[2025-04-16 21:15:33.537] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/config.jsonc
[2025-04-16 21:15:33.537] [debug] Try expanding: $HOME/.config/waybar/config
[2025-04-16 21:15:33.537] [debug] Try expanding: $HOME/.config/waybar/config.jsonc
[2025-04-16 21:15:33.537] [debug] Found config file: /home/rein/.config/waybar/config.jsonc
[2025-04-16 21:15:33.537] [info] Using configuration file /home/rein/.config/waybar/config.jsonc
[2025-04-16 21:15:33.537] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/style.css
[2025-04-16 21:15:33.537] [debug] Try expanding: $HOME/.config/waybar/style.css
[2025-04-16 21:15:33.537] [debug] Found config file: /home/rein/.config/waybar/style.css
[2025-04-16 21:15:33.537] [info] Using CSS file /home/rein/.config/waybar/style.css
[2025-04-16 21:15:33.537] [debug] Parsing imports for file: /home/rein/.config/waybar/style.css
[2025-04-16 21:15:33.537] [debug] Try expanding: $XDG_CONFIG_HOME/waybar/../../.cache/wal/colors-waybar.css
[2025-04-16 21:15:33.537] [debug] Try expanding: $HOME/.config/waybar/../../.cache/wal/colors-waybar.css
[2025-04-16 21:15:33.537] [debug] Found config file: /home/rein/.config/waybar/../../.cache/wal/colors-waybar.css
[2025-04-16 21:15:33.537] [debug] Adding file to watch list: /home/rein/.config/waybar/../../.cache/wal/colors-waybar.css
[2025-04-16 21:15:33.537] [debug] Adding file to watch list: /home/rein/.config/waybar/style.css
[3944374.459] {Default Queue}  -> wl_display#1.get_registry(new id wl_registry#48)
[3944374.463] {Default Queue}  -> wl_display#1.sync(new id wl_callback#49)
[2025-04-16 21:15:33.538] [debug] hyprland IPC received closelayer>>waybar
zsh: segmentation fault (core dumped)  WAYLAND_DEBUG=1 waybar -l trace

rein1410 avatar Apr 16 '25 14:04 rein1410

Update: turns out that this is an issue when reloading GTK with xsettingsd. I have an application called wpgtk and when I use it to update the themes of my desktop it crashes

rein1410 avatar May 21 '25 14:05 rein1410