I just did a new install of Julia 1.12.0 and was adding packages when I got this error:
PkgPrecompileError: The following 1 direct dependency failed to precompile:
JLD2
rror encountered while load FileIO.File{FileIO.DataFormat{:JLD2}, String}("/tmp/jl_RFt2v9").
Fatal error:
ERROR: LoadError: ConcurrencyViolationError("deadlock detected in loading JLD2 using JLD2")
There is a Stacktrace I can add if it helps, but I wasn’t sure what would make this happen or how to approach it. Any help appreciated.
Feel free to try and backport fixes to JLD2 0.4, but you probably want to be on JLD2 0.6 to avoid other fragile loading code. Any help updating packages to JLD2 0.6 is greatly appreciated. 7. Compatibility · Pkg.jl
That explains everything. I had installed Agents.jl and that pinned my to version v0.4.54. Removing, updating as @ufechner7 suggested and restarting Julia got around this issue.
I’ll see if I can help get this package updated in the Agents repo.
I have the same issue with Agents.jl; after digging around a bit, the issue is really with LightOSM, not Agents: #111 precompile fails on Julia v1.12.0.
As a quick note for anyone else with this issue… the quickest fix for me was to just edit the project.toml for LightOSM to 0.8.1 as described by @renatomc, then re-add Agents.