Home › Forum › SOFA › Using SOFA › Segfault with MeshMatrixMass
Tagged: 64_bits, Plugin_SoftRobots, SOFA_1906, Windows_10
- This topic has 9 replies, 2 voices, and was last updated 4 years, 11 months ago by Hugo.
-
AuthorPosts
-
20 December 2019 at 19:37 #14779JoshuaBlocked
Hello,
I’m trying to use a MeshMatrixMass to simulate a soft material, but I keep getting segfaults. My code is below (it uses the template library from the Soft Robots Plugin):import Sofa from stlib.scene import Scene def createScene(rootNode): scene = Scene(rootNode, plugins=["SoftRobots", "SofaSparseSolver", "SofaMiscCollision", "SofaPython"]) rootNode.createObject("BackgroundSetting", color=[1., 1., 1.]) rootNode.dt = 0.01 rootNode.gravity = [0., 0., -981.] rootNode.createObject("FreeMotionAnimationLoop") rootNode.createObject("GenericConstraintSolver", maxIterations=1e3, tolerance=1e-5) node = rootNode.createChild("eobject") loader = node.createObject('MeshVTKLoader', name='loader', filename="finger.vtk") integration = node.createObject('EulerImplicitSolver', name='integration') solver = node.createObject('SparseLDLSolver', name="solver") container = node.createObject('TetrahedronSetTopologyContainer', src='@loader', name='container') dofs = node.createObject('MechanicalObject', template='Vec3d', name='dofs', src='@loader') geomAlgo = node.createObject('TetrahedronSetGeometryAlgorithms', template="Vec3d", name='GeomAlgo', drawTetrahedra=True) forcefield = node.createObject('TetrahedronFEMForceField', template='Vec3d', method='large', name='forcefield', poissonRatio=0.25, youngModulus=20000) constraint = node.createObject('LinearSolverConstraintCorrection', solverName=solver.name) mass = node.createObject('MeshMatrixMass', massDensity=1, name='mass', lumping=True) return rootNode
The output I see is:
[INFO] [SceneCheckerVisitor] Validating node "root" with checks: [SceneCheckDuplicatedName, SceneCheckMissingRequiredPlugin, SceneCheckUsingAlias] [INFO] [SceneCheckerVisitor] Finished validating node "root". ########## SIG 11 - SIGSEGV: segfault ########## 22: sofa::helper::BackTrace::dump - 0x7fff63b422e021: sofa::helper::BackTrace::sig - 0x7fff63b4244020: seh_filter_exe - 0x7fffa671c3e019: seh_filter_exe - 0x7fffa671c3e018: _C_specific_handler - 0x7fff86d4b86017: _chkstk - 0x7fffa996f6c016: RtlWalkFrameChain - 0x7fffa98dc46015: KiUserExceptionDispatcher - 0x7fffa996e6e014: sofa::component::mass::MeshMatrixMass<sofa::defaulttype::StdVectorTypes<sofa::defaulttype::Vec<3,double>,sofa::defaulttype::Vec<3,double>,double>,double>::copyVertexMass - 0x7fff613043c013: sofa::component::mass::MeshMatrixMass<sofa::defaulttype::StdVectorTypes<sofa::defaulttype::Vec<3,double>,sofa::defaulttype::Vec<3,double>,double>,double>::computeMass - 0x7fff61313f6012: sofa::component::mass::MeshMatrixMass<sofa::defaulttype::StdVectorTypes<sofa::defaulttype::Vec<3,double>,sofa::defaulttype::Vec<3,double>,double>,double>::initFromMassDensity - 0x7fff6131bd2011: sofa::component::mass::MeshMatrixMass<sofa::defaulttype::StdVectorTypes<sofa::defaulttype::Vec<3,double>,sofa::defaulttype::Vec<3,double>,double>,double>::massInitialization - 0x7fff6132076010: sofa::component::mass::MeshMatrixMass<sofa::defaulttype::StdVectorTypes<sofa::defaulttype::Vec<3,double>,sofa::defaulttype::Vec<3,double>,double>,double>::init - 0x7fff6131b5809: sofa::simulation::InitVisitor::processNodeTopDown - 0x7fff6615a5608: sofa::simulation::graph::DAGNode::executeVisitorTopDown - 0x7fff92659cf07: sofa::simulation::graph::DAGNode::executeVisitorTopDown - 0x7fff92659cf06: sofa::simulation::graph::DAGNode::doExecuteVisitor - 0x7fff926588605: sofa::simulation::Node::executeVisitor - 0x7fff661804d04: sofa::simulation::Simulation::init - 0x7fff6619eb803: sofa::simulation::Simulation::init - 0x7fff6619eb802: sofa::simulation::Simulation::init - 0x7fff6619eb801: BaseThreadInitThunk - 0x7fffa75540200: RtlUserThreadStart - 0x7fffa9943670[WARNING] [SofaSimulationTree] the library has not been cleaned up (sofa::simulation::tree::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaSimulationGraph] the library has not been cleaned up (sofa::simulation::graph::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaSimulationCommon] the library has not been cleaned up (sofa::simulation::common::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaSimulationCore] the library has not been cleaned up (sofa::simulation::core::cleanup() has never been called, see sofa/helper/init.h) [WARNING] [SofaCore] the library has not been cleaned up (sofa::core::cleanup() has never been called, see sofa/helper/init.h) [7668:124:1220/131604.034:ERROR:broker_win.cc(59)] Error reading broker pipe: The pipe has been ended. (0x6D)
Without the MeshMatrixMass, or using a diagonal or uniform mass, the code compiles fine.
Any help would be appreciated.
Thanks,
Josh20 December 2019 at 22:29 #14780HugoKeymasterhi @joshuaf
Works fine for me (using another mesh because I don’t have the finger.vtk
Are you sure the file is containing tetrahedra ?
Does the mesh come from the SoftRobot plugin?Hugo
20 December 2019 at 22:35 #14782JoshuaBlocked# vtk DataFile Version 2.0
finger, Created by Gmsh
ASCII
DATASET UNSTRUCTURED_GRID
POINTS 158 double
178.9918414032629 -14.9999999999996 21.00000000466061
178.9999999724498 -15.00000000000638 3.999999999999996
161.5470053837927 -15.00000000000003 21.00000000000001
161.5470053837927 -15.00000000000008 4.000000000000004
189.0000000000004 -11.00000000000003 25
200.0000000000006 8.194561800946104e-014 25
189.0000000000004 -11.00000000000002 -8.891829601811859e-017
200.0000000000006 8.194561800946104e-014 0
178.9918414161008 -10.9999999999996 20.99999999998467
159.2376043070342 -11.00000000000003 21.00000000000001
178.9999999999908 -11.00000000000002 3.999999999999996
159.2376043070342 -11.00000000000003 4
189.0000000000005 11.00000000000008 -2.522363313390977e-016
189.0000000000005 11.00000000000008 25.00000000000001
178.9918414032498 15.00000000000008 21.00000000000001
178.9999999724498 15.00000000000007 3.999999990208614
161.5470053837927 15.00000000000008 4
161.5470053837927 15.00000000000008 21.00000000000002
178.9999999724498 11.00000000000008 3.999999990208613
159.2376043070342 11.00000000000008 4
178.9918414032547 11.00000000000008 21.00000000000001
159.2376043070342 11.00000000000008 21.00000000000001
150.0000000000003 -15.00000000000002 3.999999999999996
126.5470053837927 -15.00000000000002 3.999999999999996
150.0000000000003 -15.00000000000003 21.00000000000001
126.5470053837927 -15.00000000000003 21.00000000000001
159.2376043070342 11.00000000000008 25.00000000000001
155.7735026918964 5.00000000000006 25
152.3094010767587 11.00000000000008 25.00000000000001
124.2376043070342 11.00000000000008 25.00000000000001
120.7735026918965 5.000000000000067 25
117.3094010767587 11.00000000000008 25.00000000000001
89.2376043070342 11.00000000000008 25.00000000000001
85.77350269189647 5.000000000000067 25
82.30940107675873 11.00000000000008 25.00000000000001
24.0000000000003 11.00000000000008 25.00000000000001
46.00000000000065 -11.00000000000003 25
82.30940107675876 -11.00000000000003 25
85.77350269189647 -5.000000000000074 25.00000000000002
89.23760430703418 -11.00000000000003 25
117.3094010767588 -11.00000000000003 25
120.7735026918965 -5.000000000000074 25.00000000000002
124.2376043070342 -11.00000000000003 25
152.3094010767588 -11.00000000000003 25
155.7735026918965 -5.000000000000074 25.00000000000002
159.2376043070342 -11.00000000000003 25.00000000000002
115.0000000000003 -15.00000000000002 3.999999999999996
91.54700538379267 -15.00000000000002 3.999999999999996
115.0000000000003 -15.00000000000002 21.00000000000001
91.54700538379269 -15.00000000000004 21.00000000000001
80.00000000000027 -15.00000000000002 3.999999999999996
50.00000000000071 -15.00000000000002 3.999999999999996
80.00000000000028 -15.00000000000002 21.00000000000001
50.00000000000075 -15.00000000000004 21.00000000000001
82.30940107675876 -11.00000000000002 -8.891829601811859e-017
46.00000000000065 -11.00000000000002 -8.891829601811859e-017
24.00000000000031 11.00000000000007 -1.041073564794285e-015
82.30940107675875 11.00000000000007 6.305908283477394e-017
85.77350269189647 5.00000000000007 0
89.23760430703425 11.00000000000009 -2.522363313390974e-016
117.3094010767587 11.00000000000008 6.30590828347747e-017
120.7735026918965 5.000000000000074 0
124.2376043070342 11.00000000000008 -2.522363313390979e-016
152.3094010767587 11.00000000000008 6.30590828347747e-017
155.7735026918965 5.000000000000067 0
159.2376043070342 11.00000000000008 0
159.2376043070342 -11.00000000000002 -8.891829601811859e-017
155.7735026918965 -5.000000000000074 0
152.3094010767588 -11.00000000000002 -8.891829601811859e-017
124.2376043070342 -11.00000000000002 -8.891829601811859e-017
120.7735026918965 -5.000000000000074 0
117.3094010767588 -11.00000000000002 -8.891829601811859e-017
89.23760430703418 -11.00000000000002 -8.891829601811859e-017
85.77350269189647 -5.00000000000007 0
150.0000000000003 15.00000000000008 21.00000000000001
126.5470053837927 15.00000000000008 21.00000000000001
150.0000000000003 15.00000000000008 4
126.5470053837927 15.00000000000008 4
115.0000000000003 15.00000000000008 21.00000000000001
91.54700538379268 15.00000000000008 21.00000000000001
115.0000000000002 15.00000000000008 4
91.54700538379268 15.00000000000008 4
80.00000000000024 15.00000000000008 21.00000000000001
20.00000000000024 15.00000000000008 21.00000000000001
80.00000000000024 15.00000000000008 4
20.00000000000024 15.00000000000008 4
46.0000000000007 -11.00000000000004 3.999999999999996
46.00000000000065 -11.00000000000003 21.00000000000001
24.00000000000031 11.00000000000007 21.00000000000001
24.0000000000003 11.00000000000008 4
82.30940107675873 11.00000000000008 21.00000000000002
82.30940107675873 11.00000000000008 4.000000000000004
89.23760430703423 11.00000000000009 21.00000000000001
89.2376043070342 11.00000000000008 4
117.3094010767587 11.00000000000008 21.00000000000002
117.3094010767587 11.00000000000008 4.000000000000004
124.2376043070342 11.00000000000008 21.00000000000001
124.2376043070342 11.00000000000008 4
152.3094010767587 11.00000000000008 21.00000000000002
152.3094010767587 11.00000000000008 4.000000000000004
82.30940107675876 -11.00000000000003 4.000000000000004
82.30940107675876 -11.00000000000003 20.99999999999996
89.2376043070342 -11.00000000000004 4
89.23760430703418 -11.00000000000003 21.00000000000001
117.3094010767588 -11.00000000000003 4.000000000000004
117.3094010767588 -11.00000000000003 20.99999999999996
124.2376043070342 -11.00000000000003 4
124.2376043070342 -11.00000000000003 21.00000000000001
152.3094010767588 -11.00000000000003 4.000000000000004
152.3094010767588 -11.00000000000003 20.99999999999996
184.9982879610245 -15.00000000000025 12.50391313395521
184.9982879610329 14.99999999999929 12.50391313097678
53.1547005383795 11.00000000000008 25.00000000000001
53.15470053837953 11.00000000000008 -2.522363313390973e-016
50.00000000000031 15.00000000000008 21.00000000000001
50.00000000000031 15.00000000000008 4
184.9982879610147 -11.00000000000025 12.50391313956058
184.998287961035 10.9999999999993 12.50391313097494
53.1547005383795 11.00000000000008 4
53.1547005383795 11.00000000000008 21.00000000000001
170.2735026781212 -14.99999999999993 12.49581397581323
194.5000000000005 -5.499999999999967 12.5
194.5000000000006 5.50000000000008 12.5
170.2735026828875 15.00000000000008 12.49581396858404
138.2735026918965 -14.99999999999996 12.5
140.1850454237762 1.969113790856782e-014 25
101.3619599600164 -4.085620730620519e-015 25
171.9988634687284 9.203843553743405e-014 25
68.51093042472174 2.156497203031905e-014 25
115.5055534994654 7.709388682997098e-015 25
126.0414518843275 1.175419767507467e-014 25
150.5590216892155 1.991671674565787e-014 25
90.98798369457737 5.100681781706458e-015 25
161.5609373506717 5.314112990209148e-014 25
186.3886731360893 5.602031877340146e-014 25
79.88023012594337 4.459018188698617e-015 25
103.2735026918965 -14.99999999999999 12.49999999999999
65.00000000000051 -15.00000000000002 12.5
140.1850454237759 -4.594598845332395e-014 0
105.1850454237764 6.563712636189119e-015 0
68.51093042472171 2.255973186038318e-014 0
171.9988634687281 -9.019739109641264e-014 0
94.83532730035016 8.881784197001127e-016 0
129.8353273003499 7.993605777301012e-015 0
150.5590216892154 -1.92265175821221e-014 0
115.7019792123251 1.104408200912872e-014 0
161.5609373506716 -5.636097318165246e-014 0
187.4997158671824 1.12014321745016e-014 0
80.05148733385911 5.549173042033136e-015 0
88.32198569845681 1.191502205514165e-015 0
123.3643177917555 8.192121775311472e-015 0
138.2735026918965 15.00000000000007 12.50000000000001
103.2735026918965 15.00000000000007 12.50000000000001
35.00000000000026 15.00000000000007 12.50000000000001
65.00000000000027 15.00000000000007 12.50000000000001
35.00000000000048 1.953992523340276e-014 12.5
45.40000000000065 -10.40000000000002 12.5
24.60000000000031 10.40000000000006 12.5CELLS 960 3808
1 0
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 20
1 21
1 22
1 23
1 24
1 25
1 26
1 27
1 28
1 29
1 30
1 31
1 32
1 33
1 34
1 35
1 36
1 37
1 38
1 39
1 40
1 41
1 42
1 43
1 44
1 45
1 46
1 47
1 48
1 49
1 50
1 51
1 52
1 53
1 54
1 55
1 56
1 57
1 58
1 59
1 60
1 61
1 62
1 63
1 64
1 65
1 66
1 67
1 68
1 69
1 70
1 71
1 72
1 73
1 74
1 75
1 76
1 77
1 78
1 79
1 80
1 81
1 82
1 83
1 84
1 85
1 86
1 87
1 88
1 89
1 90
1 91
1 92
1 93
1 94
1 95
1 96
1 97
1 98
1 99
1 100
1 101
1 102
1 103
1 104
1 105
1 106
1 107
1 108
1 109
2 0 110
2 110 1
2 0 2
2 2 3
2 1 3
2 4 5
2 6 4
2 6 7
2 5 7
2 8 0
2 8 9
2 2 9
2 10 11
2 1 10
2 11 3
2 7 12
2 13 12
2 5 13
2 14 111
2 111 15
2 15 16
2 17 16
2 14 17
2 18 15
2 18 19
2 19 16
2 20 21
2 14 20
2 17 21
2 22 23
2 24 22
2 24 25
2 25 23
2 13 26
2 26 27
2 27 28
2 28 29
2 29 30
2 30 31
2 31 32
2 32 33
2 33 34
2 34 112
2 112 35
2 35 36
2 37 36
2 38 37
2 39 38
2 40 39
2 41 40
2 42 41
2 43 42
2 44 43
2 45 44
2 4 45
2 46 47
2 48 46
2 48 49
2 49 47
2 50 51
2 52 50
2 52 53
2 53 51
2 54 55
2 56 55
2 57 113
2 113 56
2 58 57
2 59 58
2 60 59
2 61 60
2 62 61
2 63 62
2 64 63
2 65 64
2 12 65
2 6 66
2 66 67
2 67 68
2 68 69
2 69 70
2 70 71
2 71 72
2 72 73
2 73 54
2 74 75
2 74 76
2 76 77
2 75 77
2 78 79
2 78 80
2 80 81
2 79 81
2 82 114
2 114 83
2 82 84
2 84 115
2 115 85
2 83 85
2 86 55
2 51 86
2 87 53
2 36 87
2 88 35
2 83 88
2 89 85
2 56 89
2 34 90
2 33 58
2 91 57
2 84 91
2 90 82
2 92 32
2 79 92
2 93 81
2 59 93
2 31 94
2 30 61
2 95 60
2 80 95
2 94 78
2 96 29
2 75 96
2 97 77
2 62 97
2 28 98
2 27 64
2 99 63
2 76 99
2 98 74
2 21 26
2 65 19
2 50 100
2 100 54
2 38 73
2 37 101
2 101 52
2 72 102
2 102 47
2 49 103
2 103 39
2 46 104
2 104 71
2 41 70
2 40 105
2 105 48
2 69 106
2 106 23
2 25 107
2 107 42
2 22 108
2 108 68
2 44 67
2 43 109
2 109 24
2 66 11
2 9 45
2 8 116
2 116 10
2 109 107
2 108 106
2 105 103
2 104 102
2 101 87
2 100 86
2 20 117
2 117 18
2 99 97
2 98 96
2 95 93
2 94 92
2 91 118
2 118 89
2 90 119
2 119 88
3 0 2 120
3 110 0 120
3 3 1 120
3 1 110 120
3 2 3 120
3 5 4 121
3 4 6 121
3 7 5 121
3 6 7 121
3 2 0 8
3 9 2 8
3 10 1 3
3 10 3 11
3 5 7 122
3 13 5 122
3 7 12 122
3 12 13 122
3 17 14 123
3 14 111 123
3 15 16 123
3 111 15 123
3 16 17 123
3 18 16 15
3 18 19 16
3 14 17 20
3 17 21 20
3 23 22 124
3 22 24 124
3 25 23 124
3 24 25 124
3 5 134 4
3 4 127 45
3 4 134 127
3 13 134 5
3 26 127 13
3 127 134 13
3 27 133 26
3 26 133 127
3 28 131 27
3 27 131 44
3 44 133 27
3 29 125 28
3 125 131 28
3 30 130 29
3 29 130 125
3 31 129 30
3 30 129 41
3 41 130 30
3 32 126 31
3 126 129 31
3 33 132 32
3 32 132 126
3 34 135 33
3 38 132 33
3 33 135 38
3 112 128 34
3 128 135 34
3 35 36 112
3 37 128 36
3 36 128 112
3 38 135 37
3 37 135 128
3 39 132 38
3 40 126 39
3 126 132 39
3 41 129 40
3 40 129 126
3 42 130 41
3 43 125 42
3 125 130 42
3 44 131 43
3 43 131 125
3 45 133 44
3 127 133 45
3 47 46 136
3 46 48 136
3 49 47 136
3 48 49 136
3 51 50 137
3 50 52 137
3 53 51 137
3 52 53 137
3 7 6 147
3 6 66 141
3 6 141 147
3 12 7 147
3 65 12 141
3 141 12 147
3 54 55 140
3 73 54 148
3 54 140 148
3 56 113 55
3 55 113 140
3 57 58 148
3 113 57 140
3 140 57 148
3 58 59 142
3 58 142 149
3 148 58 149
3 59 60 139
3 59 139 142
3 60 61 145
3 139 60 145
3 61 62 143
3 61 143 150
3 145 61 150
3 62 63 138
3 62 138 143
3 63 64 144
3 138 63 144
3 64 65 146
3 64 67 144
3 67 64 146
3 65 141 146
3 66 67 146
3 141 66 146
3 67 68 144
3 68 69 138
3 68 138 144
3 69 70 143
3 138 69 143
3 70 71 145
3 143 70 150
3 70 145 150
3 71 72 139
3 71 139 145
3 72 73 142
3 139 72 142
3 142 73 149
3 73 148 149
3 75 74 151
3 74 76 151
3 77 75 151
3 76 77 151
3 79 78 152
3 78 80 152
3 81 79 152
3 80 81 152
3 82 84 154
3 114 82 154
3 85 83 153
3 83 114 153
3 84 115 154
3 115 85 153
3 114 115 153
3 115 114 154
3 36 35 155
3 35 88 155
3 87 36 155
3 51 53 156
3 86 51 156
3 53 87 156
3 56 55 155
3 55 86 155
3 89 56 155
3 83 85 157
3 88 83 157
3 85 89 157
3 155 86 156
3 87 155 156
3 155 88 157
3 89 155 157
3 34 33 90
3 90 33 58
3 57 91 58
3 91 90 58
3 84 82 91
3 82 90 91
3 33 32 92
3 33 92 58
3 58 93 59
3 58 92 93
3 92 79 81
3 93 92 81
3 31 30 94
3 94 30 61
3 60 95 61
3 95 94 61
3 80 78 95
3 78 94 95
3 30 29 96
3 61 30 96
3 61 97 62
3 97 61 96
3 97 75 77
3 97 96 75
3 28 27 98
3 98 27 64
3 63 99 64
3 98 64 99
3 76 74 99
3 74 98 99
3 19 17 16
3 19 21 17
3 21 19 64
3 64 19 65
3 27 26 21
3 27 21 64
3 101 38 37
3 101 73 38
3 50 100 52
3 52 100 101
3 54 73 100
3 100 73 101
3 38 103 39
3 73 103 38
3 102 47 49
3 102 49 103
3 73 72 102
3 73 102 103
3 40 105 41
3 105 70 41
3 46 105 48
3 46 104 105
3 71 70 104
3 105 104 70
3 106 23 25
3 106 25 107
3 41 107 42
3 41 70 107
3 70 69 106
3 70 106 107
3 24 22 109
3 22 108 109
3 109 44 43
3 109 67 44
3 68 67 108
3 109 108 67
3 11 3 2
3 11 2 9
3 44 11 9
3 44 9 45
3 67 11 44
3 67 66 11
3 4 116 6
3 45 8 4
3 4 8 116
3 10 66 6
3 116 10 6
3 45 9 8
3 11 66 10
3 43 42 107
3 43 107 109
3 25 24 109
3 107 25 109
3 108 22 23
3 108 23 106
3 108 69 68
3 106 69 108
3 39 103 40
3 40 103 105
3 49 48 105
3 103 49 105
3 46 47 102
3 104 46 102
3 104 72 71
3 102 72 104
3 53 52 101
3 87 53 101
3 37 36 101
3 36 87 101
3 86 55 54
3 86 54 100
3 100 50 51
3 100 51 86
3 12 117 13
3 65 18 12
3 12 18 117
3 20 26 13
3 117 20 13
3 65 19 18
3 21 26 20
3 62 97 63
3 63 97 99
3 76 97 77
3 99 97 76
3 75 98 74
3 75 96 98
3 96 29 28
3 96 28 98
3 60 59 95
3 59 93 95
3 80 93 81
3 95 93 80
3 79 92 78
3 78 92 94
3 94 32 31
3 92 32 94
3 91 118 84
3 84 118 115
3 115 89 85
3 118 89 115
3 113 56 89
3 57 118 91
3 113 118 57
3 113 89 118
3 90 112 34
3 119 88 35
3 119 35 112
3 119 112 90
3 82 119 90
3 82 114 119
3 83 88 114
3 114 88 119
3 14 20 117
3 111 14 117
3 15 117 18
3 111 117 15
3 8 0 116
3 116 0 110
3 10 116 1
3 116 110 1
4 98 131 125 144
4 125 131 109 144
4 53 87 101 137
4 86 100 137 51
4 108 106 124 138
4 109 107 125 124
4 105 103 126 136
4 97 99 151 138
4 104 102 136 139
4 98 96 151 125
4 139 93 152 95
4 92 94 126 152
4 9 44 133 146
4 121 117 134 122
4 88 83 114 153
4 89 115 85 153
4 121 5 7 122
4 121 117 122 147
4 118 91 154 140
4 38 33 149 135
4 133 27 21 146
4 105 145 139 129
4 132 33 149 38
4 132 142 92 126
4 142 132 103 126
4 27 44 131 144
4 27 133 44 146
4 41 129 30 150
4 114 82 119 154
4 118 84 115 154
4 30 130 41 150
4 148 90 140 135
4 51 100 137 50
4 53 101 52 137
4 127 20 117 141
4 127 116 8 141
4 149 92 33 132
4 138 98 125 144
4 138 125 109 144
4 103 132 149 38
4 156 137 140 118
4 156 137 119 128
4 44 109 131 144
4 98 27 131 144
4 123 20 127 141
4 8 127 141 120
4 156 137 118 119
4 130 30 96 150
4 130 107 41 150
4 44 11 146 9
4 21 19 146 64
4 151 98 125 138
4 138 109 125 124
4 49 105 48 136
4 25 124 109 24
4 102 46 136 47
4 93 80 81 152
4 78 92 79 152
4 98 75 74 151
4 108 23 22 124
4 97 76 77 151
4 101 148 140 135
4 119 137 140 128
4 124 25 109 107
4 105 103 136 49
4 46 102 136 104
4 97 99 76 151
4 95 93 152 80
4 98 75 151 96
4 108 106 23 124
4 92 94 152 78
4 138 99 98 144
4 145 105 139 104
4 144 109 138 108
4 11 44 146 67
4 146 27 21 64
4 44 27 146 64
4 64 146 44 67
4 44 64 67 144
4 44 27 64 144
4 140 90 128 135
4 137 156 87 128
4 137 86 156 140
4 118 137 140 119
4 84 118 91 154
4 98 151 99 138
4 109 138 108 124
4 136 139 105 104
4 139 152 94 95
4 87 101 128 36
4 36 37 101 128
4 86 54 140 100
4 55 86 54 140
4 70 107 150 41
4 61 96 30 150
4 58 149 92 33
4 154 118 140 119
4 103 149 73 38
4 90 148 140 91
4 109 44 67 144
4 27 98 64 144
4 128 101 140 135
4 113 56 55 155
4 19 18 16 123
4 9 8 2 120
4 98 99 64 144
4 61 129 30 94
4 144 67 109 108
4 70 105 145 104
4 137 156 53 87
4 157 153 85 83
4 156 51 86 137
4 119 118 156 155
4 69 106 108 138
4 69 108 68 138
4 42 43 107 125
4 97 63 99 138
4 107 43 109 125
4 63 97 62 138
4 29 96 28 125
4 98 96 125 28
4 102 104 72 139
4 72 104 71 139
4 40 103 39 126
4 103 40 105 126
4 59 60 95 139
4 94 32 92 126
4 32 94 31 126
4 93 139 59 95
4 90 58 148 91
4 10 11 3 120
4 20 21 17 123
4 87 156 119 128
4 86 156 140 118
4 89 118 155 113
4 9 8 120 127
4 19 18 123 141
4 101 140 137 128
4 57 118 140 91
4 112 90 34 128
4 119 90 112 128
4 118 57 140 113
4 88 119 35 155
4 113 89 56 155
4 20 21 123 127
4 10 11 120 141
4 148 101 140 100
4 119 153 118 155
4 134 5 121 122
4 111 117 14 123
4 0 116 110 120
4 15 117 111 123
4 1 110 116 120
4 10 3 1 120
4 18 15 16 123
4 0 2 8 120
4 17 14 20 123
4 19 17 123 16
4 139 72 102 142
4 93 139 142 59
4 97 62 138 143
4 69 106 138 143
4 87 119 156 155
4 86 156 118 155
4 2 11 120 3
4 7 121 122 147
4 140 137 100 101
4 117 13 134 122
4 148 100 73 101
4 11 2 120 9
4 17 19 123 21
4 122 117 12 147
4 117 20 14 123
4 0 116 120 8
4 117 15 18 123
4 116 10 1 120
4 86 113 155 118
4 88 157 153 155
4 89 153 157 155
4 118 114 153 119
4 114 118 153 115
4 19 65 18 141
4 9 45 8 127
4 94 126 129 31
4 126 129 40 105
4 130 125 96 29
4 107 42 125 130
4 81 92 152 79
4 24 109 22 124
4 87 36 119 155
4 113 86 155 55
4 119 112 36 128
4 113 86 140 118
4 66 11 10 141
4 26 21 20 127
4 127 9 45 133
4 19 65 141 146
4 74 151 76 99
4 49 102 136 47
4 105 48 136 46
4 77 151 75 97
4 82 91 154 84
4 127 133 26 21
4 146 141 11 66
4 121 4 5 134
4 13 5 134 122
4 151 74 98 99
4 92 81 152 93
4 109 108 22 124
4 25 106 124 23
4 87 119 36 128
4 55 86 140 113
4 78 95 152 80
4 137 156 51 53
4 7 6 121 147
4 122 12 7 147
4 102 49 136 103
4 106 25 124 107
4 104 105 136 46
4 95 78 152 94
4 96 75 151 97
4 157 153 83 88
4 153 85 89 157
4 52 100 50 137
4 63 99 138 144
4 68 144 138 108
4 28 131 125 98
4 125 131 43 109
4 132 92 32 126
4 39 103 132 126
4 95 139 60 145
4 104 139 145 71
4 128 90 34 135
4 57 140 148 91
4 52 100 137 101
4 118 154 114 119
4 154 115 118 114
4 37 101 128 135
4 148 54 100 140
4 44 45 9 133
4 146 19 65 64
4 93 142 58 59
4 73 102 72 142
4 61 62 97 143
4 106 70 143 69
4 133 27 26 21
4 67 146 11 66
4 61 95 60 145
4 145 70 104 71
4 99 63 64 144
4 33 92 32 132
4 28 27 131 98
4 131 43 109 44
4 39 132 103 38
4 67 144 68 108
4 33 34 90 135
4 57 148 58 91
4 96 30 130 29
4 41 42 107 130
4 129 30 94 31
4 129 41 40 105
4 101 37 38 135
4 73 54 100 148
4 26 20 13 127
4 8 45 4 127
4 117 12 13 122
4 18 65 12 141
4 66 10 6 141
4 86 100 140 137
4 87 101 137 128
4 135 90 58 148
4 58 90 135 33
4 58 149 135 148
4 135 149 58 33
4 101 135 73 148
4 101 73 135 38
4 149 73 135 148
4 149 135 73 38
4 150 129 70 41
4 150 70 129 145
4 105 70 129 41
4 105 129 70 145
4 150 129 61 145
4 150 61 129 30
4 90 119 140 128
4 119 88 153 155
4 119 153 88 114
4 118 89 153 115
4 118 153 89 155
4 9 127 146 133
4 127 21 146 133
4 127 141 9 146
4 127 9 141 120
4 11 9 141 146
4 11 141 9 120
4 13 127 117 134
4 13 117 127 20
4 4 127 116 8
4 142 92 149 132
4 149 103 142 132
4 126 105 139 129
4 139 105 126 136
4 125 96 143 130
4 107 125 143 130
4 94 126 139 129
4 94 139 126 152
4 150 107 143 130
4 150 143 96 130
4 12 141 117 18
4 117 141 12 147
4 91 82 140 90
4 91 140 82 154
4 119 140 82 90
4 119 82 140 154
4 126 139 92 152
4 126 92 139 142
4 93 92 139 152
4 93 139 92 142
4 102 139 103 136
4 102 103 139 142
4 126 103 139 136
4 126 139 103 142
4 106 138 107 124
4 106 107 138 143
4 125 107 138 124
4 125 138 107 143
4 97 138 96 143
4 97 96 138 151
4 125 96 138 143
4 125 138 96 151
4 123 117 141 18
4 123 141 117 20
4 120 116 141 8
4 120 141 116 10
4 70 107 143 150
4 70 143 107 106
4 61 96 143 97
4 143 96 61 150
4 92 58 142 149
4 92 142 58 93
4 73 103 142 149
4 142 103 73 102
4 139 94 145 95
4 139 145 94 129
4 61 145 94 95
4 61 94 145 129
4 35 119 36 155
4 35 36 119 112
4 6 4 147 116
4 6 147 4 121
4 117 134 147 121
4 147 134 4 121
4 127 141 21 123
4 127 21 141 146
4 19 21 141 123
4 19 141 21 146
4 141 6 116 10
4 141 116 6 147
4 134 147 127 117
4 141 127 147 117
4 141 147 127 116
4 4 147 127 134
4 127 147 4 116CELL_TYPES 960
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
3
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
5
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
1020 December 2019 at 22:38 #14783JoshuaBlockedThanks for your help! The file is a VTK file generated with gmsh, containing points, lines, triangles and tetrahedra. finger.vtk
20 December 2019 at 22:57 #14784HugoKeymasterthe mesh seems to have some troubles. The TetrahedronSetTopologyContainer returns this:
[ERROR] [TetrahedronSetTopologyContainer(container)] Cannot find edge 0 [2, 120] in triangle 0 [ERROR] [TetrahedronSetTopologyContainer(container)] Cannot find edge 0 [2, 120] in triangle 0 [WARNING] [TetrahedronSetTopologyContainer(container)] TrianglesAroundEdge buffer can't be created as EdgesInTriangle buffer creation failed. [ERROR] [TetrahedronSetTopologyContainer(container)] Cannot find triangle 0 [131, 125, 144] in tetrahedron 0 [ERROR] [TetrahedronSetTopologyContainer(container)] Cannot find triangle 0 [131, 125, 144] in tetrahedron 0 [WARNING] [TetrahedronSetTopologyContainer(container)] TetrahedraAroundTriangle buffer can't be created as trianglesInTetrahedron buffer creation failed.
Could you try with other volumetric mesh of yours please?
BestHugo
22 December 2019 at 00:05 #14785JoshuaBlockedInteresting. I don’t see those error messages on my end. I wonder why the DiagonalMassMatrix works?
22 December 2019 at 00:12 #14786JoshuaBlockedI get the same segfault when I use the finger.vtk included with the Soft Robots plugin CableGripper tutorial, https://github.com/SofaDefrost/Tutorials/blob/master/Cable-Gripper/data/mesh/finger.vtk
If you have a known working mesh, could you link to it so I can try?
30 December 2019 at 12:30 #15090HugoKeymasterHi @joshuaf
Sorry for the “Christmas” silence!
For me the finger ms you are pointing to is working but with the same TetrahedronSetTopologyContainer error.Could you give me the version of SOFA you are using and where you downloaded it from please?
Best,Hugo
2 January 2020 at 19:16 #15094JoshuaBlockedHi Hugo,
I’m using sofa 19.06, for which I downloaded the windows exe binaries here https://www.sofa-framework.org/download/. To run the simulation I just use runSofa.exe.Best,
Josh21 January 2020 at 17:11 #15126 -
AuthorPosts
- You must be logged in to reply to this topic.