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

Continually crashing in ipc.lua module (ipc port is no longer valid) #3704

Open
megalithic opened this issue Oct 17, 2024 · 3 comments
Open

Comments

@megalithic
Copy link

v._cli.remote:sendMessage(stdout .. "\n", MSG_ID.CONSOLE)

I'm rather consistently getting this error:

 2024-10-16 14:23:08: 14:23:08 ERROR: LuaSkin: hs.timer callback error: ...Hammerspoon.app/Contents/Resources/extensions/hs/ipc.lua:48: ipc port is no longer valid (early)

Most notably this happens with keybindings, but also has happened with the hs.layout and hs.screen modules. I don't have an exact root cause, unfortunately. The easiest workaround is just to reload the config again, and all is well. Some days, it errors only once, some days it's 1-5 times. I'll notice it once a keybinding fails to execute as expected.

This has happening on 100.x; also, I'm on Sonoma 14.6.1.

Anyone else experiencing this??

@megalithic
Copy link
Author

Just confirming that I believe this is happening because I have one of my tmux plugins spamming hs -c <some_cmd>, so, that said, removing the offending sequential calls to the hs cli tool from tmux ended up fixing it (haven't seen this error again).

I'll add a debounce of some sort to these calls from tmux and see if that alleviates (unfortunately what i was using this for needed near-real-time feedback).

@cmsj
Copy link
Member

cmsj commented Nov 9, 2024

It would be great if we could narrow this down to a reproducer. It's probably not related, but one of our long-standing complete crashes of Hammerspoon is something to do with IPC ports ceasing being valid for some reason.

@megalithic
Copy link
Author

It would be great if we could narrow this down to a reproducer. It's probably not related, but one of our long-standing complete crashes of Hammerspoon is something to do with IPC ports ceasing being valid for some reason.

Definitely happy to provide more context as i can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants