TetrahedralMeshGenerator crash

Hi Andras,
Its strange, it didnt run at all and the slicer crashes. ’

Here is what it says:

Switch to module: “Welcome”
Switch to module: “TetrahedralMeshGenerator”
QXcbConnection: XCB error: 3 (BadWindow), sequence: 3142, resource id: 39972228, major code: 40 (TranslateCoords), minor code: 0
Processing started
error: [/home/saima/Downloads/Slicer-4.11.20200930-linux-amd64/bin/SlicerApp-real] exit abnormally - Report the problem.

regards,
Saima Safdar

Probably the issue is that you’ve put some executable or Python files or shared libraries in one of your module folders. Slicer will attempt to use them as Slicer modules: run them with a special argument list (to make the module provide basic information about itself), which makes those executables or Slicer to crash.

The solution is to keep only Slicer module files in those folders that you added to your “Additional module paths” (in menu: Edit / Application settings / Modules).

Hi Andras,
I used the built version of slicer and it is running fine. I do not understand what the problem is with the other downloaded slicer versions. but the one which I build is working fine.

witch to module: “Welcome”
Switch to module: “TetrahedralMeshGenerator”
Processing started
Info : Reading ‘/home/saima/Documents/Model_1_Segment_1.stl’…
Info : 488726 facets in solid 0 3D Slicer output. SPACE=LPS
Info : Done reading ‘/home/saima/Documents/Model_1_Segment_1.stl’
Info : Classifying surfaces (angle: 40)…
Info : Splitting triangulations to make them parametrizable:
Info : - Level 0 partition with 488726 triangles split in 2 parts because too many triangles (488726 vs. 250000)
Info : - Level 1 partition with 244362 triangles split in 2 parts because parametrized triangles are too small (2.76429e-09)
Info : - Level 2 partition with 122360 triangles split in 2 parts because parametrized triangles are too small (3.03033e-09)
Info : - Level 3 partition with 61020 triangles split in 2 parts because parametrized triangles are too small (8.86267e-09)
Info : Found 5 model surfaces
Info : Found 9 model curves
Info : Done classifying surfaces (Wall 30.1653s, CPU 32.3311s)
Info : Creating geometry of discrete curves…
Info : Done creating geometry of discrete curves (Wall 0.0113672s, CPU 0.011578s)
Info : Creating geometry of discrete surfaces…
Info : Done creating geometry of discrete surfaces (Wall 10.898s, CPU 12.2354s)
Info : Meshing 1D…
Info : [ 0%] Meshing curve 11 (Discrete curve)
Info : [ 20%] Meshing curve 12 (Discrete curve)
Info : [ 30%] Meshing curve 13 (Discrete curve)
Info : [ 40%] Meshing curve 14 (Discrete curve)
Info : [ 50%] Meshing curve 15 (Discrete curve)
Info : [ 60%] Meshing curve 16 (Discrete curve)
Info : [ 70%] Meshing curve 17 (Discrete curve)
Info : [ 80%] Meshing curve 18 (Discrete curve)
Info : [ 90%] Meshing curve 19 (Discrete curve)
Info : Done meshing 1D (Wall 0.133766s, CPU 0.133808s)
Info : Meshing 2D…
Info : [ 0%] Meshing surface 2 (Discrete surface, Frontal-Delaunay)
Info : [ 20%] Meshing surface 3 (Discrete surface, Frontal-Delaunay)
Info : [ 40%] Meshing surface 4 (Discrete surface, Frontal-Delaunay)
Info : [ 60%] Meshing surface 5 (Discrete surface, Frontal-Delaunay)
Info : [ 80%] Meshing surface 6 (Discrete surface, Frontal-Delaunay)
Info : Done meshing 2D (Wall 31.7743s, CPU 31.3752s)
Info : 8067 nodes 16395 elements
Info : Writing ‘/home/saima/Slicer-4.11.0-2020-02-25-linux-amd64/TetrahedralMeshGenerator/TetrahedralMeshGenerator/brainmask_auto.msh’…
2
Info : Done writing ‘/home/saima/Slicer-4.11.0-2020-02-25-linux-amd64/TetrahedralMeshGenerator/TetrahedralMeshGenerator/brainmask_auto.msh’
ReadDataInternal ((unknown)): File /home/saima/Slicer-4.11.0-2020-02-25-linux-amd64/TetrahedralMeshGenerator/TetrahedralMeshGenerator/vMesh.vtk does not contain coordinate system information. Assuming LPS.

“Model” Reader has successfully read the file “/home/saima/Slicer-4.11.0-2020-02-25-linux-amd64/TetrahedralMeshGenerator/TetrahedralMeshGenerator/vMesh.vtk” “[0.04s]”
Failed to compute results: Could not deduce file format from extension ‘’.
Traceback (most recent call last):
File “/home/saima/Slicer-4.11.0-2020-02-25-linux-amd64/TetrahedralMeshGenerator/TetrahedralMeshGenerator/TetrahedralMeshGenerator.py”, line 158, in onApplyButton
self.logic.run(self.ui.inputFile.currentPath, self.ui.outputSelector.currentNode(),self.ui.outputFile.currentPath, self.ui.meshType.value)
File “/home/saima/Slicer-4.11.0-2020-02-25-linux-amd64/TetrahedralMeshGenerator/TetrahedralMeshGenerator/TetrahedralMeshGenerator.py”, line 287, in run
meshio.write(outputModelFile,mesh)
File “/home/saima/Slicer-SuperBuild-Debug/python-install/lib/python3.6/site-packages/meshio/_helpers.py”, line 120, in write
file_format = _filetype_from_path(path)
File “/home/saima/Slicer-SuperBuild-Debug/python-install/lib/python3.6/site-packages/meshio/_helpers.py”, line 34, in _filetype_from_path
raise ReadError(f"Could not deduce file format from extension ‘{ext}’.")
meshio._exceptions.ReadError: Could not deduce file format from extension ‘’.

Hi Andras,
I will try this and let you know.

regards,
Saima Safdar