Home › Forum › SOFA › Using SOFA › [SOLVED] Constraint Tutorial scene crash
Tagged: 64_bits, constraints, SOFA_1512, Windows_10
- This topic has 2 replies, 2 voices, and was last updated 8 years, 3 months ago by Guillaume.
-
AuthorPosts
-
15 June 2016 at 12:37 #7098SenBlocked
Hi
I am trying to run the C:\Haptics\sofa\v15.12\src\examples\Tutorials\Collision\AdvancedResponseConstraintBased.scn scene to play with constraints
runSofa crashes with this when I try to animate.
Can anyone confirm it works on their setup?The error I get in the runSofa console is
FROM SOFA [ERR] >> [WARNING]
FROM SOFA [ERR] >> [MechanicalObject “Collision Cube”] Vector dforce(V_DERIV)does not exist
[WARNING] [MechanicalObject “Collision Cube”] Vector dforce(V_DERIV)does not existFROM SOFA [ERR] >> ERROR in vector<RigidCoord<3,double>>
FROM SOFA [ERR] >> 9affd750 size 0 : invalid index 0
Assertion failed: i < size, file C:\Haptics\sofa\v15.12\src\framework\sofa\helper\vector.cpp, line 47And the stack trace is
> SofaHelper_d.dll!sofa::helper::vector_access_failure(const void * vec, unsigned int size, unsigned int i, const type_info & type) Line 47 C++
SofaRigid_d.dll!sofa::helper::vector<sofa::defaulttype::RigidCoord<3,double>,sofa::helper::CPUMemoryManager<sofa::defaulttype::RigidCoord<3,double> > >::operator[](unsigned __int64 n) Line 132 C++
SofaRigid_d.dll!sofa::helper::ReadAccessorVector<sofa::helper::vector<sofa::defaulttype::RigidCoord<3,double>,sofa::helper::CPUMemoryManager<sofa::defaulttype::RigidCoord<3,double> > > >::operator[](unsigned __int64 i) Line 192 C++
SofaRigid_d.dll!sofa::component::mapping::RigidMapping<sofa::defaulttype::StdRigidTypes<3,double>,sofa::defaulttype::StdVectorTypes<sofa::defaulttype::Vec<3,double>,sofa::defaulttype::Vec<3,double>,double> >::apply(const sofa::core::MechanicalParams * __formal, sofa::core::objectmodel::Data<sofa::helper::vector<sofa::defaulttype::Vec<3,double>,sofa::helper::CPUMemoryManager<sofa::defaulttype::Vec<3,double> > > > & dOut, const sofa::core::objectmodel::Data<sofa::helper::vector<sofa::defaulttype::RigidCoord<3,double>,sofa::helper::CPUMemoryManager<sofa::defaulttype::RigidCoord<3,double> > > > & dIn) Line 347 C++
SofaCore_d.dll!sofa::core::Mapping<sofa::defaulttype::StdRigidTypes<3,double>,sofa::defaulttype::StdVectorTypes<sofa::defaulttype::Vec<3,double>,sofa::defaulttype::Vec<3,double>,double> >::apply(const sofa::core::MechanicalParams * mparams, sofa::core::TMultiVecId<1,1> outPos, sofa::core::TMultiVecId<1,0> inPos) Line 186 C++
SofaSimulationCommon_d.dll!sofa::simulation::MechanicalPropagatePositionAndVelocityVisitor::fwdMechanicalMapping(sofa::simulation::Node * __formal, sofa::core::BaseMapping * map) Line 1127 C++
SofaSimulationCommon_d.dll!sofa::simulation::BaseMechanicalVisitor::fwdMechanicalMapping(sofa::simulation::Visitor::VisitorContext * ctx, sofa::core::BaseMapping * map) Line 182 C++
SofaSimulationCommon_d.dll!sofa::simulation::BaseMechanicalVisitor::processNodeTopDown(sofa::simulation::Node * node, sofa::simulation::Visitor::VisitorContext * ctx) Line 77 C++I dont see a way to set dforce in scene files .
Since its the tutorial scene, presumably I have some setting incorrect. Any pointers on how to debug.best
Sourav15 June 2016 at 13:24 #7099SenBlockedCorrection.
Works fine if I just run
runSofa C:\Haptics\sofa\v15.12\src\examples\Tutorials\Collision\AdvancedResponseConstraintBased.scnSo the problem happens when i launch it from Modeller –> run in Sofa.
I wonder if importing the scene into Modeller corrupts it. Anyone face a similar issue?
best
Sourav16 June 2016 at 14:31 #7100GuillaumeKeymasterHi Sen,
The Modeler is known to cause this kind of issues since it has not be maintained for a long time.
Thus, we advise you to test your scenes directly using runSofa.Cheers,
Guillaume. -
AuthorPosts
- You must be logged in to reply to this topic.