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

ipc port is no longer valid (early) #3375

Open
DangerD1024 opened this issue Sep 23, 2024 · 2 comments
Open

ipc port is no longer valid (early) #3375

DangerD1024 opened this issue Sep 23, 2024 · 2 comments

Comments

@DangerD1024
Copy link

DangerD1024 commented Sep 23, 2024

Script stops sometimes on line log.ef("W0") :
(function is being called from Terminal)

	local success, errorMessage = pcall(function()
	...
		log.ef("111")
		isBusy = true;
		while isBusy do
			log.ef("W0")
			local backgroundTasksDialog = fcp.backgroundTasksDialog
2024-09-23 15:45:44: 15:45:44 ERROR:   example: 111
2024-09-23 15:45:44: 15:45:44 ERROR:   example: Oh Crap ! Error: ...CommandPost.app/Contents/Resources/extensions/hs/ipc.lua:48: ipc port is no longer valid (early)
2024-09-23 15:45:44: 15:45:44 ERROR:   LuaSkin: hs.ipc:callback - error during callback for CommandPost: ...CommandPost.app/Contents/Resources/extensions/hs/ipc.lua:420: ipc port is no longer valid (early)
stack traceback:
	[C]: in method 'sendMessage'
	...CommandPost.app/Contents/Resources/extensions/hs/ipc.lua:420: in function 'hs.ipc.__defaultHandler'

Any ideas?

@latenitefilms latenitefilms self-assigned this Oct 3, 2024
@latenitefilms latenitefilms added this to the 1.4.28 milestone Oct 3, 2024
@latenitefilms
Copy link
Contributor

Sorry for the delayed replay - missed this.

Normally you can ignore the ipc port is no longer valid (early) message.

But in this case, I'm guessing your CLI call is closing once the Lua code is done?

@latenitefilms
Copy link
Contributor

@DangerD1024 - Are you still having issues?

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

No branches or pull requests

2 participants