Open tych0 opened 5 months ago
This may be related to what #4583 is trying to fix. Can you see if that helps?
Great, thanks! I have been running 0.24.0 since it was released, and only seen this once, so it takes some strangeness to reproduce. I'll run your branch and report back here if it doesn't reappear.
I could be way off the mark with that PR so feel free to tell me I'm doing it completely wrong.
It looks like it will definitely fix it, but I read the existing code and couldn't figure out why it was wrong. Seems like we're caching a wid somewhere, but I couldn't figure out where?
I'm not convinced that's the problem. I think the issue is that, when we query the stack, we get some window IDs which aren't in our window map. That could happen with override_redirect windows but there seem to be other cases that I don't quite understand.
This issue is stale because it has been open 90 days with no activity. Remove the status: stale
label or comment, or this will be closed in 30 days.
I think we can close this, I haven't seen it again.
Heh... spoke too soon. I just got:
2024-05-27 14:55:05,057 ERROR libqtile manager.py:process_key_event():L470 KB command error up: Traceback (most recent call last):
File "/home/tycho/.local/lib/python3.10/site-packages/libqtile/command/interface.py", line 431, in call
return SUCCESS, cmd(*args, **kwargs)
File "/home/tycho/.local/lib/python3.10/site-packages/libqtile/layout/max.py", line 81, in up
_SimpleLayoutBase.previous(self)
File "/home/tycho/.local/lib/python3.10/site-packages/libqtile/layout/base.py", line 521, in previous
self.group.focus(client, True)
File "/home/tycho/.local/lib/python3.10/site-packages/libqtile/group.py", line 233, in focus
self.layout_all(warp)
File "/home/tycho/.local/lib/python3.10/site-packages/libqtile/group.py", line 165, in layout_all
self.current_window.focus(warp)
File "/home/tycho/.local/lib/python3.10/site-packages/libqtile/backend/x11/window.py", line 2331, in focus
_Window.focus(self, warp)
File "/home/tycho/.local/lib/python3.10/site-packages/libqtile/backend/x11/window.py", line 1334, in focus
self.qtile.core.check_stacking(self)
File "/home/tycho/.local/lib/python3.10/site-packages/libqtile/backend/x11/core.py", line 941, in check_stacking
self.last_focused.change_layer()
File "/home/tycho/.local/lib/python3.10/site-packages/libqtile/backend/x11/window.py", line 1177, in change_layer
self.qtile.windows_map[wid].window.configure(
KeyError: 83886094
Issue description
I'm getting some errors from the layering code, and when qtile gets into this state, it gets very confused and will refuse to do many things, so it is quite annoying :). I'll think about how to protect us from ourselves so we can keep going in situations like this, but it looks like there's some staleness that can happen here too.
Version
0.24.0
Backend
X11 (default)
Config
No response
Logs