-
Notifications
You must be signed in to change notification settings - Fork 17
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
Avoid sometimes selecting killed buffers #87
Conversation
I get a similar error which might be related. It occurs in the same function that you edited if I recall correctly. Some EXWM timer errors that it tried to select a killed buffer. I will post the backtrace here next time I see it. It locks up Emacs for me too but I'm usually able to make it stop by removing all EXWM buffers from the screen and then letting the code continue by closing the backtrace buffer. |
That sounds like the same thing that happens to me, could be the same issue. |
Steps to reproduce:
If you check Also, I suspect that |
I got the error message again today. It was triggered when a game on Steam tried to launch a bunch of windows. It seems to have been triggered by my timer initially, or it's unrelated. I was in several recursive edits at the time, so I cut those out of the backtrace:
I do disable exwm windows, so that might have contributed to the error:
|
I don't know much about Emacs or EXWM internals, but I've been poking around a bit. It looks like when buffers are killed, they should be removed from previous and next buffer lists: https://github.com/emacs-mirror/emacs/blob/7ded1064cf4d9fde32c7a89473ef9476520cd556/src/buffer.c#L2014-L2019 Does anyone have any idea why these killed EXWM buffers still show up in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually have this fix locally, I just haven't gotten around to pushing it. This is small enough it probably doesn't require any form of copyright assignment (it's also identical to my fix so it's "not creative").
That is a good question and... I have no idea. It's possibly an upstream bug but it can't hurt to fix it here as well. |
I am unable to reliably reproduce this, but occasionally,
window-prev-buffers
returns a killed buffer. Then, when EXWM tries to switch to it, it gives an error, and workspace switching locks up.