Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model fails to load: bouncing_block.osim #68

Closed
tkuchida opened this issue Mar 2, 2017 · 12 comments
Closed

Model fails to load: bouncing_block.osim #68

tkuchida opened this issue Mar 2, 2017 · 12 comments
Milestone

Comments

@tkuchida
Copy link
Member

tkuchida commented Mar 2, 2017

Platform: Win 7 Pro 64-bit
Version: opensimWin64Alpha01.zip
OPENSIM_HOME environment variable: Points to 3.3 directory

Error message
err1

"Messages" window

Updating Model file from 20303 to latest format...
Visualizer couldn't read c:\Users\tkuchida\GitHub - GUI 4.0 alpha01\opensim\Geometry\big_block_centered.vtp because:
SimTK Exception thrown at PolygonalMesh.cpp:411:
  Error detected by Simbody method PolygonalMesh::loadVtpFile(): Attempt to load a VTK PolyData (.vtp) file from file name 'c:\Users\tkuchida\GitHub - GUI 4.0 alpha01\opensim\Geometry\big_block_centered.vtp' failed with message:
  SimTK Exception thrown at PolygonalMesh.cpp:340:
  Error detected by Simbody method PolygonalMesh::loadVtpFile(): Only format="ascii" is supported for .vtp file DataArray elements, got format="appended" for Points DataArray.
  (Required condition 'pointData.getRequiredAttributeValue("format") == "ascii"' was not met.)

  (Required condition '!"failed"' was not met.)

Visualizer couldn't read c:\Users\tkuchida\GitHub - GUI 4.0 alpha01\opensim\Geometry\linkage1.vtp because:
SimTK Exception thrown at PolygonalMesh.cpp:411:
  Error detected by Simbody method PolygonalMesh::loadVtpFile(): Attempt to load a VTK PolyData (.vtp) file from file name 'c:\Users\tkuchida\GitHub - GUI 4.0 alpha01\opensim\Geometry\linkage1.vtp' failed with message:
  SimTK Exception thrown at PolygonalMesh.cpp:340:
  Error detected by Simbody method PolygonalMesh::loadVtpFile(): Only format="ascii" is supported for .vtp file DataArray elements, got format="appended" for Points DataArray.
  (Required condition 'pointData.getRequiredAttributeValue("format") == "ascii"' was not met.)

  (Required condition '!"failed"' was not met.)

Visualizer couldn't read c:\Users\tkuchida\GitHub - GUI 4.0 alpha01\opensim\Geometry\linkage1.vtp because:
SimTK Exception thrown at PolygonalMesh.cpp:411:
  Error detected by Simbody method PolygonalMesh::loadVtpFile(): Attempt to load a VTK PolyData (.vtp) file from file name 'c:\Users\tkuchida\GitHub - GUI 4.0 alpha01\opensim\Geometry\linkage1.vtp' failed with message:
  SimTK Exception thrown at PolygonalMesh.cpp:340:
  Error detected by Simbody method PolygonalMesh::loadVtpFile(): Only format="ascii" is supported for .vtp file DataArray elements, got format="appended" for Points DataArray.
  (Required condition 'pointData.getRequiredAttributeValue("format") == "ascii"' was not met.)

  (Required condition '!"failed"' was not met.)

Loaded model toy_with_forces from file C:\Users\tkuchida\GitHub - GUI 4.0 alpha01\opensim\models\BouncingBlock\bouncing_block.osim
@aymanhab
Copy link
Member

aymanhab commented Mar 6, 2017

Check if it opens on master, if yes then likely this has been fixed in core, will test after upgrading if not then open an issue for opensim-core. Thanks @tkuchida

@tkuchida
Copy link
Member Author

tkuchida commented Mar 6, 2017

The following works on master:

auto Model = model("bouncing_block.osim");
model.finalizeFromProperties(); //throws exception if this line is omitted
model.printSubcomponentInfo();

@aymanhab
Copy link
Member

aymanhab commented Mar 6, 2017

The GUI workflow invokes initSystem (which implicitly calls finalizeFromProperties), the change to require the new call finalizeFromProperties was not in the alpha code base, so I'd expect the issue to go away with upgrading API. Would be great though to try opening other models from the GUI-alpha distribution using master so that any necessary fixes are incorporated into the API core beta. Thanks much @tkuchida for investigating 🥇

@tkuchida
Copy link
Member Author

