-
Notifications
You must be signed in to change notification settings - Fork 24
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
Input too large? #65
Comments
Here's a minimum viable demonstration using JLD2 to call CodecZlib for convenience. Note that it requires > 30 GB of memory. Demousing JLD2, CodecZlib
v = zeros(typemax(UInt32)+10)
jldopen("example.jld2", "w"; compress = true) do f
f["v"] = v
end
jldopen("example.jld2")["v"] # errors Error
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to decompress a 60GB gzippe'd file (this is the compressed size, not sure what the uncompressed is but I expect a high compression ratio), and I hit this error:
It would seem that the issue lies in this line
CodecZlib.jl/src/decompression.jl
Line 160 in f9fddaa
avail_in
is aUInt32
(Cuint
) whilesize
is aUInt64
(UInt
, see TranscodingStreams.jl/src/memory.jl#L11)I imagine that either
Zstream.avail_in
needs to change to aCulong
ormax(input.size, typemax(Cuint))
needs to be applied.The text was updated successfully, but these errors were encountered: