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

Failing to precompile on Mac OS X #62

Closed
MichielStock opened this issue Apr 27, 2020 · 6 comments
Closed

Failing to precompile on Mac OS X #62

MichielStock opened this issue Apr 27, 2020 · 6 comments

Comments

@MichielStock
Copy link

Whenever I use QuartzImageIO (for loading images), I get an error.

[ Info: Precompiling QuartzImageIO [dca85d43-d64c-5e67-8c65-017450d5d020]
ERROR: LoadError: UndefVarError: RGBX not defined
Stacktrace:
 [1] top-level scope at /Users/michielstock/.julia/packages/QuartzImageIO/eZqJD/src/QuartzImageIO.jl:353
 [2] include at ./boot.jl:328 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1105
 [4] include(::Module, ::String) at ./Base.jl:31
 [5] top-level scope at none:2
 [6] eval at ./boot.jl:330 [inlined]
 [7] eval(::Expr) at ./client.jl:425
 [8] top-level scope at ./none:3
in expression starting at /Users/michielstock/.julia/packages/QuartzImageIO/eZqJD/src/QuartzImageIO.jl:353
ERROR: Failed to precompile QuartzImageIO [dca85d43-d64c-5e67-8c65-017450d5d020] to /Users/michielstock/.julia/compiled/v1.3/QuartzImageIO/n8vDP_mZWSB.ji.
Stacktrace:
 [1] compilecache(::Base.PkgId, ::String) at ./loading.jl:1283
 [2] _require(::Base.PkgId) at ./loading.jl:1024
 [3] require(::Base.PkgId) at ./loading.jl:922
 [4] require(::Module, ::Symbol) at ./loading.jl:917

Though it still loads the image, it goes really slowly. This problem also occurs for my students apparently, when there is something out of bounds in a recipe.

@timholy
Copy link
Member

timholy commented Apr 27, 2020

Weird. As far as I can tell, this error shouldn't be possible. What do st QuartzImageIO and, if necessary, st ColorTypes give you? Issue is that QuartzImageIO 0.7 depends on ColorTypes 0.9 which defines RGBX, which is why the error doesn't seem to make sense.

Maybe try deving QuartzImageIO and bumping its Project.toml compat for ColorTypes to 0.9, 0.10?

@MichielStock
Copy link
Author

I now added ImageIO and this seemed to have solved the problem for now. I will try your approach when the problem returns. Thanks.

@timholy
Copy link
Member

timholy commented Apr 30, 2020

I have a guess: JuliaLang/julia#35663

@timholy
Copy link
Member

timholy commented Apr 30, 2020

I'll close this since I don't think there's anything for QuartzImageIO to fix, the issue lies elsewhere.

@timholy timholy closed this as completed Apr 30, 2020
@timholy
Copy link
Member

timholy commented Apr 30, 2020

(If you hit this, try updating your packages and possibly deleting Manifest files from any packages that you have devved.)

@johnnychen94
Copy link
Member

johnnychen94 commented Apr 30, 2020

It works well here (now) on both ColorTypes v"0.9" and v"0.10".

julia> versioninfo()
Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 8

(@v1.4) pkg> st QuartzImageIO Colors ColorTypes
Status `~/.julia/environments/v1.4/Project.toml`
  [3da002f7] ColorTypes v0.9.1
  [5ae59095] Colors v0.11.2
  [dca85d43] QuartzImageIO v0.7.1

julia> using QuartzImageIO
[ Info: Precompiling QuartzImageIO [dca85d43-d64c-5e67-8c65-017450d5d020]
julia> versioninfo()
Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 8
  JULIA_PKG_SERVER = kr.pkg.julialang.org
  JULIA_DEPOT_PATH = depot

(@v1.4) pkg> st
Status `~/depot/environments/v1.4/Project.toml`
  [3da002f7] ColorTypes v0.10.2
  [5ae59095] Colors v0.12.0
  [dca85d43] QuartzImageIO v0.7.1

julia> using QuartzImageIO
[ Info: Precompiling QuartzImageIO [dca85d43-d64c-5e67-8c65-017450d5d020]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants