Suddenly cannot use Plots package

I am using julia 1.3.0, and suddenly I cannot use the Plots.jl package.

This the error I get:

julia> using Plots
[ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
GC error (probable corruption) :
Allocations: 7199675 (Pool: 7199102; Big: 573); GC: 3
<?#0x121070f60::0x10>
0x1140ac000: Queued root: 0x11efaf9e0 :: 0x116686c40 (bits: 3)
        of type Core.TypeName
...
...
0x10e04dfb8:   `- Module (bindings) 0x13053b340 (bits 1) -- [0x7fbb680942a8, 0x7fbb68096600)
0x10e04dfe0: Root object: 0x13499e370 :: 0x10fc32310 (bits: 1)
        of type GlobalRef

signal (6): Abort trap: 6
in expression starting at /Users/roi/.julia/packages/Plots/mXrnb/src/Plots.jl:15
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 7252414 (Pool: 7251736; Big: 678); GC: 1
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /Users/roi/.julia/compiled/v1.3/Plots/ld3vC_lObFt.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1283
 [3] _require(::Base.PkgId) at ./loading.jl:1024
 [4] require(::Base.PkgId) at ./loading.jl:922
 [5] require(::Module, ::Symbol) at ./loading.jl:91

At first I had a different error like in this post.
I moved the directory ~/.julia/compiled/v1.3 to a different location, and now I see this error.
Is there any solution?

I was thinking of installing julia 1.4.2, but I still want to be able to have julia 1.3 running.

Does commenting-out these two lines help? (You’ll have to dev Plots to try it.)

If so, then (1) best to report it as an issue at Plots, and (2) it should be fixed on 1.4.2 (it’s probably fixed by https://github.com/JuliaLang/julia/pull/35378, which is in 1.4.2 and higher).

2 Likes

You could probably also just swap it out for SimplePlots.jl if you’re just using it for simple stuff on an old julia version

1 Like

How can I find the proper file for julia 1.3.1? (I am running on Mac).

I installed julia 1.4.2 and everything is fine there.
Still, I have a lot of code written in jupyter notebooks for julia 1.3 which I would like to run - so I want to fix this issue…

All the things you’ve written in 1.3 are almost guaranteed to work in 1.4.2 though? Just install IJulia on your 1.4.2 version and open your notebooks.

1 Like

I see.
Thanks to your comment I now saw that I can change the kernel in the notebook.

1 Like