Problem while precompiling Javis

For a project, I need my hands on a simple, yet effective SVG/other animation package. Javis, built on top of Luxor, seemed a viable option. However, while trying to install and precompile the package, I received the following error:

using Javis
[ Info: Precompiling Javis [78b212ba-a7f9-42d4-b726-60726080707e]
ERROR: LoadError: InitError: IOError: could not spawn `'<pathhere>\.julia\artifacts\57bd9311faafa3d8e73dfb991c2cb420f2c65ab9\bin\gdk-pixbuf-query-loaders.exe'`: unknown error (UNKNOWN)
Stacktrace:
  [1] _spawn_primitive(file::String, cmd::Cmd, stdio::Vector{Any})
    @ Base .\process.jl:100
  [2] #690
    @ .\process.jl:113 [inlined]
  [3] setup_stdios(f::Base.var"#690#691"{Cmd}, stdios::Vector{Any})
    @ Base .\process.jl:197
  [4] _spawn
    @ .\process.jl:112 [inlined]
  [5] open(cmds::Cmd, stdio::Base.DevNull; write::Bool, read::Bool)
    @ Base .\process.jl:371
  [6] open
    @ .\process.jl:362 [inlined]
  [7] open(cmds::Cmd, mode::String, stdio::Base.DevNull)
    @ Base .\process.jl:342
  [8] read(cmd::Cmd)
    @ Base .\process.jl:416
  [9] read(cmd::Cmd, #unused#::Type{String})
    @ Base .\process.jl:427
 [10] readchomp
    @ .\io.jl:926 [inlined]
 [11] (::Gtk.var"#324#333"{String})()
    @ Gtk <pathhere>\.julia\packages\Gtk\OyCvN\src\Gtk.jl:115
 [12] withenv(::Gtk.var"#324#333"{String}, ::Pair{String, String}, ::Vararg{Pair{String, String}})
    @ Base .\env.jl:172
 [13] (::Gtk.var"#323#332")(gpql::String)
    @ Gtk <pathhere>\.julia\packages\Gtk\OyCvN\src\Gtk.jl:114
 [14] (::JLLWrappers.var"#2#3"{Gtk.var"#323#332", String})()
    @ JLLWrappers <pathhere>\.julia\packages\JLLWrappers\QpMQW\src\runtime.jl:49
 [15] withenv(f::JLLWrappers.var"#2#3"{Gtk.var"#323#332", String}, keyvals::Pair{String, String})
    @ Base .\env.jl:172
 [16] withenv_executable_wrapper(f::Function, executable_path::String, PATH::String, LIBPATH::String, adjust_PATH::Bool, adjust_LIBPATH::Bool)
    @ JLLWrappers <pathhere>\.julia\packages\JLLWrappers\QpMQW\src\runtime.jl:48
 [17] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base .\essentials.jl:716
 [18] invokelatest(::Any, ::Any, ::Vararg{Any})
    @ Base .\essentials.jl:714
 [19] gdk_pixbuf_query_loaders(f::Function; adjust_PATH::Bool, adjust_LIBPATH::Bool)
    @ gdk_pixbuf_jll <pathhere>\.julia\packages\JLLWrappers\QpMQW\src\products\executable_generators.jl:21
 [20] gdk_pixbuf_query_loaders(f::Function)
    @ gdk_pixbuf_jll <pathhere>\.julia\packages\JLLWrappers\QpMQW\src\products\executable_generators.jl:21
 [21] __init__()
    @ Gtk <pathhere>\.julia\packages\Gtk\OyCvN\src\Gtk.jl:113
 [22] _include_from_serialized(path::String, depmods::Vector{Any})
    @ Base .\loading.jl:768
 [23] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
    @ Base .\loading.jl:854
 [24] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1097
 [25] require(uuidkey::Base.PkgId)
    @ Base .\loading.jl:1013
 [26] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:997
 [27] include
    @ .\Base.jl:418 [inlined]
 [28] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base .\loading.jl:1318
 [29] top-level scope
    @ none:1
 [30] eval
    @ .\boot.jl:373 [inlined]
 [31] eval(x::Expr)
    @ Base.MainInclude .\client.jl:453
 [32] top-level scope
    @ none:1
during initialization of module Gtk
in expression starting at <pathhere>\.julia\packages\Javis\UaLm7\src\Javis.jl:1
ERROR: Failed to precompile Javis [78b212ba-a7f9-42d4-b726-60726080707e] to <pathhere>\.julia\compiled\v1.7\Javis\jl_984C.tmp.
Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
   @ Base .\loading.jl:1466
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base .\loading.jl:1410
 [4] _require(pkg::Base.PkgId)
   @ Base .\loading.jl:1120
 [5] require(uuidkey::Base.PkgId)
   @ Base .\loading.jl:1013
 [6] require(into::Module, mod::Symbol)
   @ Base .\loading.jl:997

I already tried to reinstall the Gtk.jl package, the gdk_pixbuf_jll, and some other basic troubleshooting stuff. The ‘unknown error’ message, is not very helpful… Anyone knows how to fix this error? My versioninfo is the following:

Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, skylake)

Hi – co-creator of Javis here. Could you open an issue on the repo with this information? That GDK error looks rather nasty and I am curious if it could potentially be a Windows specific error although all our tests are currently passing for Windows usage. Sorry about that problem!

But yea, install GTK.jl wouldn’t fix this issue. It’s also odd as we had removed the JavisViewer I am pretty sure from the package. I’ll have to double check.

Also, welcome to the Julia community and so glad you are using Javis! :wave:

cc @Wikunia @arsh as well!

Hi, the other co-creator here :slight_smile:
Can you also check the Javis version that you’re using for us? Just to be sure that you installed the latest version of it.

You can check that with ] status.

Thanks a lot for responding! I find it immensely cool how helpful everybody is here. I will bring the issue to the Github repo. Thanks again!

1 Like