Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Plots fails to precompile on MacOS Apple Silicon with Julia 1.10.4 #4968

Closed
hydrosquall opened this issue Aug 2, 2024 · 1 comment
Closed
Labels

Comments

@hydrosquall
Copy link

hydrosquall commented Aug 2, 2024

Details

When running a "hello world" introduction to plotting in Pluto notebooks locally https://featured.plutojl.org/plot/plots.jl , I get an error when installing the Plots dependency . It prevents all cells from running.

I can reproduce the same error logs by running ] precompile Plots in the REPL.

Click expand for full error message.
ERROR: The following 1 direct dependency failed to precompile:

Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]

Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to "/Users/cameron.yick/.julia/compiled/v1.10/Plots/jl_4puoUQ".
ERROR: LoadError: Failed to precompile Glib_jll [7746bdde-850d-59dc-9ae8-88ece973131d] to "/Users/cameron.yick/.julia/compiled/v1.10/Glib_jll/jl_AzODk1".
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:2468
  [3] compilecache
    @ ./loading.jl:2340 [inlined]
  [4] (::Base.var"#968#969"{Base.PkgId})()
    @ Base ./loading.jl:1974
  [5] mkpidlock(f::Base.var"#968#969"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:93
  [6] #mkpidlock#6
    @ /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:88 [inlined]
  [7] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile /Applications/Julia-1.10.app/Contents/Resources/julia/share/julia/stdlib/v1.10/FileWatching/src/pidfile.jl:111
  [8] #invokelatest#2
    @ ./essentials.jl:894 [inlined]
  [9] invokelatest
    @ ./essentials.jl:889 [inlined]
 [10] maybe_cachefile_lock(f::Base.var"#968#969"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:2983
 [11] maybe_cachefile_lock
    @ ./loading.jl:2980 [inlined]
 [12] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:1970
 [13] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1812
 [14] #invoke_in_world#3
    @ ./essentials.jl:926 [inlined]
 [15] invoke_in_world
    @ ./essentials.jl:923 [inlined]
 [16] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1803
 [17] macro expansion
    @ ./loading.jl:1790 [inlined]
 [18] macro expansion
    @ ./lock.jl:267 [inlined]
 [19] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1753
 [20] #invoke_in_world#3
    @ ./essentials.jl:926 [inlined]
 [21] invoke_in_world
    @ ./essentials.jl:923 [inlined]
 [22] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1746
 [23] include(mod::Module, _path::String)
    @ Base ./Base.jl:495
 [24] top-level scope
    @ ~/.julia/packages/JLLWrappers/pG9bm/src/toplevel_generators.jl:192
 [25] include
    @ ./Base.jl:495 [inlined]
 [26] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
    @ Base ./loading.jl:2222
 [27] top-level scope
    @ stdin:3
in expression starting at /Users/cameron.yick/.julia/packages/Cairo_jll/a0woY/src/wrappers/aarch64-apple-darwin.jl:4
in expression starting at /Users/cameron.yick/.julia/packages/Cairo_jll/a0woY/src/Cairo_jll.jl:2
in expression starting at stdin:3

The error repeats for several other libraries with similar text (omitted for brevity), and persists after retrying/restarting the server.

  ✗ Glib_jll
  ✗ Cairo_jll
  ✗ Qt6Base_jll
  ✗ HarfBuzz_jll
  ✗ Qt6ShaderTools_jll
  ✗ libass_jll
  ✗ Pango_jll
  ✗ Qt6Declarative_jll
  ✗ FFMPEG_jll
  ✗ FFMPEG
  ✗ GR_jll
  ✗ GR
  ✗ Plots
  ✗ Plots → UnitfulExt

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
plotlyjs x

Versions

Plots.jl version: v1.40.5
Backend version (]st -m PlotlyJS): v0.18.13
Output of versioninfo():

Julia Version 1.10.4
Commit 48d4fd48430 (2024-06-04 10:41 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 10 × Apple M1 Max
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)

Related

@hydrosquall hydrosquall added the bug label Aug 2, 2024
@hydrosquall hydrosquall changed the title [BUG] Plots fails to precompile on MacOS [BUG] Plots fails to precompile on MacOS for Julia 1.10.4 Aug 2, 2024
@hydrosquall hydrosquall changed the title [BUG] Plots fails to precompile on MacOS for Julia 1.10.4 [BUG] Plots fails to precompile on MacOS Apple Silicon with Julia 1.10.4 Aug 2, 2024
@hydrosquall
Copy link
Author

I don't know what changed since I already tried restarting the Julia session several times yesterday, but I restarted my computer last night, and the notebook fully works today! Apologies for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant