You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reproduced using a macro file containing the following:
var x0=1
var x1=max(max(max(var.x0,2),3),4)
var x2=max(max(max(max(var.x0,2),3),4),5)
var x3=max(max(max(max(max(var.x0,2),3),4),5),6)
var x4=max(max(max(max(max(max(var.x0,2),3),4),5),6),7)
var x5=max(max(max(max(max(max(max(var.x0,2),3),4),5),6),7),8)
var x6=max(max(max(max(max(max(max(max(var.x0,2),3),4),5),6),7),8),9)
echo var.x6
In standalone mode the "Expression nesting too deep" error occurs on the "var x6=" line. In SBC mode it occurs on the "var x2=" line.
The difference is probably because in SBC mode the expression is executed by the SBC task instead of the Main task. Increasing the SBC task stack size should resolve it. Each additional nested function call needs about 288 bytes of stack space in RRF 3.5.1.
Reported at https://forum.duet3d.com/topic/35769/error-meta-command-too-many-indices/.
The text was updated successfully, but these errors were encountered: