Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[master] A configure is scheduled for an uninitialized xdg_surface 0x7fd951c70620 #8115

Open
WhyNotHugo opened this issue Apr 15, 2024 · 2 comments
Labels
bug Not working as intended
Milestone

Comments

@WhyNotHugo
Copy link
Contributor

  • 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.

@WhyNotHugo WhyNotHugo added the bug Not working as intended label Apr 15, 2024
@emersion emersion added this to the 1.10 milestone Apr 16, 2024
@WhyNotHugo
Copy link
Contributor Author

WhyNotHugo commented Apr 30, 2024

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 <contact@emersion.fr>
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 3ef5abd.

The first bad commit uses wlroots 94dbb3cfb5293e58580083cd26f059669030956d.

The last good commit uses wlroots 94dbb3cfb5293e58580083cd26f059669030956d

@WhyNotHugo
Copy link
Contributor Author

WhyNotHugo commented Apr 30, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

2 participants