JuliaGraphics / Cairo.jl

Bindings to the Cairo graphics library.
Other
87 stars 57 forks source link

Tests failing on OSX High sierra #200

Open sglyon opened 7 years ago

sglyon commented 7 years ago

Unfortunately I don't have the expertise to debug this particular issue, but I will bring it up here in case anyone knows what might be going wrong.

julia> Pkg.test("Cairo")
INFO: Computing test dependencies for Cairo...
INFO: No packages to install, update or remove
INFO: Testing Cairo
Test Summary:   | Pass  Total
Image Surface   |    7      7
Test Summary:   | Pass  Total
Conversions     |    4      4
Test Summary:   | Pass  Total
TexLexer        |    1      1
Test Summary:   | Pass  Total
Samples         |   31     31
Test Summary:   | Pass  Total
Bitmap Painting |    6      6
Vector Surfaces: Test Failed
  Expression: length(str_data) > 3000 && str_data[1:10] == [0x25, 0x21, 0x43, 0x61, 0x69, 0x72, 0x6f, 0x53, 0x63, 0x72]
Stacktrace:
 [1] macro expansion at /Users/sglyon/.julia/v0.6/Cairo/test/runtests.jl:223 [inlined]
 [2] macro expansion at ./test.jl:860 [inlined]
 [3] anonymous at ./<missing>:?
Vector Surfaces: Test Failed
  Expression: length(str_data) > 3000 && str_data[1:10] == [0x25, 0x21, 0x43, 0x61, 0x69, 0x72, 0x6f, 0x53, 0x63, 0x72]
Stacktrace:
 [1] macro expansion at /Users/sglyon/.julia/v0.6/Cairo/test/runtests.jl:251 [inlined]
 [2] macro expansion at ./test.jl:860 [inlined]
 [3] anonymous at ./<missing>:?
Test Summary:   | Pass  Fail  Total
Vector Surfaces |   13     2     15
ERROR: LoadError: Some tests did not pass: 13 passed, 2 failed, 0 errored, 0 broken.
while loading /Users/sglyon/.julia/v0.6/Cairo/test/runtests.jl, in expression starting on line 136
==============================================================================================================[ ERROR: Cairo ]==============================================================================================================

failed process: Process(`/Users/sglyon/src/julia/usr/bin/julia -Cnative -J/Users/sglyon/src/julia/usr/lib/julia/sys.dylib --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes /Users/sglyon/.julia/v0.6/Cairo/test/runtests.jl`, ProcessExited(1)) [1]

============================================================================================================================================================================================================================================
INFO: No packages to install, update or remove
ERROR: Cairo had test errors

And some info about my installation:

julia> Pkg.installed("Cairo")
v"0.3.1"

julia> versioninfo()
Julia Version 0.6.1-pre.1
Commit 4b967d4a9d (2017-08-21 21:11 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin16.7.0)
  CPU: Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, skylake)
lobingera commented 7 years ago

Unfortunately i have, but i don't have access to a OSX High sierra ...

The failing test belongs to a quite seldom used output format, the cairo script surface which is mostly used in development for regresssion testing, but would be actually usable as serialisation format (counterpart is here: https://github.com/lobingera/CairoScript.jl)

The test tests length and header of a created file (isfile seems to have passed). Can you run this manually?

        output_file_name = "a.cs"
        surf = CairoScriptSurface(output_file_name,512,512)
        hdraw(surf,64,8,4) 
        destroy(surf)

and attach a.cs here? And post Cairo.libcairo_version

lobingera commented 7 years ago

@sglyon Any problems providing the data?

sglyon commented 7 years ago

After running those 4 commands the file a.cs has zero bytes

julia> Cairo.libcairo_version
v"1.14.10"
lobingera commented 7 years ago

Hmm. i guess libcairo is installed via Homebrew.jl ?

sglyon commented 7 years ago

Yep, that's right