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] Precompilation failing on GitHub Actions (MacOS) #3431

Closed
juliohm opened this issue Apr 11, 2021 · 2 comments
Closed

[BUG] Precompilation failing on GitHub Actions (MacOS) #3431

juliohm opened this issue Apr 11, 2021 · 2 comments
Labels

Comments

@juliohm
Copy link

juliohm commented Apr 11, 2021

Details

The precompilation on MacOS is failing consistently on GitHub Actions. It seems to be related to GR.jl + Plots.jl:

ERROR: LoadError: LoadError: InitError: Evaluation into the closed module `GR` breaks incremental compilation because the side effects will not be permanent. This is likely due to some other module mutating `GR` with `eval` during precompilation - don't do this.
Stacktrace:
  [1] eval
    @ ./boot.jl:360 [inlined]
  [2] __init__()
    @ GR ~/.julia/packages/GR/qSS8e/src/GR.jl:311
  [3] _include_from_serialized(path::String, depmods::Vector{Any})
    @ Base ./loading.jl:674
  [4] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
    @ Base ./loading.jl:760
  [5] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:998
  [6] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:914
  [7] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:901
  [8] include(mod::Module, _path::String)
    @ Base ./Base.jl:386
  [9] include(x::String)
    @ Plots ~/.julia/packages/Plots/SVksJ/src/Plots.jl:1
 [10] top-level scope
    @ ~/.julia/packages/Plots/SVksJ/src/Plots.jl:218
 [11] include
    @ ./Base.jl:386 [inlined]
 [12] 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, UInt64}}, source::String)
    @ Base ./loading.jl:1213
 [13] top-level scope
    @ none:1
 [14] eval
    @ ./boot.jl:360 [inlined]
 [15] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [16] top-level scope
    @ none:1
during initialization of module GR
in expression starting at /Users/runner/.julia/packages/Plots/SVksJ/src/backends/gr.jl:6
in expression starting at /Users/runner/.julia/packages/Plots/SVksJ/src/Plots.jl:1

This is the full log: https://github.com/JuliaGeometry/Meshes.jl/pull/117/checks?check_run_id=2313619039#step:6:355

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pyplot
plotly
plotlyjs
pgfplotsx
inspectdr

Versions

Plots.jl version: v1.11.2
Backend version (]st -m): GR v0.57.3
Output of versioninfo():

@juliohm juliohm added the bug label Apr 11, 2021
@mkitti
Copy link
Contributor

mkitti commented Apr 15, 2021

Cross referencing jheinen/GR.jl#390

@mkitti
Copy link
Contributor

mkitti commented Apr 15, 2021

Your GR installation is incomplete. Rerunning build step for GR package.
┌ Info: Switching provider to GR due to error in depsfile
└   depsfile = "/Users/runner/.julia/packages/GR/qSS8e/deps/deps.jl"

The contents of deps.jl is import GR_jll so that indicates a problem with GR_jll on Mac in Github Actions.

Try setting the environmental variable JULIA_GR_PROVIDER to GR for that platform. That should fix the issue in Github Actions.

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

3 participants