[Gmsh] Gmsh crashes wile creating a mesh

Moritz Nadler moritz_nadler at gmx.de
Tue Jul 1 16:06:24 CEST 2008


Thanks for the quick reply again

yes there was a too small ch. length in the .gmsh-option file
after deleting it I got:

moritz at skynet:~$ gmsh test2.geo -2
Info    : Increasing process stack size (8192 kB < 16 MB)
Info    : 'gmsh test2.geo -2 ' started on Tue Jul  1 13:23:30 2008
Info    : Reading 'test2.geo'
Info    : Read 'test2.geo'
Info    : Meshing 1D...
Info    : Meshing curve 1
Info    : Meshing curve 2
Info    : Meshing curve 3
Info    : Meshing curve 4
Info    : Meshing curve 5
Info    : Meshing curve 6
Info    : Meshing curve 7
Info    : Meshing curve 8
Info    : Mesh 1D complete (0.008001 s)
Info    : Mesh
Info    : Meshing 2D...
Info    : Meshing surface 11 (Plane, MeshAdapt+Delaunay)
Error   : 3 identical points in Qtest
Info    :  edge 2187 2188 has to be recovered
Error   : Unable to recover an edge 0.0398699 0.02 && 0.0398799 0.02 (1986/*d)
Error   : Face not meshed
Info    : Mesh 2D complete (1.26808 s)
Info    : Mesh
Info    : 4245 vertices 4245 elements
Info    : Writing 'test2.msh'
Info    : Wrote 'test2.msh'

but if worked with the -rand command you proposed

moritz at skynet:~$ gmsh -rand 1.e-8 test2.geo -2
Info    : Increasing process stack size (8192 kB < 16 MB)
Info    : 'gmsh -rand 1.e-8 test2.geo -2 ' started on Tue Jul  1 13:36:37 2008
Info    : Reading 'test2.geo'
Info    : Read 'test2.geo'
Info    : Meshing 1D...
Info    : Meshing curve 1
Info    : Meshing curve 2
Info    : Meshing curve 3
Info    : Meshing curve 4
Info    : Meshing curve 5
Info    : Meshing curve 6
Info    : Meshing curve 7
Info    : Meshing curve 8
Info    : Mesh 1D complete (-7.92823e-19 s)
Info    : Mesh
Info    : Meshing 2D...
Info    : Meshing surface 11 (Plane, MeshAdapt+Delaunay)
Info    : Mesh 2D complete (107.447 s)
Info    : Mesh
Info    : 90505 vertices 181010 elements
Info    : Writing 'test2.msh'
Info    : Wrote 'test2.msh'


So thanks a lot for your help

Moritz


Christophe Geuzaine schrieb:
> Moritz Nadler wrote:
>> Thanks for your quick reply!
>>
>> that's what I get when I try what you told me:
>>
>> moritz at skynet:~$ gmsh test2.geo -2
>> Info    : Increasing process stack size (8192 kB < 16 MB)
>> Info    : 'gmsh test2.geo -2 ' started on Mon Jun 30 22:47:24 2008
>> Info    : Reading 'test2.geo'
>> Info    : Read 'test2.geo'
>> Info    : Meshing 1D...
>> Info    : Meshing curve 1
>> Killed
>> moritz at skynet:~$ gmsh -rand 1.e-8 test2.geo -2
>> Info    : Increasing process stack size (8192 kB < 16 MB)
>> Info    : 'gmsh -rand 1.e-8 test2.geo -2 ' started on Mon Jun 30 
>> 23:02:32 2008
>> Info    : Reading 'test2.geo'
>> Info    : Read 'test2.geo'
>> Info    : Meshing 1D...
>> Info    : Meshing curve 1
>> Killed
>>
> 
> Wow, it seems to crash in the 1-D mesh: this is unprecedented :-)
> 
> Can you make sure that you don't have a global option setting the 
> characteristic length to some impossibly small value? (i.e., remove the 
> ~/.gmsh-options file)
> 
> If not, does it also crash with the latest precompiled version 
> distributed on the web site?
> 
> 
> 
>>
>> I have a 32 bit only OS and the gmsh version is:
>> moritz at skynet:~$ gmsh --version
>> 2.0.8
>>
>> Anybody any ideas?
>>
>>
>> Thanks and kind regards
>>
>>
>> Moritz
>>
>> Christophe Geuzaine schrieb:
>>> Moritz Nadler wrote:
>>>> Hallo,
>>>>
>>>> I am new to Gmsh and failing to create new first own mesh:
>>>>
>>>> I have written this .geo file:
>>>>
>>>> clHigh = 0.00001;
>>>> clLow = 0.001;
>>>> Point(1) = {0,0,0,clLow};
>>>> Point(2) = {0.06,0,0,clLow};
>>>> Point(3) = {0.06,0.04025,0,clLow};
>>>> Point(4) = {0,0.04025,0,clLow};
>>>> Point(5) = {0.02,0.02,0,clHigh};
>>>> Point(6) = {0.04,0.02,0,clHigh};
>>>> Point(7) = {0.04,0.02025,0,clHigh};
>>>> Point(8) = {0.02,0.02025,0,clHigh};
>>>> Line(1) = {1,2};
>>>> Line(2) = {2,3};
>>>> Line(3) = {3,4};
>>>> Line(4) = {4,1};
>>>> Line(5) = {5,6};
>>>> Line(6) = {6,7};
>>>> Line(7) = {7,8};
>>>> Line(8) = {8,5};
>>>> Line Loop(9) = {3,4,1,2};
>>>> Line Loop(10) = {7,8,5,6};
>>>> Plane Surface(11) = {9,10};
>>>>
>>>>
>>>> this looks a bit like:
>>>>
>>>> 0--------------0
>>>> 0              0
>>>> 0              0
>>>> 0   0======0   0
>>>> 0              0
>>>> 0              0
>>>> 0--------------0
>>>>
>>>> if I load this file with the Gmsh GUI and click on mesh->2D (or 1D)
>>>> Gmsh uses ALL my memory (2 GB) and then fills my hole swap partition 
>>>> (1.4 GB) and then gets killed automatically be the OS ( Ubuntu linux 
>>>> 8.04)
>>>>
>>>> Does anyone know what to do to the this geo file meshed?
>>>>
>>>
>>> It seems to work fine over here (on MacOS and Linux 32 bits). But we
>>> have seen similar issues on some 64 bit Linux machine. Could you try
>>> with the "-rand 1.e-8" command line arguement?
>>>
>>>
>>>
>>>> thanks in advance for any help and
>>>> kind regards
>>>>
>>>> Moritz Nadler
>>>>
>>>> _______________________________________________
>>>> gmsh mailing list
>>>> gmsh at geuz.org
>>>> http://www.geuz.org/mailman/listinfo/gmsh
>>>>
>>>>
>>>
>>>
>>
> 
>