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

Failure to precompile on julia 1.11 - MethodError: no method matching resize!(::Memory{UInt8}, ::Int64) #608

Closed
IanButterworth opened this issue Oct 17, 2024 · 1 comment

Comments

@IanButterworth
Copy link
Member

⌃ [033835bb] + JLD2 v0.4.32
    Updating `~/.julia/environments/v1.11/Manifest.toml`
  [5789e2e9] + FileIO v1.16.4
⌃ [033835bb] + JLD2 v0.4.32
  [189a3867] + Reexport v1.2.2
⌅ [3bb67fe8] + TranscodingStreams v0.9.13
        Info Packages marked with ⌃ and ⌅ have new versions available. Those with ⌃ may be upgradable, but those with ⌅ are restricted by compatibility constraints from upgrading. To see why use `status --outdated -m`
Precompiling project...
  ✗ JLD2
  3 dependencies successfully precompiled in 9 seconds. 58 already precompiled.
  1 dependency errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:

JLD2

Failed to precompile JLD2 [033835bb-8acc-5ee8-8aae-3f567f8a3819] to "/Users/ian/.julia/compiled/v1.11/JLD2/jl_lk4rWB".
ERROR: LoadError: MethodError: no method matching resize!(::Memory{UInt8}, ::Int64)
The function `resize!` exists, but no method is defined for this combination of argument types.

Closest candidates are:
  resize!(::BitVector, ::Integer)
   @ Base bitarray.jl:814
  resize!(::Vector, ::Integer)
   @ Base array.jl:1431
  resize!(::JLD2.MmapIO, ::Ptr{Nothing})
   @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/mmapio.jl:140

