Terminate called after throwing an instance of ‘int’

Published on Author Akhil Bansal1 Comment

Ever faced “terminate called after throwing an instance of ‘int’ ” error in RubyOnRails?
or
Specially on linux machine only not on windows.

Error occurred specially when dealing with some image handling, or with attachment_fu.

The cause of this error is image_science 1.1.3 . Add :processor => “Rmagick” to has_attachment options and get rid of this problem.

Enjoy!!!

One Response to Terminate called after throwing an instance of ‘int’

  1. That’s an uncaught C++ exception. I’m guessing that something in ImageMagick threw up. But as for why, I don’t know. A bug maybe? Try debugging it in gdb.

Leave a Reply

Your email address will not be published. Required fields are marked *