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

Cairo segfaults on macOS - possibly Homebrew-related? #253

cormullion opened this issue Mar 17, 2019 · 2 comments


Copy link

commented Mar 17, 2019

(When opening an issue, please ping @staticfloat.)

Cairo has been segfaulting on macOS/Travis, since about March 7th.

Eg :

 Building Cairo ───────────→ `~/.julia/packages/Cairo/CXPG1/deps/build.log`
┌ Error: Error building `Cairo`: 
│ signal (11): Segmentation fault: 11
│ in expression starting at /Users/travis/.julia/packages/Cairo/CXPG1/deps/build.jl:165
│ _platform_strcmp at /usr/lib/system/libsystem_platform.dylib (unknown line)
│ Allocations: 17951539 (Pool: 17948772; Big: 2767); GC: 39
└ @ Pkg.Operations /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1097

There's a suggestion (JuliaGraphics/Cairo.jl#271 (comment)) that this is probably a brew-related error. (Presumably because the same version of Cairo works on all Linux...).

Elliot, I know you're not working in this area so much these days... Have you found a successor? :) Or do you have any tips on how to tackle it?


This comment has been minimized.

Copy link

commented Apr 3, 2019

Same problem on My Mac (Mojave) occurs even the latest version of Homebrew.jl

   _       _ _(_)_     |  Documentation:
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.1.0 (2019-01-21)
 _/ |\__'_|_|_|\__'_|  |  Official release
|__/                   |

(v1.1) pkg> st

    Status `~/.julia/environments/v1.1/Project.toml`
  [159f3aea] Cairo v0.5.6+ #master (
  [7876af07] Example v0.5.1
  [28b8d3ca] GR v0.39.0
  [4c0ca9eb] Gtk v0.16.5
  [d9be37ee] Homebrew v0.6.4 #master (
  [7073ff75] IJulia v1.18.0
  [6218d12a] ImageMagick v0.7.1
  [bc367c6b] ImageMetadata v0.6.1
  [86fae568] ImageView v0.8.2
  [916415d5] Images v0.17.3
  [9b87118b] PackageCompiler v0.6.3
  [58dd65bb] Plotly v0.2.0
  [91a5bcdd] Plots v0.24.0
  [438e738f] PyCall v1.91.1
  [d330b81b] PyPlot v2.8.0
  [295af30f] Revise v2.0.5
  [24249f21] SymPy v0.9.0
  [5e47fb64] TestImages v0.4.1
  [b8865327] UnicodePlots v1.1.0

julia> using HomeBrew
ERROR: ArgumentError: Package HomeBrew not found in current path:
- Run `import Pkg; Pkg.add("HomeBrew")` to install the HomeBrew package.

 [1] require(::Module, ::Symbol) at /Applications/

julia> using Homebrew

julia> Homebrew.osx_version_string()

julia> versioninfo()
Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i5-8210Y CPU @ 1.60GHz
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)

This comment has been minimized.

Copy link

commented Apr 3, 2019

@terasakisatoshi Current thinking (JuliaPackaging/BinDeps.jl#397) is that this is a problem with the libraries loaded by Homebrew/Cairo (pango, glib, etc.) so there might be a manual workaround (downloading libraries separately). You could wait until it's fixed, but I don't know if anyone's working on it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.