JLD crash on WIN

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

JLD crash on WIN

Igor Cerovsky
Hello,

Julia 0.5 crashes when loading previously saved data using JLD; code below shows a simple example, that causes crash:
using JLD

type foo
  a
::Int
  b
::String
end
f
= foo(1, "a")
save
("d:/work/Julia/data.jld", "f", f)
l
= load("d:/work/Julia/data.jld", "f") # crashes here

however, everything works fine with:
using JLD

a
= [1,2]
save
("d:/work/Julia/data.jld", "a", a)
l
= load("d:/work/Julia/data.jld", "a")

Julia Version 0.5.0 (2016-09-19 18:14 UTC); Official http://julialang.org/ release; x86_64-w64-mingw32

Any idea how to fix the problem?

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: JLD crash on WIN

Igor Cerovsky
I've also submitted an issue to JLD, and the problem is originally addressed here: https://github.com/JuliaIO/JLD.jl/issues/103

On Tuesday, 8 November 2016 14:50:49 UTC+1, Igor Cerovsky wrote:
Hello,

Julia 0.5 crashes when loading previously saved data using JLD; code below shows a simple example, that causes crash:
using JLD

type foo
  a
::Int
  b
::String
end
f
= foo(1, "a")
save
("d:/work/Julia/data.jld", "f", f)
l
= load("d:/work/Julia/data.jld", "f") # crashes here

however, everything works fine with:
using JLD

a
= [1,2]
save
("d:/work/Julia/data.jld", "a", a)
l
= load("d:/work/Julia/data.jld", "a")

Julia Version 0.5.0 (2016-09-19 18:14 UTC); Official <a href="http://julialang.org/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjulialang.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFDhjHIhllRBZ-d-bLtw3PuY5T3Aw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fjulialang.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFDhjHIhllRBZ-d-bLtw3PuY5T3Aw&#39;;return true;">http://julialang.org/ release; x86_64-w64-mingw32

Any idea how to fix the problem?

Thanks.