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
[Bug]: i3: Failed to reconnect socket #2730
Comments
github removed the title... |
In the log you posted, did polybar die or did the module disappear? It looks like the former, in that case the i3 module is not responsible for it, there is something that sent signal 15 (SIGTERM) to your polybar instance and killed it. The error message in the i3 module is a side effect of shutting down (probably something we're doing wrong). |
Iirc the module disappeared, the sigterm is me killing it afterwards. Sometimes itll fix itself after telling the bar to restart, other times it just freezes and requires a kill. |
I see.
So the bar freezes after you tell it to restart? Could you run polybar with trace logging (
This generally happens when polybar loses connection to the i3 socket. I have only seen this happen when reloading i3. Could it be that you were reloading i3 when this happened? |
Correct, it'll be fine until it tell it to restart, at which point it either freezes, restarts fine, or just gives up and dies.
Sure, it may take a couple days for the bug to trigger again but i'll get that for you.
Not at all, i rarely reload i3. |
Alright, this indicates the i3 module is stuck reconnecting to the i3 socket. In general, the i3 module can't freeze the bar, except during shutdown because if it is stuck connecting to the socket, polybar needs to wait for it before it can shut down.
I unfortunately can't find anything in the code that could be responsible for this, so I do need more information to track this down. Of course, consistently reproducing the bug would be best, but that may not be possible here. |
Yeah, I haven't been able to consistently reproduce it no matter what. I've added the logging line to my i3 config, now its just a waiting game... |
wooo! got it to freeze! |
ayyyyy it crashed after i restarted it! |
I would also like to report this issue. Strangely, this started happening ever since I updated to Ubuntu 22.04.1 LTS from 20.04 LTS. |
I'm observing a similar issue on Arch after upgrading to |
I think I'm seeing the same as @CodingCellist (but this is "Attempting to reconnect", not "Failed", should we open a new issue?), this is part of my log with
Somehow seems to be related to my Todoist window, if I move it to scratchpad (=invisible), the issue is gone. Edit: I take that back, I had it with terminal windows as well and it resolved after moving them around a bit.. 🤔 |
That's exactly what happened to me after upgrading i3 to 4.22-3 version |
I can confirm this too. polybar version: 3.6.3
|
So, bug seems to be fixed in some commit after release 3.6.3 |
The issue ints was resolved with this commit, however I'm still occasionally getting (same as in original log) |
All of the above listed issues sound all too familiar to my issue #2942 and the discussion for it #2941. More than likely it is the same error. My current polybar implementation came from the distribution package manager. So, I will remove it, and build from src in the repo to see if this clears up the issue. I sincerely hope it does. Nope. Error on build. But the ports tree contains 3.6.3 so that is ok... AND... It made no difference. i3 Module is still crashing. |
Checklist
Steps to reproduce
polybar
Minimal config
Polybar log
Expected behavior
Polybar doesn't crash.
Actual behavior
Polybar either loses the xworkspaces module or just disappears and requires a restart.
Window Manager and Version
i3-gaps v4.20.1
Linux Distribution
EndeavourOS
Polybar version
Additional Context / Screenshots
i am stumped, i'll happen to look down where polybar usually is and realize either A: the xworkspaces module is missing, or B: the entire bar is just gone. It's taken about two weeks just to get it to happen again.
The text was updated successfully, but these errors were encountered: