ID 329113 - Nuke 11 Crash when clearing or closing Large projects in Nuke

Follow

Problem summary
When working on really large files (Hundreds of nodes), Nuke may crash when using the 'Clear' or 'Close Comp' functions.
 
This is a regressive issue, which has appeared in Nuke 11.
 
Update:
Upon further investigation, this issue appears be caused by linked Knobs. When Knobs are linked, a callback is created on the Knob which provides values, which holds a pointer to the Knob that receives values.

When the receiver is deleted, the callback is removed so that the provider isn't holding a dangling pointer. The provider can sometimes be replaced on the receiver, and in that case the old provider didn't have its callback removed.

Customer reported version
nuke.11.1v1

Customer reported platform
windows10

Steps to reproduce

1) Open the attached file in Nuke11 (or your affected Nuke script)
 
Note: The file may take several minutes to load, try not to click on the process or it may go unresponsive

3) Once Nuke has loaded,  either clear Nuke via 'File -> Clear' or close the comp with  'File -> Close Comp'

Result: Nuke will freeze and be unresponsive for several minutes, then crash to desktop

Workaround
- For current scripts with this problem, attempt to 'Precomp' sections of the project, this will decrease the file size and memory usage.

- For future scripts, consider precomping sections of your project using the 'LiveGroups' tool.  

Reproduced by support

This bug has been reproduced in:
Nuke11.1v1 - Windows 7 - Mac10.13 - CentOS6.9
Nuke11.0v3 - Windows 7 - Mac10.13 - CentOS6.9
Nuke11.0v1 - Windows 7 - Mac10.13 - CentOS6.9

Note: The opening response time on Mac10.13 is faster, but will crash when closing the project.

Unable to reproduce bug in:
Nuke10.5v7 - Windows 7 - Mac10.13 - CentOS6.9

Earliest version tested
- Nuke10.5v7 - This issue no longer appears in this version and has regressed

Expected behaviour
 No crash when clearing or exiting Nuke

Actual behaviour
Crash to desktop when clearing or exiting Nuke
 

    We're sorry to hear that

    Please tell us why