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 · 7 comments
Open

ipc port is no longer valid (early) #3375

DangerD1024 opened this issue Sep 23, 2024 · 7 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?

@latenitefilms
Copy link
Contributor

I'm going to close this issue for now, but feel free to re-open it if you're still having issues with the latest CommandPost release.

@latenitefilms latenitefilms modified the milestones: 1.5.3, 1.5.2 Dec 6, 2024
@DangerD1024
Copy link
Author

DangerD1024 commented Dec 17, 2024

I still have issue, if i call function from commandpost console, it works fine, but if i call it from terminal:
cmdpost -c 'startExport("/Users/realmedia/Documents/FCP Projects/257 York Road, Dundas, testOLOLO_unbranded.fcpxml")'
It stops in the middle of script randomly even between print messages...

i'm still on version 1.4.27 because my script which i've just finished stopped to work on 1.5...

@latenitefilms latenitefilms reopened this Dec 17, 2024
@DangerD1024
Copy link
Author

DangerD1024 commented Dec 17, 2024

UPD on latest 1.5.1 script works, looks like something was fixed, but same issue from terminal remains

@DangerD1024
Copy link
Author

Any ideas?
Alternatively i can read some txt file each 5 seconds and get tasks from there =)

@DangerD1024
Copy link
Author

Yes, that works perfect =)

@latenitefilms latenitefilms modified the milestones: 1.5.2, 1.5.3 Dec 18, 2024
@latenitefilms latenitefilms modified the milestones: 1.5.3, 1.5.4 Jan 5, 2025
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