Closed
Description
I am running Windows 11 and tried:
1.8.3
1.8.4
1.8.5
1.9.0-beta3
Full versioninfo for 1.9:
Julia Version 1.9.0-beta3
Commit 24204a7344 (2023-01-18 07:20 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 16 × 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, tigerlake)
Threads: 1 on 16 virtual cores
The following snippet works on 1.8.3 and earlier but crashes to the command shell on 1.8.5 and 1.9.0-beta3. In 1.8.4 I encounter the issue described here: https://discourse.julialang.org/t/glmakie-and-plots-fail-to-precompile-under-julia-1-8-4/92087. So perhaps this is related to the fix introduced in 1.8.5?
using Gmsh
radius = 1.0
delta = 0.25
s = """
lc = $delta;
Point(1)={0,0,0,lc};
Point(2)={$radius,0,0,lc};
Point(3)={0,$radius,0,lc};
Point(4)={-$radius,0,0,lc};
Point(5)={0,-$radius,0,lc};
Point(6)={0,0,$radius,lc};
Point(7)={0,0,-$radius,lc};
Circle(1)={2,1,3};
Circle(2)={3,1,4};
Circle(3)={4,1,5};
Circle(4)={5,1,2};
Circle(5)={6,1,3};
Circle(6)={3,1,7};
Circle(7)={7,1,5};
Circle(8)={5,1,6};
Line Loop(1)={-1,-6,-7,-4};
Line Loop(2)={1,-5,-8,4};
Line Loop(3)={-2,-3,7,6};
Line Loop(4)={2,3,8,5};
Ruled Surface(1)={1} In Sphere{1};
Ruled Surface(2)={2} In Sphere{1};
Ruled Surface(3)={3} In Sphere{1};
Ruled Surface(4)={4} In Sphere{1};
"""
fn = tempname()
io = open(fn, "w")
try
print(io, s)
finally
close(io)
end
fno = fn * ".msh"
gmsh.initialize()
gmsh.option.setNumber("Mesh.MshFileVersion",2)
gmsh.open(fn)
gmsh.model.mesh.generate(2)
gmsh.write(fno)
gmsh.finalize()
The crash happens when calling generate
. I do not receive any error message or stack when this happens.
Metadata
Metadata
Assignees
Labels
No labels