sway
sway copied to clipboard
[master] A configure is scheduled for an uninitialized xdg_surface 0x7fd951c70620
-
Sway Version:
-
sway version 1.10-dev-dcb142bf (Mar 31 2024, branch 'master')
-
Debug Log:
https://paste.sr.ht/~whynothugo/dafdf6ca7bacfc184b1a337f739283c04ae18c22
-
Configuration File:
exec foot
-
Stack Trace:
n/a
- Description:
sway itself logs [Apr 15 11:52:30] user hugo/sway: 15:23:49.181 [ERROR] [wlr] [types/xdg_shell/wlr_xdg_surface.c:169] A configure is scheduled for an uninitialized xdg_surface 0x7fd94efccc50 when a new window opens.
sway only logs an error (thousands of times per day), but I see no other symptoms.
I can reproduce this with foot, firefox, audacious and nemo. I suspect that it happens with any regular client.
Clients which render layer-shell don't seem to have this problem.
I bisected with python checkout-wlroots.py && rm -rf build && meson build && meson compile -C build && ./build/sway/sway -c test.conf.
checkout-wlroots.py checks out the latest wlroots commit for a given sway commit
3ef5abd405a6fd32aeeffb2f48a6cadd9fc14574 is the first bad commit
commit 3ef5abd405a6fd32aeeffb2f48a6cadd9fc14574
Author: Simon Ser <[email protected]>
Date: Tue Feb 27 15:10:09 2024 +0100
xdg-shell: send WM capabilities
sway/desktop/xdg_shell.c | 4 ++++
sway/server.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
That's 3ef5abd405a6fd32aeeffb2f48a6cadd9fc14574.
The first bad commit uses wlroots 94dbb3cfb5293e58580083cd26f059669030956d.
The last good commit uses wlroots 94dbb3cfb5293e58580083cd26f059669030956d
Ah, calling wlr_xdg_toplevel_set_wm_capabilities implicitly schedules a configure event via wlr_xdg_surface_schedule_configure, but it is too early in this case.
Fixed in https://github.com/swaywm/sway/pull/8232