mitkof6 / OpenSimRT

Real-time musculoskeletal kinematics and dynamics analysis using marker- and IMU-based solutions
GNU General Public License v3.0
65 stars 20 forks source link

Simbody crashing during visualization #22

Open frederico-klein opened 2 years ago

frederico-klein commented 2 years ago

When trying to run ./TestLowerLimbIMUIKFromFile from a Docker instance under Windows 10 using Xming, sometimes the program just finishes silently.

It took quite some time to track this down and I believe it is an old bug from Simbody (see https://github.com/simbody/simbody/issues/563), not this code, which is why I described it there (https://github.com/simbody/simbody/issues/563#issuecomment-1046678777). I can replicate if I add the line signal(SIGPIPE, SIG_IGN); to the file or run ./TestLowerLimbIMUIKFromFile using debug.

But I am not sure where the bug is, or even if it is exactly the same one. Note that the crashing does not happen all the time and that ./TestUpperLimbIMUIKFromFile always works.

Please tell me if you need any more information about replicating this.

mitkof6 commented 2 years ago

Thanks for reporting this. I have seen this happening randomly not only in this project but with others. I think it is not related to our code but as you said a downstream issue in the Simbody visualizer. It would be nice to figure out what causes the issue in the first place. Let me know if you find something interesting.