Sergey Radchev
2010-Mar-11 09:56 UTC
Rails & HTMLDoc - Error: Cannot allocate memory - htmldoc
Hi Guys, I''m converting HTML file by HTMLDoc and I''m getting the error below. Does anyone know how to solve this problem? HTML filesize: 7.5 MB Thanks, Error Message: -------------- Errno::ENOMEM: Cannot allocate memory - htmldoc --bodycolor white -- bodyfont Helvetica --bottom 1cm --footer ..1 --format pdf --header ... --headfootsize 2 --landscape --left 1cm --outfile /tmp/ htmldoc29179-0.temp --right 1cm --webpage /tmp/htmldoc29179-1.temp 2>&1 Where: ------ ccms/sign_in_sheet#show [PROJECT_ROOT]/vendor/plugins/htmldoc-0.2.0/lib/htmldoc.rb, line 179 [PROJECT_ROOT]/vendor/plugins/htmldoc-0.2.0/lib/htmldoc.rb:179:in `popen'' [PROJECT_ROOT]/vendor/plugins/htmldoc-0.2.0/lib/htmldoc.rb:179:in `execute'' [PROJECT_ROOT]/vendor/plugins/htmldoc-0.2.0/lib/htmldoc.rb:154:in `generate'' [PROJECT_ROOT]/app/controllers/application_controller.rb:194:in `render_string_to_pdf'' [PROJECT_ROOT]/app/controllers/ccms/sign_in_sheet_controller.rb:128 ...................................................... [PROJECT_ROOT]/vendor/rails/activerecord/lib/active_record/ query_cache.rb:9:in `cache'' [PROJECT_ROOT]/vendor/rails/activerecord/lib/active_record/ query_cache.rb:28:in `call'' [PROJECT_ROOT]/vendor/rails/activerecord/lib/active_record/ connection_adapters/abstract/connection_pool.rb:361:in `call'' [PROJECT_ROOT]/vendor/rails/actionpack/lib/action_controller/ string_coercion.rb:25:in `call'' [GEM_ROOT]/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'' [GEM_ROOT]/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in `call'' [PROJECT_ROOT]/vendor/rails/actionpack/lib/action_controller/ params_parser.rb:15:in `call'' [PROJECT_ROOT]/vendor/rails/actionpack/lib/action_controller/session/ cookie_store.rb:93:in `call'' [PROJECT_ROOT]/vendor/rails/actionpack/lib/action_controller/ failsafe.rb:26:in `call'' [GEM_ROOT]/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'' [GEM_ROOT]/gems/rack-1.0.1/lib/rack/lock.rb:11:in `synchronize'' [GEM_ROOT]/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'' [PROJECT_ROOT]/vendor/rails/actionpack/lib/action_controller/ dispatcher.rb:106:in `call'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/rack/ request_handler.rb:92:in `process_request'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/ abstract_request_handler.rb:207:in `main_loop'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/railz/ application_spawner.rb:400:in `start_request_handler'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/railz/ application_spawner.rb:351:in `handle_spawn_application'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/utils.rb:184:in `safe_fork'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/railz/ application_spawner.rb:349:in `handle_spawn_application'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/ abstract_server.rb:352:in `__send__'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/ abstract_server.rb:352:in `main_loop'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/ abstract_server.rb:196:in `start_synchronously'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/ abstract_server.rb:163:in `start'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/railz/ application_spawner.rb:209:in `start'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb: 262:in `spawn_rails_application'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/ abstract_server_collection.rb:126:in `lookup_or_add'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb: 256:in `spawn_rails_application'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/ abstract_server_collection.rb:80:in `synchronize'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/ abstract_server_collection.rb:79:in `synchronize'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb: 255:in `spawn_rails_application'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb: 154:in `spawn_application'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb: 287:in `handle_spawn_application'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/ abstract_server.rb:352:in `__send__'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/ abstract_server.rb:352:in `main_loop'' [GEM_ROOT]/gems/passenger-2.2.9/lib/phusion_passenger/ abstract_server.rb:196:in `start_synchronously'' [GEM_ROOT]/gems/passenger-2.2.9/bin/passenger-spawn-server:61 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.