Error importing ASCII meshes

Submitted by rcabiscol on Tue, 08/20/2013 - 11:41

Hello everybody!

I was running my first simulation in LIGGGHTS and it appears one error message when it is reading the mesh archive of the bottom of my geometry. The content is:

Reading STL file 'Nou.mesh.per.prism.30.stl'
*** Process received signal ***
[] Signal: Segmentation fault (11)
[] Signal code: Address not mapped (1)
[] Failing at address: (nil)
[] [ 0] /lib/x86_64-linux-gnu/ [0x7f9695f43cb0]
[] [ 1] /lib/x86_64-linux-gnu/ [0x7f9695bb57ab]
[] [ 2] liggghts-dev(_ZN9LAMMPS_NS12InputMeshTri15meshtrifile_stlEPNS_7TriMeshE+0x5e4) [0x6becd4]
[] [ 3] liggghts-dev(_ZN9LAMMPS_NS12InputMeshTri11meshtrifileEPKcPNS_7TriMeshEb+0x107) [0x6bfc07]
[] [ 4] liggghts-dev(_ZN9LAMMPS_NS7FixMesh11create_meshEPc+0xe7) [0x5e6057]
[] [ 5] liggghts-dev(_ZN9LAMMPS_NS7FixMeshC1EPNS_6LAMMPSEiPPc+0x8ad) [0x5e6c7d]
[] [ 6] liggghts-dev(_ZN9LAMMPS_NS14FixMeshSurfaceC2EPNS_6LAMMPSEiPPc+0x18) [0x5e77f8]
[] [ 7] liggghts-dev(_Z19create_fix_instanceIN9LAMMPS_NS14FixMeshSurfaceEEPNS0_3FixEPNS0_6LAMMPSEiPPc+0x3f) [0x70018f]
[] [ 8] liggghts-dev(_ZN9LAMMPS_NS6Modify7add_fixEiPPcS1_+0x2aa2) [0x6fab92]
[] [ 9] liggghts-dev(_ZN9LAMMPS_NS5Input15execute_commandEv+0xc55) [0x6bb5a5]
[] [10] liggghts-dev(_ZN9LAMMPS_NS5Input4fileEv+0x528) [0x6bd078]
[] [11] liggghts-dev(main+0x49) [0x48b379]
[] [12] /lib/x86_64-linux-gnu/ [0x7f9695b9676d]
[] [13] liggghts-dev() [0x48c6c1]
[] *** End of error message ***

I have created the mesh archive with FreeCAD and I saved it in ASCI .stl. I don´t think in a processor problem, because I have charged geometries with a higher volume.

Thanks for your help!

PaulWinkler's picture

PaulWinkler | Wed, 08/21/2013 - 12:03


segmentation fault errors occur, when a process tries to access a memory address which not exist (any more). This could be an hardware error, address mapping failure on virtual machines, processes which tries to handle incorrect objects or you are just out of memory. Often the reason is an access violation on an not existing object. Prove that you are not using undefined elements, check your mesh quality, use the repair options if available, check the uniform orientation of your facets (e.g. with the gmsh tool). Try to reduce mesh size, check memory usage, reduce number of particles, check you machines memory (if you use grub as boot menu, there will be a memtest(86+) option).
There maybe an bug in liggghts to, so be sure you use the latest version!

Best wishes,

ckloss's picture

ckloss | Fri, 08/30/2013 - 15:17

Hi rcabiscol,

are you using the latest version of LIGGGHTS? If yes, please post the case in the bug reports forum!