GLMakie crash when using PrecompileTools

I observe a strange crash when I execute in the terminal:

mkdir tmp
cd tmp
julia --project="."

and then in Julia

using Pkg
pkg"add KiteViewers"
pkg"add KiteUtils"

using KiteViewers, KiteUtils
viewer=Viewer3D(true);
segments=6
state=demo_state_4p(segments+1)
update_system(viewer, state, kite_scale=0.25)
KiteViewers.running[]=true

Output:

[46955] signal (11.1): Segmentation fault
in expression starting at REPL[6]:1
unsafe_load at ./pointer.jl:119 [inlined]
unsafe_load at ./pointer.jl:119 [inlined]
unsafe_load at /home/ufechner/.julia/packages/FreeType/ATaWH/src/FreeType.jl:532 [inlined]
getproperty at /home/ufechner/.julia/packages/FreeTypeAbstraction/lopoc/src/types.jl:153 [inlined]
family_name at /home/ufechner/.julia/packages/FreeTypeAbstraction/lopoc/src/findfonts.jl:45 [inlined]
fontname at /home/ufechner/.julia/packages/FreeTypeAbstraction/lopoc/src/findfonts.jl:122
insert_glyph! at /home/ufechner/.julia/packages/Makie/VRavR/src/utilities/texture_atlas.jl:303 [inlined]
glyph_index! at /home/ufechner/.julia/packages/Makie/VRavR/src/utilities/texture_atlas.jl:276
glyph_uv_width! at /home/ufechner/.julia/packages/Makie/VRavR/src/utilities/texture_atlas.jl:284 [inlined]
text_quads at /home/ufechner/.julia/packages/Makie/VRavR/src/layouting/layouting.jl:329
#250 at /home/ufechner/.julia/packages/GLMakie/QyIWu/src/drawing_primitives.jl:524
jfptr_YY.250_17694 at /home/ufechner/.julia/compiled/v1.10/KiteViewers/mlmgc_rEw33.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
#invokelatest#2 at ./essentials.jl:892
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
invokelatest at ./essentials.jl:889
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
MapCallback at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:436
jfptr_MapCallback_2350 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
MapCallback at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:436
jfptr_MapCallback_2350 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
SetindexCallback at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:148
jfptr_SetindexCallback_74447 at /home/ufechner/.julia/compiled/v1.10/Makie/iZ1Bl_rEw33.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
on_update at /home/ufechner/.julia/packages/Makie/VRavR/src/interfaces.jl:115
jfptr_on_update_60369 at /home/ufechner/.julia/compiled/v1.10/Makie/iZ1Bl_rEw33.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
#invokelatest#2 at ./essentials.jl:892
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
invokelatest at ./essentials.jl:889
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
OnAny at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:420
jfptr_OnAny_2265 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
#1966 at /home/ufechner/.julia/packages/Makie/VRavR/src/makielayout/blocks/button.jl:18
jfptr_YY.1966_19281 at /home/ufechner/.julia/compiled/v1.10/KiteViewers/mlmgc_rEw33.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
MapCallback at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:436
jfptr_MapCallback_2350 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
update_computedbbox! at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/layoutobservables.jl:356
jfptr_update_computedbboxNOT._2014 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
#106 at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/layoutobservables.jl:218
jfptr_YY.106_72895 at /home/ufechner/.julia/compiled/v1.10/Makie/iZ1Bl_rEw33.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
#invokelatest#2 at ./essentials.jl:892
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
invokelatest at ./essentials.jl:889
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
OnAny at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:420
jfptr_OnAny_2265 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
align_to_bbox! at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/gridlayout.jl:1096
#11 at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/gridlayout.jl:158
jfptr_YY.11_1424 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
update_computedbbox! at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/layoutobservables.jl:356
#106 at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/layoutobservables.jl:218
jl_fvar_base_7 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
#invokelatest#2 at ./essentials.jl:892
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
invokelatest at ./essentials.jl:889
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
OnAny at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:420
jfptr_OnAny_2265 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
align_to_bbox! at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/gridlayout.jl:1096
#11 at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/gridlayout.jl:158
jfptr_YY.11_1424 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
update_computedbbox! at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/layoutobservables.jl:356
#106 at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/layoutobservables.jl:218
jl_fvar_base_7 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
#invokelatest#2 at ./essentials.jl:892
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
invokelatest at ./essentials.jl:889
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
OnAny at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:420
jfptr_OnAny_2265 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
align_to_bbox! at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/gridlayout.jl:1096
#11 at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/gridlayout.jl:158
jfptr_YY.11_1424 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
update! at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/gridlayout.jl:193
update! at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/gridlayout.jl:1525 [inlined]
update! at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/gridlayout.jl:204
update! at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/gridlayout.jl:1525 [inlined]
update! at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/gridlayout.jl:204
update! at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/gridlayout.jl:1525 [inlined]
#14 at /home/ufechner/.julia/packages/GridLayoutBase/Ld41D/src/gridlayout.jl:261
unknown function (ip: 0x7f30b17dac55)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
MapCallback at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:436
jfptr_MapCallback_2350 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
#1969 at /home/ufechner/.julia/packages/Makie/VRavR/src/makielayout/blocks/button.jl:46
jfptr_YY.1969_18766 at /home/ufechner/.julia/compiled/v1.10/KiteViewers/mlmgc_rEw33.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
#invokelatest#2 at ./essentials.jl:892
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
invokelatest at ./essentials.jl:889
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:768
OnAny at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:420
jfptr_OnAny_2265 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
MapCallback at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:436
jfptr_MapCallback_2350 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
MapCallback at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:436
jfptr_MapCallback_2350 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
notify at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
setindex! at /home/ufechner/.julia/packages/Observables/YdEbO/src/Observables.jl:123
jfptr_setindexNOT._2353 at /home/ufechner/.julia/compiled/v1.10/GridLayoutBase/I3oSr_BHfKA.so (unknown line)

