The example given in Creating a sysimage for fast plotting with Plots.jl · PackageCompiler does not finish after more than 25 minutes.
I am running Julia 1.9.2 under Debian Linux. This is what I have done:
- Create file
precompile_plots.jl
that contains
using Plots
p = plot(rand(2,2))
display(p)
-
Start julia as follows:
julia --history-file=no --startup-file=no
-
Run the code as shown in the example:
using PackageCompiler
create_sysimage(["Plots"], sysimage_path="sys_plots.so", precompile_execution_file="precompile_plots.jl")
- I’ve also tried
using PackageCompiler
create_sysimage(:Plots, sysimage_path="sys_plots.so", precompile_execution_file="precompile_plots.jl")
and
- (note I use “;”, not “,” after
["Plots"]
)
using PackageCompiler
create_sysimage(["Plots"]; sysimage_path="sys_plots.so", precompile_execution_file="precompile_plots.jl")
After more than 45 minutes, none of the above invocations are done, and they show PackageCompiler: compiling incremental system image
. Note that, in contrast to the above, the example in Creating a sysimage with OhMyREPL · PackageCompiler finishes (in 4’ 26").
I’ve also created other sysimages, that do not use Plots, and they are created. Is anybody else experiencing similar problems? Any workaround?
EDIT: similar problems have been reported in the repo for PackageCompiler: PackageCompiler spins infinitely when compiling sysimage · Issue #825 · JuliaLang/PackageCompiler.jl · GitHub . Moving additional comments there.