Stacktrace:
  [1] typename(T::DataType)
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/data/writing_datatypes.jl:393
  [2] h5convert!(out::JLD2.IndirectPointer, ::JLD2.OnDiskRepresentation{(0, 16), Tuple{String, Vector{Any}}, Tuple{JLD2.Vlen{String}, JLD2.Vlen{JLD2.RelOffset}}, 32}, f::JLD2.JLDFile{JLD2.MmapIO}, T::DataType, wsession::JLD2.JLDWriteSession{Dict{UInt64, JLD2.RelOffset}})
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/data/writing_datatypes.jl:418
  [3] write_data(io::JLD2.MmapIO, f::JLD2.JLDFile{JLD2.MmapIO}, data::Type, odr::JLD2.OnDiskRepresentation{(0, 16), Tuple{String, Vector{Any}}, Tuple{JLD2.Vlen{String}, JLD2.Vlen{JLD2.RelOffset}}, 32}, ::JLD2.HasReferences, wsession::JLD2.JLDWriteSession{Dict{UInt64, JLD2.RelOffset}})
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/dataio.jl:96
  [4] write_attribute(io::JLD2.MmapIO, f::JLD2.JLDFile{JLD2.MmapIO}, attr::JLD2.WrittenAttribute{JLD2.WriteDataspace{0, Tuple{}}, JLD2.CommittedDatatype, DataType}, wsession::JLD2.JLDWriteSession{Dict{UInt64, JLD2.RelOffset}})
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/attributes.jl:48
  [5] commit(f::JLD2.JLDFile{JLD2.MmapIO}, dt::JLD2.H5Datatype, attrs::Tuple{JLD2.WrittenAttribute{JLD2.WriteDataspace{0, Tuple{}}, JLD2.CommittedDatatype, DataType}})
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/datatypes.jl:354
  [6] h5fieldtype(f::JLD2.JLDFile{JLD2.MmapIO}, ::Type{DataType}, readas::Type, ::Type{Val{true}})
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/data/writing_datatypes.jl:378
  [7] h5type(f::JLD2.JLDFile{JLD2.MmapIO}, ::Type{DataType}, x::Type)
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/data/writing_datatypes.jl:384
  [8] commit(::JLD2.JLDFile{JLD2.MmapIO}, ::Any, ::DataType, ::DataType)
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/data/writing_datatypes.jl:200
  [9] commit_compound(f::JLD2.JLDFile{JLD2.MmapIO}, names::Vector{Symbol}, writtenas::DataType, readas::Type)
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/data/writing_datatypes.jl:185
 [10] macro expansion
    @ ~/.julia/packages/JLD2/ZPJxn/src/data/writing_datatypes.jl:99 [inlined]
 [11] h5fieldtype(f::JLD2.JLDFile{JLD2.MmapIO}, writeas::Type{ComplexF64}, readas::Type{ComplexF64}, initialized::Type{Val{false}})
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/data/writing_datatypes.jl:91
 [12] h5type
    @ ~/.julia/packages/JLD2/ZPJxn/src/data/specialcased_types.jl:227 [inlined]
 [13] h5type
    @ ~/.julia/packages/JLD2/ZPJxn/src/data/writing_datatypes.jl:142 [inlined]
 [14] write_dataset(f::JLD2.JLDFile{JLD2.MmapIO}, x::Matrix{ComplexF64}, wsession::JLD2.JLDWriteSession{Dict{UInt64, JLD2.RelOffset}}, compress::Bool)
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/inlineunion.jl:44
 [15] write_dataset(f::JLD2.JLDFile{JLD2.MmapIO}, x::Matrix{ComplexF64}, wsession::JLD2.JLDWriteSession{Dict{UInt64, JLD2.RelOffset}})
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/inlineunion.jl:36
 [16] write(g::JLD2.Group{JLD2.JLDFile{JLD2.MmapIO}}, name::String, obj::Matrix{ComplexF64}, wsession::JLD2.JLDWriteSession{Dict{UInt64, JLD2.RelOffset}}; compress::Nothing)
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/compression.jl:137
 [17] write
    @ ~/.julia/packages/JLD2/ZPJxn/src/compression.jl:125 [inlined]
 [18] write(f::JLD2.JLDFile{JLD2.MmapIO}, name::String, obj::Matrix{ComplexF64}, wsession::JLD2.JLDWriteSession{Dict{UInt64, JLD2.RelOffset}})
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/compression.jl:121
 [19] (::JLD2.var"#82#83"{@Kwargs{a::Int64, b::Float64, c::Vector{Float64}, d::Matrix{ComplexF64}, e::Dict{String, Int64}, f::String, g::NTuple{5, Int64}, h::Vector{Float64}}})(f::JLD2.JLDFile{JLD2.MmapIO})
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/loadsave.jl:246
 [20] jldopen(::Function, ::String, ::Vararg{String}; kws::@Kwargs{compress::Bool, iotype::DataType})
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/loadsave.jl:4
 [21] jldopen
    @ ~/.julia/packages/JLD2/ZPJxn/src/loadsave.jl:1 [inlined]
 [22] #jldsave#81
    @ ~/.julia/packages/JLD2/ZPJxn/src/loadsave.jl:243 [inlined]
 [23] jldsave (repeats 2 times)
    @ ~/.julia/packages/JLD2/ZPJxn/src/loadsave.jl:240 [inlined]
 [24] (::JLD2.var"#121#125")(path::String, ::IOStream)
    @ JLD2 ~/.julia/packages/JLD2/ZPJxn/src/precompile.jl:14
 [25] mktemp(fn::JLD2.var"#121#125", parent::String)
    @ Base.Filesystem ./file.jl:790
 [26] mktemp(fn::Function)
    @ Base.Filesystem ./file.jl:788
 [27] top-level scope
    @ ~/.julia/packages/JLD2/ZPJxn/src/precompile.jl:2
 [28] include(mod::Module, _path::String)
    @ Base ./Base.jl:557
 [29] include
    @ ~/.julia/packages/JLD2/ZPJxn/src/JLD2.jl:1 [inlined]
 [30] top-level scope
    @ ~/.julia/packages/JLD2/ZPJxn/src/JLD2.jl:601
 [31] include
    @ ./Base.jl:557 [inlined]
 [32] 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::Nothing)
    @ Base ./loading.jl:2806
 [33] top-level scope
    @ stdin:4
in expression starting at /Users/ian/.julia/packages/JLD2/ZPJxn/src/precompile.jl:1
in expression starting at /Users/ian/.julia/packages/JLD2/ZPJxn/src/JLD2.jl:1
in expression starting at stdin:
@IanButterworth
Copy link
Member Author

Whoops. I was on a very old version (tricked by my own Pkg feature.. I expected the latest version to be added, but it added the latest already installed version..)

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

1 participant