Any idea?

Using Julia 1.10.2 on Ubuntu 22.04.

Second part of the stack trace:

_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
do_call at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/interpreter.c:126
eval_value at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/interpreter.c:223
eval_stmt_value at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/interpreter.c:174 [inlined]
eval_body at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/interpreter.c:617
jl_interpret_toplevel_thunk at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/interpreter.c:775
jl_toplevel_eval_flex at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/toplevel.c:934
jl_toplevel_eval_flex at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/toplevel.c:877
ijl_toplevel_eval_in at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/toplevel.c:985
eval at ./boot.jl:385 [inlined]
eval_user_input at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/usr/share/julia/stdlib/v1.10/REPL/src/REPL.jl:150
repl_backend_loop at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/usr/share/julia/stdlib/v1.10/REPL/src/REPL.jl:246
#start_repl_backend#46 at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/usr/share/julia/stdlib/v1.10/REPL/src/REPL.jl:231
start_repl_backend at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/usr/share/julia/stdlib/v1.10/REPL/src/REPL.jl:228
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
#run_repl#59 at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/usr/share/julia/stdlib/v1.10/REPL/src/REPL.jl:389
run_repl at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/usr/share/julia/stdlib/v1.10/REPL/src/REPL.jl:375
jfptr_run_repl_91745.1 at /home/ufechner/.julia/juliaup/julia-1.10.2+0.x64.linux.gnu/lib/julia/sys.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
#1013 at ./client.jl:432
jfptr_YY.1013_82712.1 at /home/ufechner/.julia/juliaup/julia-1.10.2+0.x64.linux.gnu/lib/julia/sys.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
jl_f__call_latest at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/builtins.c:812
#invokelatest#2 at ./essentials.jl:892 [inlined]
invokelatest at ./essentials.jl:889 [inlined]
run_main_repl at ./client.jl:416
exec_options at ./client.jl:333
_start at ./client.jl:552
jfptr__start_82738.1 at /home/ufechner/.julia/juliaup/julia-1.10.2+0.x64.linux.gnu/lib/julia/sys.so (unknown line)
_jl_invoke at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:2894 [inlined]
ijl_apply_generic at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/gf.c:3076
jl_apply at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/julia.h:1982 [inlined]
true_main at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/jlapi.c:582
jl_repl_entrypoint at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/src/jlapi.c:731
main at /cache/build/builder-amdci5-1/julialang/julia-release-1-dot-10/cli/loader_exe.c:58
unknown function (ip: 0x7f30b2a29d8f)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x4010b8)
Allocations: 54840544 (Pool: 54807605; Big: 32939); GC: 53
bin/run_julia: line 32: 46955 Segmentation fault      (core dumped) julia --project -t $FAST_CORES,1 $GCT

Was too long for one message…

It’s a segfault in freetype it seems, are you maybe doing something threaded which would access glyphs? That is all not threadsafe

Well, I start Julia with julia --project, so there should not be any multi-threading.

I created an MWE:

using KiteViewers
Viewer3D()

KiteViewers.running[]=true

and the minimal module to get this crash has two files, KiteViewers.jl:

module KiteViewers

using PrecompileTools: @setup_workload, @compile_workload 
using GLMakie

export Viewer3D

const    running   = Observable(false)

function Viewer3D() 
    fig = Figure(size=(200, 200))
    sub_fig = fig[1,1]
    fig[2, 1] = buttongrid = GridLayout()

    btn_PLAY_PAUSE  = Button(sub_fig, label = @lift($running ? "PAUSE" : " RUN "))
    btn_AUTO        = Button(sub_fig)
    
    buttongrid[1, 1:2] = [btn_PLAY_PAUSE, btn_AUTO]
    display(fig)
end

@setup_workload begin
	@compile_workload begin
		screen=Viewer3D()
        close(screen)
        nothing
	end
end

end

and Project.toml:

name = "KiteViewers"
uuid = "2e593061-95e7-45e4-95f4-df0491f2e601"
authors = ["Uwe Fechner <fechner@aenarete.eu> and contributors"]
version = "0.3.3"

[deps]
GLMakie = "e9467ef8-e4e7-5192-8a1a-b1aee30e663a"
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"

[compat]
GLMakie = "~0.9"
PrecompileTools = "1.2"
julia = "1.9, 1.10"

No crash with less than two buttons, no crash without PrecompileTools…

You can also get the code using:

git clone https://github.com/aenarete/KiteViewers.jl
cd KiteViewers.jl
git checkout bug
julia --project

and then

include("mwes/mwe_03.jl")

if you want to try to reproduce the bug.

Any idea?