Topic: RMagick segmentation fault on

I have just installed RMagic and the ImageMagick libs  on a Mac. My test script is just:
require 'RMagick'
include Magick

f =,100) { self.background_color = "red" }

The script works fine as a ruby script, run from irb, run from rails console, but not form a method in a helper class.
It fails with "/Users/bnelson/rails_projects/demo_app/app/helpers/blast_graphic.rb:20: [BUG] Segmentation fault" when the method is called.

How could it work everywhere but in my helper class?

$ rails console
Loading development environment (Rails 3.0.9)
ruby-1.9.2-p290 :001 > puts Magick::Long_version
This is RMagick 2.13.1 ($Date: 2009/12/20 02:33:33 $) Copyright (C) 2009 by Timothy P. Hunter
Built with ImageMagick 6.7.3-1 2011-10-28 Q16
Built for ruby 1.9.2
Web page:

Grateful for any suggestions.


Re: RMagick segmentation fault on

I did find the solution. … tion-fault