Open Keno opened 8 years ago
I am getting a similar ERROR: TypeError: getfield: expected Symbol, got Int64
when trying to save a value of composite type, including anonymous function, which I expect to pose the problem in my case (as I experienced problems with them and JLD all along).
For the top case, I don't get the reported error, instead I get ERROR: cannot write a pointer to JLD file
. This turns out to be because backtraces now return StackFrame
which includes Nullable{LambdaInfo}
and LambdaInfo.fptr
is of type Ptr{Void}
. So someone is going to have to create writeas/readas
methods for StackFrame
, but of course this will result in the fptr
effectively being thrown away.
@axsk, your case doesn't include enough detail to replicate. But anonymous functions are extremely problematic overall, and at the moment it doesn't seem that anyone has a clear path for them going forward with julia-0.5.
I got this error while saving macroexpanded code that contains module. Eg. JLD.save("temp.jld", "somemodule", Base)
triggers it. A nice error message would make it easier to spot the problem.