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

Error reading package image file on v1.9.2+ #19

Open
fatteneder opened this issue Oct 15, 2023 · 3 comments
Open

Error reading package image file on v1.9.2+ #19

fatteneder opened this issue Oct 15, 2023 · 3 comments

Comments

@fatteneder
Copy link
Contributor

Same error occurs also on v1.9.3, v1.10-beta3, but it works on v1.9.1.

Here I tested with the DocStringExtensions dependency of PkgCacheInsepctor.jl.

PkgCacheInspector.jl|main  jl --project
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.9.2 (2023-07-05)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using PkgCacheInspector

julia> info_cachefile("DocStringExtensions")
ERROR: Error reading package image file.
Stacktrace:
 [1] info_cachefile(pkg::Base.PkgId, path::String, depmods::Vector{Any}, isocache::Bool)
   @ PkgCacheInspector ~/wd/PkgCacheInspector.jl/src/PkgCacheInspector.jl:190
 [2] macro expansion
   @ ~/wd/PkgCacheInspector.jl/src/PkgCacheInspector.jl:222 [inlined]
 [3] macro expansion
   @ ./lock.jl:267 [inlined]
 [4] info_cachefile(pkg::Base.PkgId, path::String)
   @ PkgCacheInspector ~/wd/PkgCacheInspector.jl/src/PkgCacheInspector.jl:199
 [5] info_cachefile(pkg::Base.PkgId)
   @ PkgCacheInspector ~/wd/PkgCacheInspector.jl/src/PkgCacheInspector.jl:236
 [6] info_cachefile(pkgname::String)
   @ PkgCacheInspector ~/wd/PkgCacheInspector.jl/src/PkgCacheInspector.jl:256
 [7] top-level scope
   @ REPL[2]:1
@fatteneder
Copy link
Contributor Author

I think this report here is related: JuliaLang/julia#53570 (comment)

I can also reproduce that with other packages, e.g. info_cachefile("Revise") gives the same error, but only after invoking it twice.

@fatteneder
Copy link
Contributor Author

fatteneder commented May 12, 2024

I have looked a bit into this issue (using v1.12 master). The error seems to be coming from here: https://github.com/JuliaLang/julia/blob/25c8128d079a48d2e964d47dd9d5e39a7d3641d6/src/staticdata.c#L3666-L3669

In particular, its always the checksum check there that fails, but I haven't gotten any further.

@Zentrik
Copy link

Zentrik commented May 14, 2024

I can also reproduce, e.g. info_cachefile("Revise") gives the same error, but only after invoking it twice on Julia Nightly.

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

No branches or pull requests

2 participants