OpenSim 4.2: Matlab crash when reading C3D
Posted: Mon Apr 12, 2021 8:13 am
I was happy to see that OpenSim 4.2 now includes ezc3d, but Matlab crashes when I try to read a C3D file.
It crashes on on line 68 in osimC3D.m: tables = c3dAdapter.read(path2c3d);
The Matlab and Java crash reports are attached. This was with Matlab R2020a on Windows. I also did a clean install of Matlab R2021a and the same thing happens.
Before installing OpenSim 4.2, I was already working with the ezc3d toolbox and it was working fine on its own. To prevent conflicts, I removed it completely (including all previously installed copies of ezc3d.dll) to make sure that it only uses the ezc3d from OpenSim 4.2. And indeed it seems to do that:
>> !where ezc3d.dll
C:\OpenSim 4.2\bin\ezc3d.dll
>>
OpenSim 4.2\bin is the first folder in my Windows path.
Any idea how to get this working?
As a workaround, I can go back to using the ezc3d toolbox outside of the OpenSim API, but I prefer to do it through OpenSim.
Ton van den Bogert
It crashes on on line 68 in osimC3D.m: tables = c3dAdapter.read(path2c3d);
The Matlab and Java crash reports are attached. This was with Matlab R2020a on Windows. I also did a clean install of Matlab R2021a and the same thing happens.
Before installing OpenSim 4.2, I was already working with the ezc3d toolbox and it was working fine on its own. To prevent conflicts, I removed it completely (including all previously installed copies of ezc3d.dll) to make sure that it only uses the ezc3d from OpenSim 4.2. And indeed it seems to do that:
>> !where ezc3d.dll
C:\OpenSim 4.2\bin\ezc3d.dll
>>
OpenSim 4.2\bin is the first folder in my Windows path.
Any idea how to get this working?
As a workaround, I can go back to using the ezc3d toolbox outside of the OpenSim API, but I prefer to do it through OpenSim.
Ton van den Bogert