Replies: 1 comment 1 reply
-
|
This looks like an issue with JLD2 not JUDI so I'd open an issue there. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I used JLD2 to save my file, and the process appeared to complete successfully.



However, when I attempted to read it, an error occurred: EOFError: read end of file.
我将附上全部的错误输出:
EOFError: read end of file
Stacktrace:
[1] resize!(io::JLD2.MmapIO, newend::Ptr{Nothing})
@ JLD2 ~/.julia/packages/JLD2/pdSa4/src/io/mmapio.jl:134
[2] ensureroom
@ ~/.julia/packages/JLD2/pdSa4/src/io/mmapio.jl:156 [inlined]
[3] seek
@ ~/.julia/packages/JLD2/pdSa4/src/io/dataio.jl:60 [inlined]
[4] JLD2.HeaderMessageIterator(f::JLD2.JLDFile{JLD2.MmapIO}, offset::JLD2.RelOffset)
@ JLD2 ~/.julia/packages/JLD2/pdSa4/src/object_headers.jl:152
[5] load_dataset(f::JLD2.JLDFile{JLD2.MmapIO}, offset::JLD2.RelOffset)
@ JLD2 ~/.julia/packages/JLD2/pdSa4/src/datasets.jl:21
[6] jlconvert(::JLD2.MappedRepr{Tuple{Float32, Float32}, JLD2.RelOffset}, f::JLD2.JLDFile{JLD2.MmapIO}, ptr::Ptr{Nothing}, ::JLD2.RelOffset)
@ JLD2 ~/.julia/packages/JLD2/pdSa4/src/data/writing_datatypes.jl:338
[7] macro expansion
@ ~/.julia/packages/JLD2/pdSa4/src/data/reconstructing_datatypes.jl:696 [inlined]
[8] jlconvert
@ ~/.julia/packages/JLD2/pdSa4/src/data/reconstructing_datatypes.jl:649 [inlined]
[9] macro expansion
@ ~/.julia/packages/JLD2/pdSa4/src/data/reconstructing_datatypes.jl:649 [inlined]
[10] jlconvert(::JLD2.MappedRepr{JUDI.IsoModel{Float32, 2}, JLD2.OnDiskRepresentation{(0, 40, 48), Tuple{JUDI.DiscreteGrid{Float32, 2}, Union{Float32, PhysicalParameter{Float32, 2}}, Union{Float32, PhysicalParameter{Float32, 2}}}, Tuple{JLD2.OnDiskRepresentation{(0, 16, 24, 32), Tuple{Tuple{Int64, Int64}, Tuple{Float32, Float32}, Tuple{Float32, Float32}, Int64}, Tuple{Tuple{Int64, Int64}, JLD2.RelOffset, JLD2.RelOffset, Int64}, 40}, JLD2.RelOffset, JLD2.RelOffset}, 56}}, f::JLD2.JLDFile{JLD2.MmapIO}, ptr::Ptr{Nothing}, header_offset::JLD2.RelOffset)
@ JLD2 ~/.julia/packages/JLD2/pdSa4/src/data/reconstructing_datatypes.jl:649
[11] read_scalar(f::JLD2.JLDFile{JLD2.MmapIO}, rr::Any, header_offset::JLD2.RelOffset)
@ JLD2 ~/.julia/packages/JLD2/pdSa4/src/io/dataio.jl:107
...
@ JLD2 ~/.julia/packages/JLD2/pdSa4/src/loadsave.jl:1
[20] macro expansion
@ ~/.julia/packages/JLD2/pdSa4/src/loadsave.jl:152 [inlined]
[21] top-level scope
@ In[2]:2
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
Beta Was this translation helpful? Give feedback.
All reactions