Recursive

52 views
Skip to first unread message

d mg

unread,
Oct 17, 2023, 4:06:40 PM10/17/23
to Hammerspoon
hi everybody,

My hammerspoon configuration is identical between my laptop and my desktop.

yet, my laptop keeps generating this errors:

2023-10-17 11:50:19: 11:50:19 ERROR:   LuaSkin: hs.ipc callback is being called recursively. Check your callback function, it is triggering further IPC messages. This message was triggered after reaching 5 recursive callbacks.

(several ones) and then

2023-10-17 12:21:55: 12:21:55 ** Warning:   wfilter: loginwindow (0) is STILL not registered

Given the timing, it is related to suspend (recursive calls)/resume (login window).

Does anybody have any idea where to look for the potential culprit? Is there a way to  add a backtrace in the error messages?

thank you for any hints,


--daniel



Chris Jones

unread,
Oct 18, 2023, 3:51:14 AM10/18/23
to d mg, Hammerspoon
Hey

What do you have in your hs.ipc callback?

Cheers,
--
Chris Jones

On 17 Oct 2023, at 21:06, d mg <dmge...@gmail.com> wrote:

hi everybody,
--
You received this message because you are subscribed to the Google Groups "Hammerspoon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hammerspoon...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/hammerspoon/ddd0a3ef-71fb-462d-978b-80248626c242n%40googlegroups.com.

dmg

unread,
Jan 1, 2024, 2:06:24 AM1/1/24
to Chris Jones, Hammerspoon


Hi Chris,

sorry for not replying before. I have been debugging this issue. I found and
removed a spoon that was creating most of the problems.

But there is some errors that happen after suspend/resume, But I have
not been able to pin-point why.

They seem to be happening when the computer is sleeping. I believe macos
wakes-up during suspend for few seconds.

2023-12-31 21:16:33: 21:16:33 ERROR: LuaSkin: hs.ipc callback is
being called recursively. Check your callback function, it is triggering further IPC messages. This message was triggered after reaching 5 recursive callbacks.

2023-12-31 22:00:02: 22:00:02 ERROR: LuaSkin: hs.ipc callback is being called recursively. Check your callback function, it is triggering further IPC messages. This message was triggered after reaching 5 recursive callbacks.

I am also getting this error:

2023-12-31 15:51:11: 15:51:11 ERROR: LuaSkin: hs.ipc:callback - error during callback for Hammerspoon: ...Hammerspoon.app/Contents/Resources/extensions/hs/ipc.lua:420: attempt to index a nil value (local 'fnEnv')


I have a hunch. Could it be that I turn off bluetooth just before going to
sleep, and enable it back when waking up. I have a callback to monitor
usb.

And for anybody looking for ways to debug strange errors, I found
that it is possible to change the level of messages to the console using hs.logger

hs.logger.setModulesLogLevel(3)
hs.logger.setGlobalLogLevel(3)



thanks again, Chris, for all the work you have done with hammerspoon

(and happy new year).

Chris Jones <cm...@tenshu.net> writes:

> Hey
>
> What do you have in your hs.ipc callback?
>
> Cheers,


--
Daniel M. German "Beware of bugs in the above code;
I have only proved it
Donald Knuth -> correct, not tried it."
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .

Reply all
Reply to author
Forward
0 new messages