State:Closed|icon_bug|icon_nuke|database:public|Resolution:Fixed|TargetRelease:12.2v3|BugID:398188|
Problem summary:
Executing nuke.scriptClear() in the Script Editor multiple times crashes Nuke.
Customer reported version:
nuke.11.3v4
Customer reported platform:
centos7
Steps to reproduce:
1) Open Nuke and the Script Editor.
2) Run the following command in the Script Editor:
_VIEWER_INPUT_NAME = 'VIEWER_INPUT'def create_viewer_input_on_root(): root = nuke.thisNode() if not root['name'].value(): viewer_input_node = nuke.createNode('Grade', 'name {}'.format(_VIEWER_INPUT_NAME)) viewer_input_node['xpos'].setValue(82) viewer_input_node['ypos'].setValue(77)nuke.addOnCreate(create_viewer_input_on_root, nodeClass='Root')
3) Run the following command in the Script Editor until Nuke crashes: nuke.scriptClear(resetToCompiledDefaults=False)
NOTE: This has seen to crash Nuke running only once, but could require multiple times.
Expected behavior:
Nuke should remain stable when running the command: nuke.scriptClear(resetToCompiledDefaults=False)
Actual behavior:
Nuke crashes when executing the command: nuke.scriptClear(resetToCompiledDefaults=False)
Workaround:
Using the command: nuke.removeOnCreate(create_viewer_input_on_root, nodeClass='Root') after the VIEWER_INPUT node is created de-registers the callback, mitigating the crash.
Reproduced by Support in:
Nuke 11.3v4 - CentOS 7
Nuke 11.3v1 - CentOS 7
Nuke 11.2v6 - CentOS 7
Nuke 11.2v5 - CentOS 7
Unable to reproduce bug in:
Nuke 11.2v4 - CentOS 7
Windows 10, macOS - All versions
Earliest version tested:
Nuke 11.2v4 - CentOS 7, Windows 10, macOS
We're sorry to hear that
Please tell us why