tkuchida commented Mar 6, 2017

All models in opensimWin64Alpha01\opensim\models\*.osim /s load successfully in the API on master.

Test code

auto model = Model(filename);
model.finalizeFromProperties();
model.printSubcomponentInfo();

Model files tested
Arm26/arm26.osim
BouncingBlock/bouncing_block.osim
BouncingBlock/bouncing_block_weak_spring.osim
DynamicWalker/WalkerModel.osim
DynamicWalker/WalkerModelAddCustomFeet.osim
DynamicWalker/WalkerModelTerrain.osim
DynamicWalker/WalkerModelTerrainAddCustomFeet.osim
Gait10dof18musc/gait10dof18musc.osim
Gait10dof18musc/subject01.osim
Gait10dof18musc/subject01_metabolics.osim
Gait10dof18musc/subject01_metabolics_path_actuator.osim
Gait10dof18musc/subject01_metabolics_path_spring.osim
Gait10dof18musc/subject01_metabolics_spring.osim
Gait2354_Simbody/gait2354_simbody.osim
Gait2354_Simbody/gait2354_with_pat_lig.osim
Gait2354_Simbody/subject01_simbody.osim
Gait2354_Simbody_Patellae/gait2354_simbody_patellae.osim
Gait2392_Simbody/gait2392.osim
Gait2392_Simbody/gait2392_simbody.osim
Gait2392_Simbody/subject01.osim
Gait2392_Simbody/subject01_adjusted.osim
Gait2392_Simbody/subject01_simbody_adjusted.osim
Jumper/DynamicJumperModel.osim
Leg6Dof9Musc/leg6dof9musc.osim
Pendulum/double_pendulum.osim
SoccerKick/SoccerKickingModel.osim
ToyLanding/ToyLandingModel.osim
ToyLanding/ToyLandingModel_activeAFO.osim
ToyLanding/ToyLandingModel_AFO.osim
Tug_of_War/Tug_of_War.osim
Tug_of_War/Tug_of_War_Millard.osim

@aymanhab
Copy link
Member

aymanhab commented Mar 6, 2017

Awesome, excellent job @tkuchida 👍

@jenhicks jenhicks added this to the OpenSim 4.0 milestone Mar 7, 2017
@jenhicks
Copy link
Member

jenhicks commented Mar 7, 2017

Moved to "needs verifying" list for testing in the next GUI build

@aymanhab
Copy link
Member

aymanhab commented Apr 3, 2017

Trying to load the model now gives the error dialog
capture68
This obviously is the latest API Beta since Sockets mentioned in message didn't exist in previous versions
model in opensim-models/Models/BouncingBlock/bouncing_block.osim

@jenhicks
Copy link
Member

jenhicks commented Apr 4, 2017

@aseth1

@tkuchida
Copy link
Member Author

tkuchida commented Jun 6, 2017

Still unable to open bouncing_block.osim with opensim_devWin64_060217.zip (same dialog box as @aymanhab noted on Apr 3 post, above).

@tkuchida
Copy link
Member Author

Tested again using opensim_win64_070517_2.zip on Windows 7. Error message is identical to what Ayman posted above (Apr 3). Contents of Messages window:

ModelVisualizer ignoring 'Unassigned'; only .vtp .stl and .obj files currently supported.
ModelVisualizer ignoring 'Unassigned'; only .vtp .stl and .obj files currently supported.
ModelVisualizer ignoring 'Unassigned'; only .vtp .stl and .obj files currently supported.
ModelVisualizer ignoring 'Unassigned'; only .vtp .stl and .obj files currently supported.
ModelVisualizer ignoring 'Unassigned'; only .vtp .stl and .obj files currently supported.
ModelVisualizer ignoring 'Unassigned'; only .vtp .stl and .obj files currently supported.
ModelVisualizer ignoring 'Unassigned'; only .vtp .stl and .obj files currently supported.
Updating Model file from 20303 to latest format...
Loaded model toy_with_forces from file C:\Users\tkuchida\GitHub - GUI 4.0 alpha04\opensim\Models\BouncingBlock\bouncing_block.osim

@aymanhab
Copy link
Member

aymanhab commented Aug 1, 2017

This obviously isn't a GUI issue until corresponding API issue is resolved

@jenhicks
Copy link
Member

jenhicks commented Aug 3, 2017

Issue moved to opensim-org/opensim-core #1856 via ZenHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants