Waybar: Waybar crashes after outputs change

Hi, The Waybar always crashes under the Sway after I change outputs without full config reload. How to reproduce:

  • Set single output
  • Change outputs config via
    swaymsg output eDP-1 disable \
    output HDMI-A-2 pos 0 0 enable \
    output DP-1 pos 1920 0 enable
    
    or smth like this
  • Got a segfault

The Waybar version is Waybar v0.5.1 (Apr 10 2019, branch 'master')

Also, the backtrace is:

#0  0x0000563a6b72938a in  ()
#1  0x0000563a6b709d51 in  ()
#2  0x00007f395ba566d0 in ffi_call_unix64 () at /usr/lib/libffi.so.6
#3  0x00007f395ba560a0 in ffi_call () at /usr/lib/libffi.so.6
#4  0x00007f395c7891ac in g_cclosure_marshal_generic () at /usr/lib/libgobject-2.0.so.0
#5  0x00007f395c77ee75 in g_closure_invoke () at /usr/lib/libgobject-2.0.so.0
#6  0x00007f395c76bfd5 in  () at /usr/lib/libgobject-2.0.so.0
#7  0x00007f395c772ce0 in g_signal_emitv () at /usr/lib/libgobject-2.0.so.0
#8  0x0000563a6b72a805 in  ()
#9  0x00007f395c803172 in  () at /usr/lib/libgio-2.0.so.0
#10 0x00007f395c822b0a in  () at /usr/lib/libgio-2.0.so.0
#11 0x00007f395c691661 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#12 0x00007f395c693739 in  () at /usr/lib/libglib-2.0.so.0
#13 0x00007f395c6946d2 in g_main_loop_run () at /usr/lib/libglib-2.0.so.0
#14 0x00007f395cc9f94f in gtk_main () at /usr/lib/libgtk-3.so.0
#15 0x0000563a6b6d2b7f in  ()
#16 0x0000563a6b6d17af in main ()

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (5 by maintainers)

Most upvoted comments

Looks like problem is still there.

Couldn't map window 0x563a3f656760 as subsurface because its parent is not mapped.
[2021-05-20 17:10:20.046] [warning] Requested height: 17 exceeds the minimum height: 18 required by the modules
[2021-05-20 17:10:20.046] [info] Bar configured (width: 1920, height: 18) for output: DP-5
[2021-05-20 17:10:20.263] [info] Bar configured (width: 1920, height: 17) for output: DP-5
[2021-05-20 17:10:23.088] [warning] Requested height: 17 exceeds the minimum height: 18 required by the modules
[2021-05-20 17:10:23.088] [info] Bar configured (width: 1920, height: 18) for output: DP-5
[2021-05-20 17:10:24.421] [info] Bar configured (width: 1920, height: 17) for output: DP-5
[2021-05-20 17:10:24.735] [warning] Requested height: 17 exceeds the minimum height: 18 required by the modules
[2021-05-20 17:10:24.735] [info] Bar configured (width: 1920, height: 18) for output: DP-5
[2021-05-20 17:10:24.851] [info] Bar configured (width: 1920, height: 17) for output: DP-5
[2021-05-20 17:12:58.008] [warning] For a functional tray you must have libappindicator-* installed and export XDG_CURRENT_DESKTOP=Unity
[2021-05-20 17:12:58.133] [warning] Requested height: 14 exceeds the minimum height: 17 required by the modules
[2021-05-20 17:12:58.133] [info] Bar configured (width: 1920, height: 17) for output: eDP-1
terminate called without an active exception
waybar.service: Main process exited, code=killed, status=6/ABRT
waybar.service: Failed with result 'signal'.
waybar.service: Consumed 3min 12.201s CPU time.```

> waybar --version
Waybar v0.9.7

I can also confirm this bug should be re-opened. I am also running v.0.9.7.

Also ran into this today. Same waybar version as alxchk