ID 385696 - MergeMat that combines two Project3D nodes crashes Nuke if it is disabled and pasted in from clipboard

Follow

Problem summary
Nuke crashes unexpectedly when a setup contains a Camera connected to two Project3D nodes that are being combined together using a MergeMat node.

The crash only occurs when the MergeMat node is disabled and only when the nodes exist as a clipboard item and copy and pasted into a script.

The catalyst from the crash appears to be when the Camera node's Properties Bin is accessed when viewing the result of the disabled MergeMat node after being copied back into the script from the clipboard.

Customer reported version
nuke.11.2v3

Customer reported platform
centos7

Steps to reproduce

1) Open a new Nuke session

2) Create a CheckerBoard node

3) Create two Project3D nodes, using the CheckerBoard node as the source input

4) Create a Camera node and use this as the cam input for both Project3D nodes

5) Create a MergeMat to combine the outputs of the Project3D nodes (see below for node tree reference)


6) Disable the MergeMat node and copy the node tree to your clipboard (ctrl/cmd+c)

7) Create a new Nuke script and paste in the copied node tree (ctrl/cmd+v)

8) View the result of the disabled MergeMat node and double-click on the Camera node to open the Properties Bin.
Result: Nuke crashes

Note: This will also occur if the node tree is copied into a text file and pasted back into Nuke

Expected behavior
Nuke should not crash when accessing the Camera's Properties Bin on a pasted node tree

Actual behavior
Nuke crashes when accessing the Camera's Properties Bin on a pasted node tree

Workaround
This issue only appears to occur if the MergeMat node is disabled when copied in from the clipboard. Before copying the node, enable the MergeMat node then disable if required after pasting.

Reproduced by Support in
Nuke 12.1v4 - Windows 10
Nuke 12.1v1 - Windows 10
Nuke 12.0v1 - Windows 10
Nuke 11.3v2 - Windows 7 - CentOS 7 - MacOS 10.13.6
Nuke 11.3v1 - Windows 7
Nuke 11.2v5 - Windows 7
Nuke 11.2v1 - Windows 7
Nuke 11.1v1 - Windows 7
Nuke 11.0v1 - Windows 7
Nuke 10.5v1 - Windows 7
Nuke 10.0v1 - Windows 7
Nuke 9.0v1 - Windows 7
Nuke 8.0v1 - Windows 7 - CentOS 7 - MacOS 10.13.6

Earliest version tested
Nuke 8.0v1
- This issue appears to be in all versions of the product
 

    We're sorry to hear that

    Please tell us why