I have only limited understanding of your post, but I guess GitHub - JuliaIO/JLD.jl: Saving and loading julia variables while preserving native types 's load invokes HDF5. I managed to take it our of the myFunction(x,y) that I put into map function and to add a loaded variable to the function:
z=load(mypath/myfile.jld)
myOutputs = map(((x,y) for x in Xs, y in Ys)) do (x,y)
myFunctionl(x,y,z)
end
This works, but when I add ThreadsX., then I get a weird crash.
After I execute my code (in Atom), it spits “Internal error” boxes, though it doesn’t stop running until some time, as it prints the results that I tell the code to do. What is weird is that at some point Atom stops printing the results, it apparently keeps running, but it doesn’t print any error in the REPL, as it always does. The internal error box that I see is the following:

My Julia Client is up-to-date: 0.12.6.