Open vendion opened 9 years ago
Hmm, I have no idea what could be causing that. There's nothing fancy in wingo-cmd
that could be causing a deadlock. Could you paste the wingo logs at the time that this occurs?
Sure, it may be a couple of days before I can get them to you.
On Tue, Jun 23, 2015, 7:40 PM Andrew Gallant notifications@github.com wrote:
Hmm, I have no idea what could be causing that. There's nothing fancy in wingo-cmd that could be causing a deadlock. Could you paste the wingo logs at the time that this occurs?
— Reply to this email directly or view it on GitHub https://github.com/BurntSushi/wingo/issues/123#issuecomment-114675095.
Okay now that I have net and time to mess with this again, here is wingo's logs with the logging level set to 4. I was guessing that would be the most helpful in this case.
When wingo-cmd
complains about deadlocks I only see this in wingo's logs
WINGO LOTS: ipc.go:83: Running command from IPC: 'GetClientList (GetWorkspace)'.
WINGO LOTS: ipc.go:83: Running command from IPC: 'GetClientName 39845891'.
WINGO LOTS: ipc.go:83: Running command from IPC: 'GetWorkspace'.
WINGO LOTS: ipc.go:83: Running command from IPC: 'GetClientList (GetWorkspace)'.
WINGO LOTS: ipc.go:83: Running command from IPC: 'GetClientName 39845891'.
WINGO LOTS: ipc.go:83: Running command from IPC: 'GetWorkspace'.
WINGO LOTS: ipc.go:83: Running command from IPC: 'GetClientList (GetWorkspace)'.
WINGO LOTS: ipc.go:83: Running command from IPC: 'GetClientName 39845891'.
WINGO LOTS: ipc.go:83: Running command from IPC: 'GetWorkspace'.
WINGO LOTS: ipc.go:83: Running command from IPC: 'GetClientList (GetWorkspace)'.
WINGO LOTS: ipc.go:83: Running command from IPC: 'GetClientName 39845891'.
WINGO LOTS: ipc.go:83: Running command from IPC: 'GetWorkspace'.
WINGO LOTS: ipc.go:83: Running command from IPC: 'GetClientList (GetWorkspace)'.
WINGO LOTS: ipc.go:83: Running command from IPC: 'GetClientName 39845891'.
WINGO WARNING: ipc.go:78: Error reading command '': read unix @: connection reset by peer
This makes it sound like it is a socket issue, such as hitting a connection limit or something. I don't see how though because this is currently only being polled one a second (maybe a bit overkill on my part) and in you're wingo-cmd example you show it polling client information every 500 milliseconds.
I'm using the wingo-cmd tool to pipe information like the active workspace and clients on that workspace into Lemonbar. This information is currently being polled every second, and that seems to be causing a deadlock.
The way this is getting polled is with the following script
While that script works and returns the information, left running long enough the wingo-cmd start having issues.
This was tested on Go 1.4.2 linux/amd64 running Wingo and wingo-cmd from d7c36494edf2b38cdcbd705ba85e88dea2d19f9b