phosh crashes with wlroots 0.12.0: error on 0 dimension without anchors
After upgrading from wlroots 0.11.0 to 0.12.0, phosh 0.5.1 will crash ~1 second after starting.
phoc version: 0.4.4
Log with G_MESSAGES_DEBUG=phoc-wlroots
:
dbus-daemon[11709]: [session uid=10000 pid=11709] Successfully activated service 'ca.desrt.dconf'
(phoc:11711): phoc-wlroots-DEBUG: 19:49:22.111: [types/wlr_surface.c:666] New wlr_surface 0xffff82ed3280 (res 0xffff830e7400)
(phoc:11711): phoc-wlroots-DEBUG: 19:49:22.112: [types/wlr_surface.c:666] New wlr_surface 0xffff82ed3660 (res 0xffff830e7f40)
(phoc:11711): phoc-wlroots-DEBUG: 19:49:22.112: [types/wlr_layer_shell_v1.c:458] new layer_surface 0xffff82f4fe30 (res 0xffff8390ee20)
(phoc:11711): phoc-wlroots-DEBUG: 19:49:22.112: [../src/layer_shell.c:747] new layer surface: namespace phosh layer 2 anchor 13 size 0x32 margin 0,0,0,0
(phoc:11711): phoc-wlroots-DEBUG: 19:49:22.256: [types/wlr_surface.c:666] New wlr_surface 0xffff82e5e400 (res 0xffff83107640) (phoc:11711): phoc-wlroots-DEBUG: 19:49:22.256: [types/wlr_surface.c:666] New wlr_surface 0xffff82e5e810 (res 0xffff83107eb0)
(phoc:11711): phoc-wlroots-DEBUG: 19:49:22.256: [types/wlr_surface.c:666] New wlr_surface 0xffff82e5ec00 (res 0xffff82f47400)
(phoc:11711): phoc-wlroots-DEBUG: 19:49:22.256: [types/wlr_surface.c:666] New wlr_surface 0xffff82e5efd0 (res 0xffff82f47880)
(phoc:11711): phoc-wlroots-DEBUG: 19:49:22.256: [types/wlr_layer_shell_v1.c:458] new layer_surface 0xffff82f4ffc0 (res 0xffff82f47d00)
phoc-wlroots-INFO: 19:49:22.257: [wayland] error in client communication (pid 11773)
(phoc:11711): phoc-wlroots-DEBUG: 19:49:22.257: [../src/cursor.c:696] entered surface 0, lx: 100.000000, ly: 100.000000, sx: 0.000000, sy: 0.000000
Gdk-Message: 19:49:22.282: Error 71 (Protocol error) dispatching to Wayland display.
I ran bisect and found this to be the breaking commit:
https://github.com/swaywm/wlroots/commit/8dec751a6d84335fb04288b8efab6dd5c90288d3