I’ve been using the precompiled packages feature in VSCode without trouble for 2 months. Without it programming is impossibly slow, since startup time is many minutes.
Starting this last week at random intervals the error below happens. The code runs fine using the sysimage for a while and then it stops working. It looks like the JuliaSysimage.so file is being corrupted, or maybe the registry is being corrupted or maybe both.
Once this happens the only way I’ve found to fix it is to blow away the sysimage and registry and rerun the package compiler. This takes a very long time. Has anybody else encountered this error?
versioninfo:
Julia Version 1.5.0
Commit 96786e22cc (2020-08-01 23:44 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: AMD EPYC 7702P 64-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, znver1)
Environment:
JULIA_NUM_THREADS = 64
JULIA_EDITOR = “/usr/share/code/code”
Error info:
julia> using Optics,Optics.Diagnostics
[ Info: Precompiling Optics [24114763-4efb-45e7-af0e-cde916beb153]
fatal: error thrown and no exception handler available.
#<null>
#systemerror#49 at ./error.jl:168
systemerror##kw at ./error.jl:168
systemerror##kw at ./error.jl:168
#systemerror#48 at ./error.jl:167 [inlined]
systemerror at ./error.jl:167 [inlined]
#open#542 at ./iostream.jl:284
open at ./iostream.jl:273 [inlined]
#open#287 at ./io.jl:323
open at ./io.jl:323 [inlined]
project_file_manifest_path at ./loading.jl:418 [inlined]
manifest_file at /home/brian/.julia/packages/Revise/BqeJF/src/pkgs.jl:450 [inlined]
manifest_file at /home/brian/.julia/packages/Revise/BqeJF/src/pkgs.jl:457 [inlined]
__init__ at /home/brian/.julia/packages/Revise/BqeJF/src/Revise.jl:1326
jfptr___init___111681 at /home/brian/repos/Raytracer/Optics/JuliaSysimage.so (unknown line)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2214 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1690 [inlined]
jl_module_run_initializer at /buildworker/worker/package_linux64/build/src/toplevel.c:74
_julia_init at /buildworker/worker/package_linux64/build/src/init.c:779
main at /buildworker/worker/package_linux64/build/ui/repl.c:221
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
_start at /home/brian/Applications/julia-1.5.0/bin/julia (unknown line)
ERROR: Failed to precompile Optics [24114763-4efb-45e7-af0e-cde916beb153] to /home/brian/.julia/compiled/v1.5/Optics/60XLU_7E1ie.ji.