opensim-core
opensim-core copied to clipboard
platform-dependent issue when deserializing an array with numbers outside `double` range
The file attached is the normal gait2392 file but with one of the splines replaced with another spline to reproduce the error.
- Loading this file (using the GUI) in Windows is OK.
- Loading this file (using the GUI) in macOS throws an exception
Other notes:
- The lower bound for a
double
type is roughly1e-308
. Replacing the two numbers represented by scientific notation (i.e.,4.68444e-310
and1.39067e-309
) such that the exponent is within the acceptable range (i.e.,e-307
) allows the model to be loaded in macOS - No differences in behavior between 4.3 and 4.4, so likely not a regression