State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:221636|
Problem summary
Nuke process won't close with an active thread running.
Customer reported version
nuke.10.0v3
Steps to reproduce
1) Open Nuke from a terminal
2) Run the code below in the script editor:
import time
import threading
def spin():
while True:
time.sleep(1)
t = threading.Thread(target=spin)
t.start()
3) Close Nuke, the terminal will now show an error, and not allow you you run any more commands. Checking the Task manager, the Nuke process is still running in the background, although idle.
Reproduced by support
The problem has been reproduced in:
Nuke 10.0v3 - Windows 10 - CentOS 6.7
Nuke 10.0v1 - Windows 10
Nuke 9.0v8 - Windows 10
Nuke 9.0v1 - Windows 10
Nuke 8.0v6 - Windows 10 - CentOS 6.7 (On Nuke 8.0v6, Nuke crashes when you try to close it, and you don't get the same error message.)
Expected behaviour
Nuke to close and kill the Nuke process
Actual behaviour
Nuke erred and kept running in the background
We're sorry to hear that
Please tell us why