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

Process Hangs On Jenkins Cancellation #24

Closed
JamesMc86 opened this issue Jun 8, 2017 · 3 comments
Closed

Process Hangs On Jenkins Cancellation #24

JamesMc86 opened this issue Jun 8, 2017 · 3 comments
Labels

Comments

@JamesMc86
Copy link
Collaborator

I have tried to cancel a jenkins job where LabVIEW was non-responsive.

I see that the LabVIEW thread is killed but something is hanging on in the application.

Log output:

Launching Program:
C:\Program Files (x86)\National Instruments\LabVIEW 2015\LabVIEW.exe "C:\Users\Public\Documents\National Instruments\LV-CLI Common Steps\steps\run-vi-tester.vi" -- -p:62908 "Monitor Software.lvproj" "test_results" "${WORKSPACE}"

LabVIEW started, process ID is 1152

Waiting for connection on port 62908

Aborted by James McNally

Sending interrupt signal to process

Click here to forcibly terminate running steps

LabVIEW exiting...

LabVIEW terminated unexpectedly!`

@JamesMc86 JamesMc86 added the bug label Jun 8, 2017
@JamesMc86
Copy link
Collaborator Author

Thought I saw something similar so looked at the code more. If that is all of the output then it looks like the process tracking thread never stopped. We would expect "process tracking thread finished" in that case. Best check that there isn't a way to leave that thread running if the main process is terminated.

JamesMc86 added a commit that referenced this issue Sep 20, 2017
…minated unexpected. fixes #32

* Handled Ctrl+C properly in the hope it helps with #24
@JamesMc86
Copy link
Collaborator Author

Not sure if it is related but if LabVIEW remains open and the CLI quits the tracking thread would hold on.

Added a line to close the tracking thread even if LabVIEW is still running in the instance that LabVIEW CLI has shut down.

@JamesMc86
Copy link
Collaborator Author

Not seeing this any more - closing.

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

No branches or pull requests

1 participant