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

InexactError: convert(UInt32, -1761558062) #619

Open
tpapp opened this issue Nov 22, 2024 · 1 comment
Open

InexactError: convert(UInt32, -1761558062) #619

tpapp opened this issue Nov 22, 2024 · 1 comment

Comments

@tpapp
Copy link

tpapp commented Nov 22, 2024

I am experiencing the error above using Julia v1.11, JLD2 v0.5.9. JLD2 0.5.5 works fine. If you prefer, I can try a bisection. Unfortunately the dataset is huge and I was not able to create an MWE, but it can be shared privately if you need it.

Here is the stacktrace:

julia> couples_posterior = load_posterior(; variant)
ERROR: InexactError: convert(UInt32, -1761558062)
Stacktrace:
  [1] throw_inexacterror(::Symbol, ::Vararg{Any})
    @ Core ./boot.jl:750
  [2] check_sign_bit
    @ ./boot.jl:756 [inlined]
  [3] toUInt32
    @ ./boot.jl:855 [inlined]
  [4] UInt32
    @ ./boot.jl:896 [inlined]
  [5] convert
    @ ./number.jl:7 [inlined]
  [6] rconvert
    @ ~/.julia/packages/JLD2/h8zCA/src/data/custom_serialization.jl:9 [inlined]
  [7] macro expansion
    @ ~/.julia/packages/JLD2/h8zCA/src/data/reconstructing_datatypes.jl:650 [inlined]
  [8] jlconvert
    @ ~/.julia/packages/JLD2/h8zCA/src/data/reconstructing_datatypes.jl:650 [inlined]
  [9] macro expansion
    @ ~/.julia/packages/JLD2/h8zCA/src/data/reconstructing_datatypes.jl:650 [inlined]
 [10] jlconvert
    @ ~/.julia/packages/JLD2/h8zCA/src/data/reconstructing_datatypes.jl:650 [inlined]
 [11] macro expansion
    @ ~/.julia/packages/JLD2/h8zCA/src/io/dataio.jl:125 [inlined]
 [12] macro expansion
    @ ./simdloop.jl:77 [inlined]
 [13] read_array!(v::Vector{…}, f::JLD2.JLDFile{…}, rr::JLD2.MappedRepr{…})
    @ JLD2 ~/.julia/packages/JLD2/h8zCA/src/io/dataio.jl:122
 [14] read_array(f::JLD2.JLDFile{…}, dataspace::JLD2.ReadDataspace, rr::JLD2.ReadRepresentation, layout::JLD2.DataLayout, filters::JLD2.FilterPipeline, header_offset::JLD2.RelOffset, attributes::Vector{…})
    @ JLD2 ~/.julia/packages/JLD2/h8zCA/src/datasets.jl:239
 [15] read_data(f::JLD2.JLDFile{…}, rr::Any, read_dataspace::Tuple{…}, attributes::Vector{…})
    @ JLD2 ~/.julia/packages/JLD2/h8zCA/src/datasets.jl:98
 [16] read_data(f::JLD2.JLDFile{…}, dataspace::JLD2.ReadDataspace, dt::JLD2.H5Datatype, layout::JLD2.DataLayout, filters::JLD2.FilterPipeline, header_offset::JLD2.RelOffset, attributes::Vector{…})
    @ JLD2 ~/.julia/packages/JLD2/h8zCA/src/datasets.jl:84
 [17] load_dataset(f::JLD2.JLDFile{JLD2.MmapIO}, offset::JLD2.RelOffset)
    @ JLD2 ~/.julia/packages/JLD2/h8zCA/src/datasets.jl:48
 [18] jlconvert(::JLD2.MappedRepr{…}, f::JLD2.JLDFile{…}, ptr::Ptr{…}, ::JLD2.RelOffset)
    @ JLD2 ~/.julia/packages/JLD2/h8zCA/src/data/writing_datatypes.jl:338
 [19] macro expansion
    @ ~/.julia/packages/JLD2/h8zCA/src/data/reconstructing_datatypes.jl:697 [inlined]
 [20] jlconvert(::JLD2.MappedRepr{…}, f::JLD2.JLDFile{…}, ptr::Ptr{…}, header_offset::JLD2.RelOffset)
    @ JLD2 ~/.julia/packages/JLD2/h8zCA/src/data/reconstructing_datatypes.jl:650
 [21] read_scalar(f::JLD2.JLDFile{JLD2.MmapIO}, rr::Any, header_offset::JLD2.RelOffset)
    @ JLD2 ~/.julia/packages/JLD2/h8zCA/src/io/dataio.jl:107
 [22] read_data(f::JLD2.JLDFile{…}, rr::Any, read_dataspace::Tuple{…}, attributes::Vector{…})
    @ JLD2 ~/.julia/packages/JLD2/h8zCA/src/datasets.jl:96
 [23] read_data(f::JLD2.JLDFile{…}, dataspace::JLD2.ReadDataspace, dt::JLD2.H5Datatype, layout::JLD2.DataLayout, filters
::JLD2.FilterPipeline, header_offset::JLD2.RelOffset, attributes::Vector{…})
    @ JLD2 ~/.julia/packages/JLD2/h8zCA/src/datasets.jl:84
 [24] load_dataset(f::JLD2.JLDFile{JLD2.MmapIO}, offset::JLD2.RelOffset)
    @ JLD2 ~/.julia/packages/JLD2/h8zCA/src/datasets.jl:48
 [25] getindex(g::JLD2.Group{JLD2.JLDFile{JLD2.MmapIO}}, name::String)
    @ JLD2 ~/.julia/packages/JLD2/h8zCA/src/groups.jl:99
 [26] getindex
    @ ~/.julia/packages/JLD2/h8zCA/src/JLD2.jl:349 [inlined]
 [27] (::JLD2.var"#105#106"{String})(file::JLD2.JLDFile{JLD2.MmapIO})
    @ JLD2 ~/.julia/packages/JLD2/h8zCA/src/loadsave.jl:252
 [28] jldopen(::Function, ::String, ::Vararg{String}; kws::@Kwargs{})
    @ JLD2 ~/.julia/packages/JLD2/h8zCA/src/loadsave.jl:4
 [29] jldopen
    @ ~/.julia/packages/JLD2/h8zCA/src/loadsave.jl:1 [inlined]
 [30] load_object
    @ ~/.julia/packages/JLD2/h8zCA/src/loadsave.jl:248 [inlined]
@JonasIsensee
Copy link
Collaborator

Hi @tpapp ,

Do you think you could generate a stacktrace without the shortened type signatures?

That might already help me pin down the issue.

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