Comments (5)
We'd need a reproducible test case to debug this. Does it work when you just load that specific file? If so, can you share it?
from fileio.jl.
Yes, I can: https://www87.zippyshare.com/v/NS6wRS5q/file.html
When I use JLD2.@load
I get the following error:
@load "/home/u0128861/Desktop/storage-and-LOLE/results/monte_carlo/default_nP=1/mc_year_1016.jld2"
ERROR: LoadError: ArgumentError: "/home/u0128861/Desktop/storage-and-LOLE/results/monte_carlo/default_nP=1/mc_year_2000.jld2" is not a JLD2 file
If I do FileIO.load
I get the previous error:
Error encountered while load FileIO.File{FileIO.DataFormat{:Gadget2}, String}("/home/u0128861/Desktop/storage-and-LOLE/results/monte_carlo/default_nP=1/mc_year_2000.jld2").
Fatal error:
ERROR: ArgumentError: Package AstroIO [c85a633c-0c3f-44a2-bffe-7f9d0681b3e7] is required but does not seem to be installed:
- Run `Pkg.instantiate()` to install all recorded dependencies.
I presume my file is corrupted but the error from FileIO
is miseleading.
from fileio.jl.
@islent, this appears to be an issue for you to tackle (see #264). The problem is that the Gadget2 detection is very "loose"; in
Line 476 in e04d83d
temp1
and temp2
are zero, and this particular file starts with 196612 UInt8(0)
s (wow!).from fileio.jl.
It's definitely not a JLD file:
julia> f = File{format"JLD2"}("mc_year_1016.jld2")
File{DataFormat{:JLD2}, String}("mc_year_1016.jld2")
julia> load(f)
[ Info: Precompiling JLD2 [033835bb-8acc-5ee8-8aae-3f567f8a3819]
Error encountered while load File{DataFormat{:JLD2}, String}("mc_year_1016.jld2").
Fatal error:
ERROR: ArgumentError: "/tmp/fileio/mc_year_1016.jld2" is not a JLD2 file
Stacktrace:
[1] verify_file_header(f::JLD2.JLDFile{JLD2.MmapIO})
@ JLD2 ~/.julia/packages/JLD2/15Kr7/src/file_header.jl:26
[2] jldopen(fname::String, wr::Bool, create::Bool, truncate::Bool, iotype::Type{JLD2.MmapIO}; fallback::Type{IOStream}, compress::Bool, mmaparrays::Bool)
@ JLD2 ~/.julia/packages/JLD2/15Kr7/src/JLD2.jl:301
[...]
Clearly it's corrupted so there is no hope of reading it that way you intended. But it would be good if it simply said "file not recognized" rather than picking something essentially random.
from fileio.jl.
Thanks! I'm curious as to how it got so corrupted, also since I was getting the same error with all the files which were created on our cluster (which sounds very annoying to debug).
from fileio.jl.
Related Issues (20)
- The 1.6 update seems to have broken load from URLs for CSVFiles
- Saving output to txt/CSV file? HOT 1
- Proposal: FileIO.save keyword argument syntax (FileIO.kwsave ?) HOT 3
- FIle collision on case sensitive file systems after recent release.
- House AVSfldIO.jl under JulioIO ? HOT 9
- FileIO is not threadsafe HOT 4
- Error in magic function detect_rdata HOT 4
- There was an error in magic function detect_rdata_single HOT 5
- No applicable_loaders found for UNKNOWN HOT 3
- RData can't load .rda files with [email protected] but can with [email protected] HOT 2
- Confusing error when saving the wrong thing
- Too many open files HOT 4
- FileIO not loading / requiring dependency AVSfldIO properly HOT 2
- @maybe macro
- registering zarr files HOT 1
- register Matlab's .mat HOT 1
- Incorrectly export GIF image
- Unhelpful output `#27 (generic function with 1 method)` HOT 2
- [FR] suppert for .webp format HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fileio.jl.