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

Invalid header of precompile cache file on master #356

Closed
KristofferC opened this issue Sep 9, 2019 · 4 comments · Fixed by #357
Closed

Invalid header of precompile cache file on master #356

KristofferC opened this issue Sep 9, 2019 · 4 comments · Fixed by #357

Comments

@KristofferC
Copy link
Collaborator

Using Revise I rarely get

julia> using Revise, Pkg
[ Info: Precompiling Revise [295af30f-e4ad-537b-8983-00126c2a3abe]
ERROR: InitError: ArgumentError: Invalid header in cache file /Users/kristoffer/.julia/compiled/v1.4/JuliaInterpreter/PliIn_OohgU.ji.
Stacktrace:
 [1] parse_cache_header(::String) at /Users/kristoffer/.julia/packages/Revise/JCJHO/src/pkgs.jl:50
 [2] pkg_fileinfo at /Users/kristoffer/.julia/packages/Revise/JCJHO/src/pkgs.jl:62 [inlined]
 [3] parse_pkg_files(::Base.PkgId) at /Users/kristoffer/.julia/packages/Revise/JCJHO/src/pkgs.jl:115
 [4] __init__() at /Users/kristoffer/.julia/packages/Revise/JCJHO/src/Revise.jl:1068
 [5] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:692
 [6] _require_from_serialized(::String) at ./loading.jl:743
 [7] _require(::Base.PkgId) at ./loading.jl:1034
 [8] require(::Base.PkgId) at ./loading.jl:922
 [9] require(::Module, ::Symbol) at ./loading.jl:917
during initialization of module Revise

My guess is that this is somehow interacting with JuliaLang/julia#32651 but I cannot see how.

@KristofferC
Copy link
Collaborator Author

I uploaded the bad .ji file here: https://srv-file7.gofile.io/download/LGweL4/PliIn_OohgU.ji.

@KristofferC
Copy link
Collaborator Author

It seems the check that fails is readstr_verify(s, jl_git_branch());.

@KristofferC
Copy link
Collaborator Author

Perhaps there needs to be a staleness check before calling parse_cache_header?

@timholy
Copy link
Owner

timholy commented Nov 9, 2019

I get a You are not authorized to download this file. when I click on the link for your ji file

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

Successfully merging a pull request may close this issue.

2 participants