ID 304982 - Blinkscript examples for accessing multiple parameters cause Nuke to crash

Follow

Problem summary
Blinkscript examples for accessing multiple parameters cause Nuke to crash

Customer reported version
nuke.10.5v1

Customer reported platform
10.12

Steps to reproduce

1) Launch Nuke

2) Create a 'blinkscript' node (In the Node Graph, hit Tab and type blinkscript) 

3) Click the arrow drop down next to where is says 'kernal code'

4) Type the following into the kernel code:

kernel SaturationKernel : ImageComputationKernel<eComponentWise>
{
Image<eRead, eAccessRandom, eEdgeClamped> src; // the input image
Image<eWrite> dst; // the output image
param:
float saturation; // This parameter is made available to the user.
local:
float3 coefficients; // This local variable is not exposed to the user.
void define() {
defineParam(saturation, "Saturation", 1.2f);
}
void init() {
}
void process(nt x, int y, int c) {
dst() = 1.0f;
}
};

5) Click 'Recompile' button above the code window
Result: Nuke will crash



Workaround
Unknown.

Reproduced by support
Nuke 11.0v1 - MAC 10.12.3 - Win 7 - Centos7
Nuke 10.5v5 - MAC 10.12.3 - Win 7 - Centos7
Nuke 10.5v1 - MAC 10.12.3 - Win 7 - Centos7
Nuke 10.0v6 - MAC 10.12.3 - Win 7 - Centos7
Nuke 10.0v1 - MAC 10.12.3 - Win 7 - Centos7
Nuke 9.0v9 - MAC 10.12.3 - Win 7 - Centos7
Nuke 9.0v1 - MAC 10.12.3 - Win 7 - Centos7
Nuke 8.0v7 - MAC 10.12.3 - Win 7 - Centos7
Nuke 8.0v1 - MAC 10.12.3 - Win 7 - Centos7
Blinkscript N/A
Nuke 7.0v10 - n/a

Earliest version tested
Nuke 8.0v1

Expected behaviour
Script runs

Actual behaviour
Nuke crashes
 

    We're sorry to hear that

    Please tell us why