# \#jld

**URL:** https://discourse.julialang.org/tag/jld/29.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Access violation when using package JLD.jl](https://discourse.julialang.org/t/access-violation-when-using-package-jld-jl/126985)

<div class="topic-metadata">

**Author:** [@zyhsjtu](https://discourse.julialang.org/u/zyhsjtu)\
**Replies:** 5\
**Last updated:** [March 15, 2025, 2:56pm UTC](https://discourse.julialang.org/t/access-violation-when-using-package-jld-jl/126985 "2025-03-15T14:56:49Z")

</div>

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks. Exception: EXCEPTION\_ACCESS\_VIOLATION at 0x2c1fc3ce3bf – unsafe\_load at .\\pointer.jl:153 \[in…

---

## [JLD and package extensions](https://discourse.julialang.org/t/jld-and-package-extensions/124656)

<div class="topic-metadata">

**Author:** [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Replies:** 2\
**Last updated:** [January 12, 2025, 8:05am UTC](https://discourse.julialang.org/t/jld-and-package-extensions/124656 "2025-01-12T08:05:46Z")

</div>

I would like to make a package extension that loads if JLD.jl is loaded. I got the code below to work in the REPL, but when I make Abc the main package and JLDExt the extension (and remove the dots in front of the packag…

---

## [Saving/exporting objects on hard drive](https://discourse.julialang.org/t/saving-exporting-objects-on-hard-drive/90492)

<div class="topic-metadata">

**Author:** [@CeterisPartybus](https://discourse.julialang.org/u/CeterisPartybus)\
**Replies:** 6\
**Last updated:** [November 19, 2022, 1:33pm UTC](https://discourse.julialang.org/t/saving-exporting-objects-on-hard-drive/90492 "2022-11-19T13:33:39Z")

</div>

I am trying to save/export objects in memory to my hard drive. I have found two packages that should allow me to do that: JLD and JLD2. However, both only return errors. Has anyone an idea on how to do that/where my err…

---

## [Save with an object value in file name](https://discourse.julialang.org/t/save-with-an-object-value-in-file-name/76110)

<div class="topic-metadata">

**Author:** [@jisutich](https://discourse.julialang.org/u/jisutich)\
**Replies:** 3\
**Last updated:** [February 10, 2022, 4:31pm UTC](https://discourse.julialang.org/t/save-with-an-object-value-in-file-name/76110 "2022-02-10T16:31:29Z")

</div>

Hi guys: I am using the package JLD to save objects. How to add the value of some parameters in the file name? For example, if I have a parameter a =0.5, I want the value of a to show up in the file name so I can rememb…

---

## [Pinging creators of JLD.jl](https://discourse.julialang.org/t/pinging-creators-of-jld-jl/70502)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 1\
**Last updated:** [October 27, 2021, 11:09pm UTC](https://discourse.julialang.org/t/pinging-creators-of-jld-jl/70502 "2021-10-27T23:09:59Z")

</div>

Hi! In its current state, JLD.jl does not work for Julia v1.7. I have already elaborated a PR and is passing the tests, but nobody is merging it. I don’t want to get pushy at all; I know that this is Open Source, and e…

---

## [What is the preferred way to save variables?](https://discourse.julialang.org/t/what-is-the-preferred-way-to-save-variables/21918)

<div class="topic-metadata">

**Author:** [@zaen](https://discourse.julialang.org/u/zaen)\
**Replies:** 39\
**Last updated:** [August 24, 2021, 8:22am UTC](https://discourse.julialang.org/t/what-is-the-preferred-way-to-save-variables/21918 "2021-08-24T08:22:30Z")

</div>

I’m trying to save variables from one run of a problem JuMP to use as initial values for variables in a separate JuMP problem. I see that there seem to be several (competing?) options for doing this: JLD JLD2 BSON HDF5 …

---

## [Read a dictionary JLD2 file dumped by python in julia](https://discourse.julialang.org/t/read-a-dictionary-jld2-file-dumped-by-python-in-julia/57418)

<div class="topic-metadata">

**Author:** [@Sebastian\_Mena](https://discourse.julialang.org/u/Sebastian_Mena)\
**Replies:** 3\
**Last updated:** [March 17, 2021, 10:17pm UTC](https://discourse.julialang.org/t/read-a-dictionary-jld2-file-dumped-by-python-in-julia/57418 "2021-03-17T22:17:04Z")

</div>

Hi, I am trying to import a dictionary that I saved in python with the extension .jld2 First, I tried this code to do that: \> using JSON \> using DataStructures \> using JLD2 \> dict\_name = load("path/dict\_name.jld2") A…

---

## [JLD load error for Dict](https://discourse.julialang.org/t/jld-load-error-for-dict/50710)

<div class="topic-metadata">

**Author:** [@katdeane](https://discourse.julialang.org/u/katdeane)\
**Replies:** 10\
**Last updated:** [November 26, 2020, 8:23am UTC](https://discourse.julialang.org/t/jld-load-error-for-dict/50710 "2020-11-26T08:23:33Z")

</div>

I am using dictionaries to store matrices of data under a series of tags such as the following: "GroupIdentifier"=\>Dict{Any,Any}("SubjectNumber"=\>Dict{Any,Any}("StimulusType"=\>Dict{Any,Any}("RecordingPlace"=\>(\[dat1\],\[da…

---

## [Recommended serialization interface in Oct 2020: JLD, JLD2,](https://discourse.julialang.org/t/recommended-serialization-interface-in-oct-2020-jld-jld2/48994)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 6\
**Last updated:** [October 26, 2020, 9:49am UTC](https://discourse.julialang.org/t/recommended-serialization-interface-in-oct-2020-jld-jld2/48994 "2020-10-26T09:49:17Z")

</div>

Obviously a corporation like Mathworks (for all its limitations) shines in its ability to define an official serialization interface: .mat (complexity of .mat versions aside) Is there any plan to do the same for JLDx? …

---

## [Best practice for channels that use HDF5 (seems like race is still an issue with lock)](https://discourse.julialang.org/t/best-practice-for-channels-that-use-hdf5-seems-like-race-is-still-an-issue-with-lock/44652)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 0\
**Last updated:** [August 10, 2020, 1:07am UTC](https://discourse.julialang.org/t/best-practice-for-channels-that-use-hdf5-seems-like-race-is-still-an-issue-with-lock/44652 "2020-08-10T01:07:19Z")

</div>

I’m about to submit some jobs that use following “emergency backup” scheme (see MWE testBackup.jl below). I learned the hard way after loosing some data on a job that was submitted to our cluster, due to a failing check…

---

## [Saving workspace in JLD](https://discourse.julialang.org/t/saving-workspace-in-jld/31051)

<div class="topic-metadata">

**Author:** [@tanya](https://discourse.julialang.org/u/tanya)\
**Replies:** 2\
**Last updated:** [April 18, 2020, 2:32pm UTC](https://discourse.julialang.org/t/saving-workspace-in-jld/31051 "2020-04-18T14:32:33Z")

</div>

I have a number of saved \*.jld files from Julia 0.6.4 but had to switch to Julia 1.2 recently. With JLD package @load seems work fine, but there is a problem with @save(“workspace.jld”). It complains about current module…

---

## [Can't access jld data from julia0.7](https://discourse.julialang.org/t/cant-access-jld-data-from-julia0-7/15284)

<div class="topic-metadata">

**Author:** [@pegger0709](https://discourse.julialang.org/u/pegger0709)\
**Replies:** 1\
**Last updated:** [September 21, 2018, 3:22pm UTC](https://discourse.julialang.org/t/cant-access-jld-data-from-julia0-7/15284 "2018-09-21T15:22:00Z")

</div>

Hello, I just upgraded to 0.7 on my way to 1.0 and noticed that I couldn’t install the JLD package. julia\> Pkg.add("JLD") WARNING: Base.Pkg is deprecated, run \`using Pkg\` instead in module Main Cloning default regi…

---

## [JLD on Multithreading](https://discourse.julialang.org/t/jld-on-multithreading/12632)

<div class="topic-metadata">

**Author:** [@DavidBerghaus](https://discourse.julialang.org/u/DavidBerghaus)\
**Replies:** 2\
**Last updated:** [July 24, 2018, 11:55am UTC](https://discourse.julialang.org/t/jld-on-multithreading/12632 "2018-07-24T11:55:11Z")

</div>

I am calculating matrix entries through multithreading and now would like to save the matrix to a file because it gets too big for my RAM. I read that the package JLD is most common for saving Julia variables. But when…

---

## [Error using Load with JLD](https://discourse.julialang.org/t/error-using-load-with-jld/11638)

<div class="topic-metadata">

**Author:** [@Tessereau\_Charline](https://discourse.julialang.org/u/Tessereau_Charline)\
**Replies:** 0\
**Last updated:** [June 13, 2018, 10:05am UTC](https://discourse.julialang.org/t/error-using-load-with-jld/11638 "2018-06-13T10:05:29Z")

</div>

I used JLD to save and load data to plot the results of some experiment. It has always worked fine until recently when I tryed to load a more heavy (usually it was around 5 to 20 MB and now from 400 to 500 MB, I dont kno…

---

## [Writing an array too large to store in memory](https://discourse.julialang.org/t/writing-an-array-too-large-to-store-in-memory/9752)

<div class="topic-metadata">

**Author:** [@dsweber2](https://discourse.julialang.org/u/dsweber2)\
**Replies:** 2\
**Last updated:** [March 16, 2018, 12:53pm UTC](https://discourse.julialang.org/t/writing-an-array-too-large-to-store-in-memory/9752 "2018-03-16T12:53:30Z")

</div>

I am transforming a dataset, and the process of transforming it both takes a long time and takes up a large amount of memory. I really only need a single row of the matrix in memory at any given time, so is there some ef…

---

## [Incrementally growing datafield with JLD](https://discourse.julialang.org/t/incrementally-growing-datafield-with-jld/7919)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 0\
**Last updated:** [December 22, 2017, 1:52pm UTC](https://discourse.julialang.org/t/incrementally-growing-datafield-with-jld/7919 "2017-12-22T13:52:10Z")

</div>

Let’s say I have a matrix stored in a file and I want to add columns over time. I want to add them in chunks so that I do not open/close the file all the time and I also want compression. HDF5 allows me to do so for bas…

---

## [H5write analog for JLD](https://discourse.julialang.org/t/h5write-analog-for-jld/7917)

<div class="topic-metadata">

**Author:** [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Replies:** 0\
**Last updated:** [December 22, 2017, 12:19pm UTC](https://discourse.julialang.org/t/h5write-analog-for-jld/7917 "2017-12-22T12:19:13Z")

</div>

using JLD # create dummy file save("test.jld", "x", rand(2,2)) # I now want to add another element to "test.jld" # I can't do save("test.jld", "y", rand(2,2)) because # this creates a new file that only contains y (x i…

---

## [JLD unable to load files from separate folders? ](https://discourse.julialang.org/t/jld-unable-to-load-files-from-separate-folders/7886)

<div class="topic-metadata">

**Author:** [@gaomrx](https://discourse.julialang.org/u/gaomrx)\
**Replies:** 0\
**Last updated:** [December 20, 2017, 8:48pm UTC](https://discourse.julialang.org/t/jld-unable-to-load-files-from-separate-folders/7886 "2017-12-20T20:48:35Z")

</div>

Duplicate of open issue #201 on Github

---

## [Loading/writing a single element from an array in JLD](https://discourse.julialang.org/t/loading-writing-a-single-element-from-an-array-in-jld/7414)

<div class="topic-metadata">

**Author:** [@Axel\_Gagge](https://discourse.julialang.org/u/Axel_Gagge)\
**Replies:** 3\
**Last updated:** [December 3, 2017, 3:07am UTC](https://discourse.julialang.org/t/loading-writing-a-single-element-from-an-array-in-jld/7414 "2017-12-03T03:07:56Z")

</div>

I want to save and load data with JLD.jl (or HDF5.jl or something) which is is a 1-dimensional array of large elements (themselves large arrays). I want to be able to work with one or a few of the array elements at a tim…

---

## [Dict loaded from jld file very long time... Why 22 seconds?](https://discourse.julialang.org/t/dict-loaded-from-jld-file-very-long-time-why-22-seconds/1629)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 7\
**Last updated:** [August 24, 2017, 9:54pm UTC](https://discourse.julialang.org/t/dict-loaded-from-jld-file-very-long-time-why-22-seconds/1629 "2017-08-24T21:54:58Z")

</div>

My Dict julia\> DTT\_HH Dict{Int64,Any} with 381701 entries: 61670 =\> 4150042 119601 =\> 5600255 136672 =\> 8300228 231648 =\> 5600221 ? =\> ? julia\> save(“TT\_Dicts.jld”,“DTT\_HH”,DTT\_HH) julia\> @time x=load(“TT\_…

---

## [JLD takes too long reading names from a file](https://discourse.julialang.org/t/jld-takes-too-long-reading-names-from-a-file/2154)

<div class="topic-metadata">

**Author:** [@LewisHein](https://discourse.julialang.org/u/LewisHein)\
**Replies:** 2\
**Last updated:** [April 11, 2017, 9:28am UTC](https://discourse.julialang.org/t/jld-takes-too-long-reading-names-from-a-file/2154 "2017-04-11T09:28:19Z")

</div>

JLD seems to take an awfully long time just reading the names present in a JLD file – not reading values, just names. julia\> outfile = jldopen("/tmp/blah.jl", "w") Julia data file version 0.1.1: /tmp/blah.jl julia\> for…

---

## [How to read range of JLD file?](https://discourse.julialang.org/t/how-to-read-range-of-jld-file/954)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 19\
**Last updated:** [January 18, 2017, 1:04pm UTC](https://discourse.julialang.org/t/how-to-read-range-of-jld-file/954 "2017-01-18T13:04:28Z")

</div>

julia\> using JLD julia\> D=load("D.jld","D",(:,1)) ERROR: too few arguments in println at strings/io.jl:25

---

## [How to add new var(matix , ...) to existing jld file and keep existing vars](https://discourse.julialang.org/t/how-to-add-new-var-matix-to-existing-jld-file-and-keep-existing-vars/1567)

<div class="topic-metadata">

**Author:** [@programista](https://discourse.julialang.org/u/programista)\
**Replies:** 1\
**Last updated:** [January 18, 2017, 12:26pm UTC](https://discourse.julialang.org/t/how-to-add-new-var-matix-to-existing-jld-file-and-keep-existing-vars/1567 "2017-01-18T12:26:43Z")

</div>

How to add new “B” var(matix , …) to existing jld file and keep existing vars “A” julia\> using HDF5,JLD julia\> A=10 julia\> save(“File.jld”,“A”,A) julia\> B=5 ??? Paul
