error message

Oct 15, 2009 at 7:41am

error message

Whenever I save my patch a few duplicates of this line appears in the max window:
detected out-of-range float value (inf or nan) when writing JSON file, replacing with 0
does anyone know what it means?

Oct 15, 2009 at 12:38pm

The message means what it says.

Somewhere in your patch there is an object trying to save the float value inf (infinity) or NaN (“not a number,” typically infinity/infinity, or infinity/0, or 0/0).

The JSON format used to store Max/MSP patches does not allow inf and nan. So the value was replaced by a zero.

Oct 15, 2009 at 10:33pm

Thanks for the reply Peter.

These error messages are not explicitly associated with an object; there is no object corresponding with the message in the max window, so it is hard to identify the origin(s) of the error.

I guess I could save the patch as text and do a search for zeros in a text editor, but it’s a very large patch (there are plenty of objects with zero in them, like [sel 0] )– any suggestions as to how to trace the source of the errors?


You must be logged in to reply to this topic.