Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem while precompiling Javis #497

Open
Smettus opened this issue Dec 27, 2022 · 2 comments
Open

Problem while precompiling Javis #497

Smettus opened this issue Dec 27, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@Smettus
Copy link

Smettus commented Dec 27, 2022

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 am running this on:

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)```

With the following, up-to-date Javis version:
`Javis v0.9.0`

Thanks again for all the help!
(cfr. https://discourse.julialang.org/t/problem-while-precompiling-javis/92055: @TheCedarPrince, @Wikunia, @Sov-trotter)
@Smettus Smettus added the bug Something isn't working label Dec 27, 2022
@Sov-trotter
Copy link
Member

I'll try master on Windows and let you know here.

@Sov-trotter
Copy link
Member

Sorry for the late reply. I faced a similar issue, but with julia not being able to find the Cairo artifact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants