{"action":"closed","issue":{"url":"https://api.github.com/repos/simonster/JLD2.jl/issues/50","repository_url":"https://api.github.com/repos/simonster/JLD2.jl","labels_url":"https://api.github.com/repos/simonster/JLD2.jl/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/simonster/JLD2.jl/issues/50/comments","events_url":"https://api.github.com/repos/simonster/JLD2.jl/issues/50/events","html_url":"https://github.com/simonster/JLD2.jl/issues/50","id":271010247,"node_id":"MDU6SXNzdWUyNzEwMTAyNDc=","number":50,"title":"saving >2GB file on Windows 7 gives ERROR: SystemError: truncate: Invalid Argument","user":{"login":"jaakkor2","id":7318249,"node_id":"MDQ6VXNlcjczMTgyNDk=","avatar_url":"https://avatars3.githubusercontent.com/u/7318249?v=4","gravatar_id":"","url":"https://api.github.com/users/jaakkor2","html_url":"https://github.com/jaakkor2","followers_url":"https://api.github.com/users/jaakkor2/followers","following_url":"https://api.github.com/users/jaakkor2/following{/other_user}","gists_url":"https://api.github.com/users/jaakkor2/gists{/gist_id}","starred_url":"https://api.github.com/users/jaakkor2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaakkor2/subscriptions","organizations_url":"https://api.github.com/users/jaakkor2/orgs","repos_url":"https://api.github.com/users/jaakkor2/repos","events_url":"https://api.github.com/users/jaakkor2/events{/privacy}","received_events_url":"https://api.github.com/users/jaakkor2/received_events","type":"User","site_admin":false},"labels":[{"id":642992579,"node_id":"MDU6TGFiZWw2NDI5OTI1Nzk=","url":"https://api.github.com/repos/simonster/JLD2.jl/labels/upstream","name":"upstream","color":"deface","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-11-03T15:06:22Z","updated_at":"2018-05-31T15:41:11Z","closed_at":"2018-05-31T15:41:10Z","author_association":"NONE","body":"On Windows 7, Julia v0.6.0, FileIO v0.5.2, JLD2 0.0.4.\r\n```julia\r\nusing FileIO, JLD2\r\nN = 10^4\r\nM = 10^4\r\na = rand(Float32, N, M)\r\nb = rand(Float32, N, M)\r\nc = rand(Float32, N, M)\r\nd = rand(Float32, N, M)\r\ne = rand(Float32, N, M)\r\nf = rand(Float32, N, M)\r\nsave(\"test_foo.jld2\", Dict(\"a\" => a, \"b\" => b, \"c\" => c, \"d\" => d, \"e\" => e, \"f\" => f))\r\n```\r\ngives\r\n```\r\nError encountered while saving \"test_foo.jld2\".\r\nFatal error:\r\nERROR: SystemError: truncate: Invalid argument\r\nStacktrace:\r\n [1] #systemerror#44 at .\\error.jl:64 [inlined]\r\n [2] systemerror(::String, ::Bool) at .\\error.jl:64\r\n [3] truncate(::IOStream, ::Int64) at .\\iostream.jl:43\r\n [4] truncate_and_close(::JLD2.MmapIO, ::Int64) at C:\\Users\\jj\\.julia\\v0.6\\\r\nJLD2\\src\\mmapio.jl:164\r\n [5] close(::JLD2.JLDFile{JLD2.MmapIO}) at C:\\Users\\jj\\.julia\\v0.6\\JLD2\\src\r\n\\JLD2.jl:364\r\n [6] #jldopen#29(::Array{Any,1}, ::Function, ::JLD2.##35#36{Dict{String,Array{Fl\r\noat32,2}}}, ::String, ::Vararg{String,N} where N) at C:\\Users\\jj\\.julia\\v0.\r\n6\\JLD2\\src\\loadsave.jl:6\r\n [7] #save#34(::Array{Any,1}, ::Function, ::FileIO.File{FileIO.DataFormat{:JLD2}\r\n}, ::Dict{String,Array{Float32,2}}) at C:\\Users\\jj\\.julia\\v0.6\\JLD2\\src\\loa\r\ndsave.jl:85\r\n [8] save(::FileIO.File{FileIO.DataFormat{:JLD2}}, ::Dict{String,Array{Float32,2\r\n}}) at C:\\Users\\jj\\.julia\\v0.6\\JLD2\\src\\loadsave.jl:85\r\n [9] eval(::Module, ::Any) at .\\boot.jl:235\r\n [10] #save#21(::Array{Any,1}, ::Function, ::FileIO.File{FileIO.DataFormat{:JLD2\r\n}}, ::Dict{String,Array{Float32,2}}, ::Vararg{Dict{String,Array{Float32,2}},N} w\r\nhere N) at C:\\Users\\jj\\.julia\\v0.6\\FileIO\\src\\loadsave.jl:115\r\n [11] save(::FileIO.File{FileIO.DataFormat{:JLD2}}, ::Dict{String,Array{Float32,\r\n2}}) at C:\\Users\\jj\\.julia\\v0.6\\FileIO\\src\\loadsave.jl:106\r\n [12] #save#14(::Array{Any,1}, ::Function, ::String, ::Dict{String,Array{Float32\r\n,2}}, ::Vararg{Dict{String,Array{Float32,2}},N} where N) at C:\\Users\\jj\\.ju\r\nlia\\v0.6\\FileIO\\src\\loadsave.jl:61\r\n [13] save(::String, ::Dict{String,Array{Float32,2}}) at C:\\Users\\jj\\.julia\r\n\\v0.6\\FileIO\\src\\loadsave.jl:61\r\n```\r\nIf N and M are chosen smaller (<2GB), saving works."}}
{"actor":{"display_login":"jaakkor2"}}