Cairo.jl / Luxor.jl alternatives (segfaults)


I would like to create a meme generator API for a Julia blog post - and I wanted to use Luxor.jl for loading an image and adding some text on top of it. However Cairo.jl segfaults upon installation. Are there any other libraries to easily implement this? Thanks!

signal (11): Segmentation fault: 11
│ in expression starting at /Users/adrian/.julia/packages/Cairo/CXPG1/deps/build.jl:165
│ _platform_strcmp at /usr/lib/system/libsystem_platform.dylib (unknown line)
│ Allocations: 20864208 (Pool: 20861005; Big: 3203); GC: 46

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) i7-6820HQ CPU @ 2.70GHz
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, skylake)
1 Like

Ha, yes, Cairo started segfaulting (on macOS) last week… You could try Compose,jl…


Thank you, I’ll give it a try.


Any idea when possible fix will come? I run into same problem trying to load VegaLite.

1 Like

Hi there! If you look at the latest issue at Cairo.jl (on GitHub) you’ll see that there’s been some crowd-sourced problem solving going on. You might be able to download a working version of the dodgy dylib and get Cairo working again.

That’s not to say that the problem is fixed, though. The possible work round might help for now.

1 Like

I was just struggling with the same Segmentation fault: 11 error while building Cairo, and this comment from Github solved it for me.

1 Like