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

Long output in hs -C shell crashes HS #2092

jdtsmith opened this issue May 4, 2019 · 2 comments


Copy link

commented May 4, 2019

Code to recursively print all the hs modules, running in an hs -C shell:

local function _hs_completions(t,p,h)
   for k,_ in pairs(t) do
      if tostring(k):sub(1,1)~="_" then
	 if h then t=h end
	 if type(t[k])=='table' then

_hs_completions(hs._extensions, "hs", hs)

crashes with:

error communicating with Hammerspoon: receive timeout
2019-05-04 14:52:30.689 hs[42168:15863072] *** Terminating app due to uncaught exception 'NSDestinationInvalidException', reason: '*** -[HSClient performSelector:onThread:withObject:waitUntilDone:modes:]: target thread exited while waiting for the perform'
*** First throw call stack:
	0   CoreFoundation                      0x00007fff3df49cf9 __exceptionPreprocess + 256
	1   libobjc.A.dylib                     0x00007fff68adda17 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff3df49b2b +[NSException raise:format:] + 201
	3   Foundation                          0x00007fff40177e5d -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 1060
	4   Foundation                          0x00007fff4017f69a -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:] + 119
	5   hs                                  0x00000001051fe025 main + 6437
	6   libdyld.dylib                       0x00007fff6a30b3d5 start + 1
	7   ???                                 0x0000000000000002 0x0 + 2
libc++abi.dylib: terminating with uncaught exception of type NSException

Process hammerspoon abort trap: 6

This comment has been minimized.

Copy link

commented Aug 15, 2019

Was this a one-off? Or is it completely reliable? I can't reproduce it here.


This comment has been minimized.

Copy link

commented Aug 15, 2019

Haven't seen it again.

@jdtsmith jdtsmith closed this Aug 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.