VisualizerUtilities::showMotion() occasionally fails when replaying a motion generated with models containing Scholz2015GeometryPath objects. For example, this test example in a personal benchmarking repository (where Gait3D.osim is a model generated with this utility) produces the following error when reaching VisualizerUtilities::showMotion():
libc++abi: terminating due to uncaught exception of type SimTK::Exception::ErrorCheck: SimTK Exception thrown at GeodesicIntegrator.h:163:
Error detected by Simbody method GeodesicIntegrator::initialize(): Couldn't project constraints to tol=1e-09; largest error was 3.84291e-08.
(Required condition '!"projection failed"' was not met.)
zsh: abort ./sandbox
The error likely occurs because VisualizerUtilities::showMotion() internally resamples the states to maintain a specified framerate, which effectively changes the motion's step size and therefore the behavior of CableSpan internally.