Problem summary
Copy nodes with Colorcorrects upstream and a Write node downstream can cause Nuke to crash. When testing I found that the issue was related to the following line of code in the nuke script.
3) Select the write node and the script will crash.
4) Adjust the write node from RGBA from RGB so the script will fail.
5) Disabling the color correct will crash
6) Setting the mix to be any value other than 1
Workaround
Adjust the mix or luminance to off or 0.
Adjust the Saturation for the master to any value other than zero.
Disable the color correct node.
Reproduced by support
Nuke11.0v2 - Windows 7 - CentOS 6.9 - MacOS 10.12
Nuke11.0v1 - Windows 7 - CentOS6.9 - MacOS 10.12
Nuke10.5v5 - Windows 7 - CentOS6.9 - MacOS 10.12
Nuke10.5v1 - Windows 7 - CentOS6.9 - MacOS 10.12
Nuke10.0v6 - Windows 7 - CentOS6.9 - MacOS 10.12
Nuke10.0v1 - Windows 7 - CentOS6.9 - MacOS 10.12
Nuke9.0v9 - Windows 7 - CentOS6.9 - MacOS 10.12
Nuke9.0v1 - Windows 7 - CentOS6.9 - MacOS 10.12
Nuke8.0v7 - Could not reproduce across all systems
Nuke8.0v1 - Could not reproduce across all systems
Nuke7.0v10 - Could not reproduce across all systems
Earliest version tested
Nuke7.0v10
Expected behaviour
The script would be usable.
Actual behaviour
The Script crashes if you attempt any of the following:
select the write node
or try to put the viewer on it (the write node)
setting gain, contrast, or offset
trying RGBA instead of RGB
setting the mix to be some value other than 1