Well, maybe not fix but tip how to find some clues what next.
When You encounter strange errors like terminate called after throwing an instance of 'int'
this is probably something with roots down into Ruby executable or some binary library (and ruby binary dump – ruby.core
file in current directory). AFAIK this is error message from GCC, that means something wrong happened on low level – low from Ruby perspective.
It is not very informative message, so to get know what is really happening usually is enough to enable debug:
$DEBUG=true
In You Ruby application. With debugging enabled, all exceptions (event those catched) are dumped to STDERR, so usually last one will give some hint, at least in which area is problem.
For me it was:
Exception `RuntimeError' at test/functional/receiver_controller_test.rb:9 - FreeImage exception for type JPEG: JPEG parameter struct mismatch: library thinks size is 464, caller expects 428 DIRECTORY/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb:14: [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i386-freebsd6]
No, I don’t know yet what is really happening, I hope that ongoing FreeImage upgrade will do the trick.
Leave a Reply