JuliaImages / ImageView.jl

Interactive display of images and movies
MIT License
136 stars 32 forks source link

don't depend on Images #252

Closed johnnychen94 closed 2 years ago

johnnychen94 commented 3 years ago

https://github.com/JuliaImages/ImageView.jl/pull/249#issuecomment-898894788

Unclear yet what's the potential issues

digital-carver commented 2 years ago

I guess this is related to this issue:

ImageView [86fae568-95e7-573e-a6b2-d8a6b900c9ef]

Failed to precompile ImageView [86fae568-95e7-573e-a6b2-d8a6b900c9ef] to /home/Sundar/.julia/compiled/v1.6/ImageView/jl_o8HEOz.
WARNING: Method definition convert(Type{Array{Cdest<:(ColorTypes.Colorant{T, N} where N where T), n}}, AxisArrays.AxisArray{Csrc<:(ColorTypes.Colorant{T, N} where N where T), n, D, Ax} where Ax where D) where {Cdest<:(ColorTypes.Colorant{T, N} where N where T), n, Csrc<:(ColorTypes.Colorant{T, N} where N where T)} in module ImageAxes at /home/Sundar/.julia/packages/ImageAxes/fv2hm/src/ImageAxes.jl:185 overwritten in module ImageAxes on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition convert(Type{Array{C<:(ColorTypes.Colorant{T, N} where N where T), n}}, AxisArrays.AxisArray{C<:(ColorTypes.Colorant{T, N} where N where T), n, D, Ax} where Ax where D) where {C<:(ColorTypes.Colorant{T, N} where N where T), n} in module ImageAxes at /home/Sundar/.julia/packages/ImageAxes/fv2hm/src/ImageAxes.jl:181 overwritten in module ImageAxes on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition coords_spatial(AxisArrays.AxisArray{T, N, D, Ax} where Ax where D) where {T, N} in module ImageAxes at /home/Sundar/.julia/packages/ImageAxes/fv2hm/src/ImageAxes.jl:160 overwritten in module ImageAxes on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

[...many more methods with same WARNING...]

WARNING: Method definition _summary(Any, AxisArrays.AxisArray{T<:Union{AbstractFloat, ColorTypes.Colorant{T, N} where N where T, FixedPointNumbers.FixedPoint{T, f} where f where T<:Integer}, N, D, Ax} where Ax where D) where {T<:Union{AbstractFloat, ColorTypes.Colorant{T, N} where N where T, FixedPointNumbers.FixedPoint{T, f} where f where T<:Integer}, N} in module ImageAxes at /home/Sundar/.julia/packages/ImageAxes/fv2hm/src/ImageAxes.jl:433 overwritten in module ImageAxes on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

WARNING: Method definition (::Type{Base.PermutedDimsArrays.PermutedDimsArray{T, N, perm, iperm, AA} where AA<:(AbstractArray{T, N} where N where T) where iperm where perm where N where T})(AxisArrays.AxisArray{T, N, D, Ax} where Ax where D where N where T, Any) in module ImageAxes at /home/Sundar/.julia/packages/ImageAxes/fv2hm/src/ImageAxes.jl:115 overwritten in module ImageAxes on the same line (check for duplicate calls to `include`).
  ** incremental compilation may be fatally broken for this module **

┌ Warning: Replacing module `ImageAxes`
└ @ Base loading.jl:959
WARNING: both ImageMetadata and ImageAxes export "arraydata"; uses of it in module Images must be qualified
ERROR: LoadError: UndefVarError: arraydata not defined
Stacktrace:
 [1] top-level scope
   @ ~/.julia/packages/Images/g4e1T/src/Images.jl:73
 [2] top-level scope
   @ ~/.julia/packages/Images/g4e1T/src/Images.jl:74
 [3] include
   @ ./Base.jl:386 [inlined]
 [4] 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::String)
   @ Base ./loading.jl:1235
 [5] top-level scope
   @ none:1
 [6] eval
   @ ./boot.jl:360 [inlined]
 [7] eval(x::Expr)
   @ Base.MainInclude ./client.jl:446
 [8] top-level scope
   @ none:1
in expression starting at /home/Sundar/.julia/packages/Images/g4e1T/src/Images.jl:3
ERROR: LoadError: Failed to precompile Images [916415d5-f1e6-5110-898d-aaa5f9f070e0] to /home/Sundar/.julia/compiled/v1.6/Images/jl_6GoQKt.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:33
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IOContext{Base.PipeEndpoint}, internal_stdout::IOContext{IOStream}, ignore_loaded_modules::Bool)
    @ Base ./loading.jl:1385
  [3] compilecache(pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1329
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1043
  [5] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:936
  [6] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:923
  [7] include
    @ ./Base.jl:386 [inlined]
  [8] 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:1235
  [9] top-level scope
    @ none:1
 [10] eval
    @ ./boot.jl:360 [inlined]
 [11] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [12] top-level scope
    @ none:1
in expression starting at /home/Sundar/.julia/packages/ImageView/GlhJK/src/ImageView.jl:1

Precompilation failed for both Images and ImageView, and an explicit Pkg.precompile() gave the above output. The problem started when I installed ImageView, and went away as soon as I removed it.

(Let me know if this isn't related to this issue, and I'll move it to a new issue instead.)