Running Fleximage on Ruby 1.9, got error
The error was something like:
-- C level backtrace information ------------------------------------------- 0x10010cd8d 0 libruby.dylib 0x000000010010cd8d rb_vm_bugreport + 77 0x10002b184 1 libruby.dylib 0x000000010002b184 report_bug + 260 0x10002b318 2 libruby.dylib 0x000000010002b318 rb_bug + 200 0x1000b7124 3 libruby.dylib 0x00000001000b7124 sigsegv + 132 0x7fff8151514a 4 libSystem.B.dylib 0x00007fff8151514a _sigtramp + 26 0x5 5 ??? 0x0000000000000005 0x0 + 5 0x103abcaf5 6 libMagickCore.2.dylib 0x0000000103abcaf5 AcquirePixelCache + 309 0x103b664e6 7 libMagickCore.2.dylib 0x0000000103b664e6 AcquireImage + 358 0x103b66fc2 8 libMagickCore.2.dylib 0x0000000103b66fc2 SetImageInfo + 466 0x103ae5ccd 9 libMagickCore.2.dylib 0x0000000103ae5ccd ReadImage + 173 0x101f957ff 10 RMagick2.bundle 0x0000000101f957ff rd_image + 339 0x101f9566f 11 RMagick2.bundle 0x0000000101f9566f Image_read + 36
Any idea what could be wrong? I am using RVM (Ruby Version Manager http://rvm.beginrescueend.com/) and the one on Ruby version 1.8.7 works nicely.
Thanks for such awesome gem!
The topmost of the error was: /usr/local/lib/ruby/gems/1.9.1/gems/fleximage-1.0.4/lib/fleximage/model.rb:340: [BUG] Segmentation fault ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10.0.0]
-- control frame ---------- c:0060 p:---- s:0295 b:0295 l:000294 d:000294 CFUNC :read c:0059 p:0060 s:0291 b:0291 l:000290 d:000290 METHOD /usr/local/lib/ruby/gems/1.9.1/gems/fleximage-1.0.4/lib/fleximage/model.rb:340 c:0058 p:0084 s:0285 b:0285 l:000275 d:000284 BLOCK /usr/local/
Want to get reputation for answering this? see http://stackoverflow.com/questions/2690035/fleximage-gem-on-ruby-1-9
I have no idea what this is, but would gladly accept a patch :)
I have the same issue. Latest gi pull moves the error to model.rb: line 514, which doesn't make much sense. $ ruby -v ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10]
It might have something to do with 'file_path', and imagemagick/rmagick.
Check this post