Topic: RMagick segmentation fault on Image.new

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

f = Image.new(100,100) { self.background_color = "red" }
f.write('tmp/red.gif')

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 Image.new 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 http://www.imagemagick.org
Built for ruby 1.9.2
Web page: http://rmagick.rubyforge.org
Email: rmagick@rubyforge.org

Grateful for any suggestions.

Thanks,
Bill

Re: RMagick segmentation fault on Image.new

I did find the solution. http://stackoverflow.com/questions/2838 … tion-fault