ID 602094 - Certain expressions can produce "underflow" errors when used in DeepExpression nodes

Follow

Problem summary:
Certain expressions can produce "underflow" errors when used in DeepExpression nodes
 
This issue is known to affect the max and min expressions, but could impact other functions as well.
 
Customer reported version:
Nuke 16.0v2
 
Customer reported platform:
Rocky 8
 
Steps to reproduce:
1) Launch Nuke and create a ColorWheel node in the Node Graph
2) Then, attach a DeepFromImage and a DeepExpression node
3) In the DeepExpression's Properties, enter 1+max(0,1) in the rgba.red field:

4) View the DeepExpression node, and observe the "underflow" error that appears in the Viewer:

 
Expected behavior:
The 1+max(0,1) expression should be valid in the DeepExpression node, just as it is in the Expression node.
 
Actual behavior:
When certain functions are used in the DeepExpression node, an "underflow" error will occur. In most cases, it appears that swapping the order of the elements appears to allow the expression to evaluate as expected. For instance, while 1+max(0,1) produces an error, the expression will evaluate if it is changed to max(0,1)+1
 
Other example expressions that produce this error include:
1-max(r,g,b)
1-min(r,g,b)
1*min(0,1)
-1/max(1,10)
0+max(0,0)
 
Workaround:
Besides rearranging the elements of the expression or utilizing the DeepExpression's temporary variables, there are no known workarounds at this time.
 
Reproduced by Support in:
Nuke 16.0v3 - Windows 11, macOS 14 Sonoma
Nuke 15.0v1 - Windows 11
Nuke 14.0v1 - Windows 11
Nuke 13.0v1 - Windows 11
Nuke 12.0v1 - Windows 11
 
Earliest version tested:
Nuke 12.0v1 - This issue appears to be in all tested versions of the product

    We're sorry to hear that

    Please tell us why