Return empty array from Nyquist prompt: infinite loop

Go to Nyquist prompt. Type


Audacity.exe spins without consuming more memory. I have to kill it.

Does not happen if I type

(vector 1)

Version 2.0.3 on Windows 7.

It would probably be better if Audacity did not get caught in a loop, but the real “bug” here is in “your” code. As a Nyquist programmer you should avoid writing code that crashes or freezes.

The problem is that Audacity does not sanitize data returned from Nyquist plug-ins - it is assumed that the Nyquist programmer will not write plug-ins that return nonsensical data (such as empty arrays or negative sample rates).