opensim-core icon indicating copy to clipboard operation
opensim-core copied to clipboard

platform-dependent issue when deserializing an array with numbers outside `double` range

Open carmichaelong opened this issue 1 year ago • 0 comments

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 image

Other notes:

  • The lower bound for a double type is roughly 1e-308. Replacing the two numbers represented by scientific notation (i.e., 4.68444e-310 and 1.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

gait2392_simbody_testgcvspline.zip

carmichaelong avatar Jul 17 '23 23:07 carmichaelong