views:

93

answers:

0

I installed imagemagick success,

development]# convert -version Version: ImageMagick 6.6.3-4 2010-08-11 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC Features: OpenMP

and rmagick 2.13.1 success too. and I test with such script.

require 'rubygems' require 'RMagick'

Magick::Image.new(110, 30){self.background_color = 'white'}.write('/var/www/rails/development/public/test.jpg')

and the test.jpg generated success .

but on my app, I use simpleCaptcha (base on rmagick) to generate a captcha. then I found such errors:

Magick::ImageMagickError (Postscript delegate failed /tmp/magick-XXA7JtQ8': @ error/ps.c/ReadPSImage/779:(null)'): passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb:92:in process_request' passenger (2.2.15) lib/phusion_passenger/abstract_request_handler.rb:207:inmain_loop' passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:441:in start_request_handler' passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:190:inspawn_application!' passenger (2.2.15) lib/phusion_passenger/utils.rb:252:in safe_fork' passenger (2.2.15) lib/phusion_passenger/railz/application_spawner.rb:153:inspawn_application!' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:263:in spawn_rails_application' passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:80:insynchronize' passenger (2.2.15) lib/phusion_passenger/abstract_server_collection.rb:79:in synchronize' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:246:inspawn_rails_application' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:145:in spawn_application' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:inhandle_spawn_application' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in __send__' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:inmain_loop' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

and accoring to nginx. I got such errors:

CRIT: rangecheck in .setuserparams Operand stack: --nostringval-- --nostringval-- --nostringval-- CRIT: rangecheck in .setuserparams Operand stack: --nostringval-- --nostringval-- --nostringval-- CRIT: rangecheck in .setuserparams Operand stack: --nostringval-- --nostringval-- --nostringval-- CRIT: rangecheck in .setuserparams Operand stack: --nostringval-- --nostringval-- --nostringval-- CRIT: rangecheck in .setuserparams Operand stack: --nostringval-- --nostringval-- --nostringval-- CRIT: rangecheck in .setuserparams Operand stack: --nostringval-- --nostringval-- --nostringval--

anybody can help me?