Could it be that there is a limit of how many function calls can be executed? Or a limit for lines of code that can be executed on each onUpdate? If so can I somewhere check this?
I have a case where following fails:
var data = getData();
function getData() {
// some code lines...
// ... all documented...
// ....
return [0.0, 1.0];
}
But if I change it to following:
var data = [0.0, 1.0]; // getData();
function getData() {
return [0.0, 1.0];
}
Everything works. BUT I have to delete the lines inside getData, if I only document them out it does not work!
I get a stack overflow exception as soon as I call getData the second time like following (without going into the function):
Error: Stack Overflow Error Details: Failed invoking <symbol> Stack: ...