davidanthoff / Electron.jl

Julia wrapper for Electron
Other
85 stars 19 forks source link

libgobject-2.0.so.0: cannot open shared object file #127

Open schlichtanders opened 4 months ago

schlichtanders commented 4 months ago

Just tried to install Electron.jl and it fails already on Application()

julia> using Electron

julia> app = Application()
/home/myhome/.julia/artifacts/cae80dc5ebd42950807d603cea93d970432b956d/electron: error while loading shared libraries: libgobject-2.0.so.0: cannot open shared object file: No such file or directory

It hangs now forever and does not come back to the julia REPL. When interrupted, I get the following stacktrace

^CERROR: InterruptException:
Stacktrace:
 [1] poptask(W::Base.IntrusiveLinkedListSynchronized{Task})
   @ Base ./task.jl:985
 [2] wait()
   @ Base ./task.jl:994
 [3] wait(c::Base.GenericCondition{Base.Threads.SpinLock}; first::Bool)
   @ Base ./condition.jl:130
 [4] wait
   @ ./condition.jl:125 [inlined]
 [5] accept(server::Sockets.PipeServer, client::Base.PipeEndpoint)
   @ Sockets ~/.julia/juliaup/julia-1.10.2+0.x64.linux.gnu/share/julia/stdlib/v1.10/Sockets/src/Sockets.jl:696
 [6] accept
   @ ~/.julia/juliaup/julia-1.10.2+0.x64.linux.gnu/share/julia/stdlib/v1.10/Sockets/src/PipeServer.jl:29 [inlined]
 [7] Application(; mainjs::String, additional_electron_args::Vector{String})
   @ Electron ~/.julia/packages/Electron/LXyZ0/src/Electron.jl:163
 [8] Application()
   @ Electron ~/.julia/packages/Electron/LXyZ0/src/Electron.jl:133
 [9] top-level scope
   @ REPL[2]:1

I am running on a relatively specific linux - nixos - however haven't experienced any issue so far with julia artifacts. Hence I am surprised by this behaviour and don't know how to fix it.

schlichtanders commented 4 months ago

@davidanthoff do you know why this shared object file is not part of the artifact?

it would be great if Electron.jl is self-contained (the README gave me the impression that this is a goal of Electron.jl)