Libgobject-2.0.so.0: undefined symbol: g_dir_unref

I currently get the following error when I try to create a system image:

ERROR: LoadError: InitError: could not load library “/home/ufechner/.julia/artifacts/648a32a349aac06f19b6bfed47f0b822b4ef28c3/lib/libgio-2.0.so”
/home/ufechner/.julia/artifacts/648a32a349aac06f19b6bfed47f0b822b4ef28c3/lib/libgobject-2.0.so.0: undefined symbol: g_dir_unref

ufechner@framework:~/repos/KiteControllers.jl/bin$ time ./create_sys_image --update
Updating packages...
[ Info: Updating packages ...
    Updating registry at `~/.julia/registries/General.toml`
    Updating `~/repos/KiteControllers.jl/Project.toml`
  [90980105] + KiteUtils v0.6.4
  [2774e3e8] + NLsolve v4.5.1
  [510215fc] + Observables v0.5.5
  [d96e819e] + Parameters v0.12.3
  [0d7ed370] + StaticArrayInterface v1.5.0
  [90137ffa] + StaticArrays v1.9.3
  [856f2bd8] + StructTypes v1.10.0
  [21f18d07] + Timers v0.1.5
  [7dcfa46b] + WinchModels v0.2.1
  [ddb6d928] + YAML v0.4.9
    Updating `~/repos/KiteControllers.jl/Manifest.toml`
  [7d9f7c33] + Accessors v0.1.36
  [79e6a3ab] + Adapt v4.0.4
  [4fba245c] + ArrayInterface v7.9.0
  [69666777] + Arrow v2.7.1
  [31f734f8] + ArrowTypes v2.3.0
  [c3b6d118] + BitIntegers v0.3.1
  [336ed68f] + CSV v0.10.13
  [5ba52731] + CodecLz4 v0.4.3
  [944b1d66] + CodecZlib v0.7.4
  [6b39b394] + CodecZstd v0.8.2
  [bbf7d656] + CommonSubexpressions v0.3.0
  [34da2185] + Compat v4.14.0
  [a33af91c] + CompositionsBase v0.1.2
  [f0e56b4a] + ConcurrentUtilities v2.4.1
  [187b0558] + ConstructionBase v1.5.5
  [9a962f9c] + DataAPI v1.16.0
  [e2d170a0] + DataValueInterfaces v1.0.0
  [163ba53b] + DiffResults v1.1.0
  [b552c78f] + DiffRules v1.15.1
  [b4f34e82] + Distances v0.10.11
  [ffbed154] + DocStringExtensions v0.9.3
  [4e289a0a] + EnumX v1.0.4
  [e2ba6199] + ExprTools v0.1.10
  [48062228] + FilePathsBase v0.9.21
  [6a86dc24] + FiniteDiff v2.23.0
  [f6369f11] + ForwardDiff v0.10.36
  [46192b85] + GPUArraysCore v0.1.6
  [615f187c] + IfElse v0.1.1
  [842dd82b] + InlineStrings v1.4.0
  [3587e190] + InverseFunctions v0.1.13
  [92d709cd] + IrrationalConstants v0.2.2
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [692b3bcd] + JLLWrappers v1.5.0
  [90980105] + KiteUtils v0.6.4
  [d3d80556] + LineSearches v7.2.0
  [2ab3a3ac] + LogExpFunctions v0.3.27
  [e6f89c97] + LoggingExtras v1.0.3
  [1914dd2f] + MacroTools v0.5.13
  [78c3b35d] + Mocking v0.7.7
  [d41bc354] + NLSolversBase v7.8.3
  [2774e3e8] + NLsolve v4.5.1
  [77ba4419] + NaNMath v1.0.2
  [510215fc] + Observables v0.5.5
  [bac558e1] + OrderedCollections v1.6.3
  [d96e819e] + Parameters v0.12.3
  [69de0a69] + Parsers v2.8.1
  [2dfb63ee] + PooledArrays v1.4.3
  [aea7be01] + PrecompileTools v1.2.1
  [21216c6a] + Preferences v1.4.3
  [94ee1d12] + Quaternions v0.7.6
  [c1ae055f] + RealDot v0.1.0
  [3cdcf5f2] + RecipesBase v1.3.4
  [731186ca] + RecursiveArrayTools v3.13.0
  [189a3867] + Reexport v1.2.2
  [ae029012] + Requires v1.3.0
  [6038ab10] + Rotations v1.7.0
  [7e49a35a] + RuntimeGeneratedFunctions v0.5.12
  [6c6a2e73] + Scratch v1.2.1
  [91c51154] + SentinelArrays v1.4.1
  [efcf1570] + Setfield v1.1.1
  [276daf66] + SpecialFunctions v2.3.1
  [aedffcd0] + Static v0.8.10
  [0d7ed370] + StaticArrayInterface v1.5.0
  [90137ffa] + StaticArrays v1.9.3
  [1e83bf80] + StaticArraysCore v1.4.2
  [82ae8749] + StatsAPI v1.7.0
  [69024149] + StringEncodings v0.3.7
  [09ab397b] + StructArrays v0.6.18
  [856f2bd8] + StructTypes v1.10.0
  [2efcf032] + SymbolicIndexingInterface v0.3.15
  [dc5dba14] + TZJData v1.1.0+2023d
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.11.1
  [1e6cf692] + TestEnv v1.101.1
  [f269a46b] + TimeZones v1.14.0
  [21f18d07] + Timers v0.1.5
  [3bb67fe8] + TranscodingStreams v0.10.7
  [3a884ed6] + UnPack v1.0.2
  [ea10d353] + WeakRefStrings v1.4.2
  [7dcfa46b] + WinchModels v0.2.1
  [76eceee3] + WorkerUtilities v1.6.1
  [ddb6d928] + YAML v0.4.9
  [94ce4f54] + Libiconv_jll v1.17.0+0
  [5ced341a] + Lz4_jll v1.9.4+0
  [efe28fd5] + OpenSpecFun_jll v0.5.5+0
  [3161d3a3] + Zstd_jll v1.5.6+0
  [0dad84c5] + ArgTools v1.1.1
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [8ba89e20] + Distributed
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching
  [9fa8497b] + Future
  [b77e0a4c] + InteractiveUtils
  [4af54fe1] + LazyArtifacts
  [b27032c2] + LibCURL v0.6.4
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [a63ad114] + Mmap
  [ca575930] + NetworkOptions v1.2.0
  [44cfe95a] + Pkg v1.10.0
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays v1.10.0
  [10745b16] + Statistics v1.10.0
  [4607b0f0] + SuiteSparse
  [fa267f1f] + TOML v1.0.3
  [a4e569a6] + Tar v1.10.0
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [e66e0078] + CompilerSupportLibraries_jll v1.1.0+0
  [deac9b47] + LibCURL_jll v8.4.0+0
  [e37daf67] + LibGit2_jll v1.6.4+0
  [29816b5a] + LibSSH2_jll v1.11.0+1
  [c8ffd9c3] + MbedTLS_jll v2.28.2+1
  [14a3606d] + MozillaCACerts_jll v2023.1.10
  [4536629a] + OpenBLAS_jll v0.3.23+4
  [05823500] + OpenLibm_jll v0.8.1+2
  [bea87d4a] + SuiteSparse_jll v7.2.1+1
  [83775a58] + Zlib_jll v1.2.13+1
  [8e850b90] + libblastrampoline_jll v5.8.0+1
  [8e850ede] + nghttp2_jll v1.52.0+1
  [3f19e933] + p7zip_jll v17.4.0+2
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/repos/KiteControllers.jl/Project.toml`
  No Changes to `~/repos/KiteControllers.jl/Manifest.toml`
  No Changes to `~/repos/KiteControllers.jl/Project.toml`
  No Changes to `~/repos/KiteControllers.jl/Manifest.toml`
  No Changes to `/tmp/jl_36kQVY/Project.toml`
  No Changes to `/tmp/jl_36kQVY/Manifest.toml`
[ Info: Loading packages ...
ERROR: LoadError: InitError: could not load library "/home/ufechner/.julia/artifacts/648a32a349aac06f19b6bfed47f0b822b4ef28c3/lib/libgio-2.0.so"
/home/ufechner/.julia/artifacts/648a32a349aac06f19b6bfed47f0b822b4ef28c3/lib/libgobject-2.0.so.0: undefined symbol: g_dir_unref
Stacktrace:
  [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
    @ Base.Libc.Libdl ./libdl.jl:117
  [2] dlopen(s::String, flags::UInt32)
    @ Base.Libc.Libdl ./libdl.jl:116
  [3] macro expansion
    @ ~/.julia/packages/JLLWrappers/pG9bm/src/products/library_generators.jl:63 [inlined]
  [4] __init__()
    @ Glib_jll ~/.julia/packages/Glib_jll/ac15p/src/wrappers/x86_64-linux-gnu.jl:18
  [5] run_module_init(mod::Module, i::Int64)
    @ Base ./loading.jl:1134
  [6] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1122
  [7] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
    @ Base ./loading.jl:1067
  [8] _tryrequire_from_serialized(modkey::Base.PkgId, path::String, ocachepath::String, sourcepath::String, depmods::Vector{Any})
    @ Base ./loading.jl:1481
  [9] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
    @ Base ./loading.jl:1574
 [10] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:1938
 [11] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1812
 [12] #invoke_in_world#3
    @ ./essentials.jl:926 [inlined]
 [13] invoke_in_world
    @ ./essentials.jl:923 [inlined]
 [14] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1803
 [15] macro expansion
    @ ./loading.jl:1790 [inlined]
 [16] macro expansion
    @ ./lock.jl:267 [inlined]
 [17] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1753
 [18] #invoke_in_world#3
    @ ./essentials.jl:926 [inlined]
 [19] invoke_in_world
    @ ./essentials.jl:923 [inlined]
 [20] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1746
 [21] include(fname::String)
    @ Base.MainInclude ./client.jl:489
 [22] top-level scope
    @ none:1
during initialization of module Glib_jll
in expression starting at /home/ufechner/repos/KiteControllers.jl/test/create_sys_image.jl:9

real	0m12,964s
user	0m11,507s
sys	0m2,802s

on Ubuntu 22.04.

Any idea?

I deleted my .julia folder and re-run the script create_sys_image. Now it worked.

1 Like