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:inexecute’
[PROJECT_ROOT]/vendor/plugins/htmldoc-0.2.0/lib/htmldoc.rb:154:in
generate' [PROJECT_ROOT]/app/controllers/application_controller.rb:194:inrender_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:incall’
[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:incall’
[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:incall’
[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:incall’
[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:incall’
[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:incall’
[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:inprocess_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:instart_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:insafe_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:insend
[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:instart_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:instart’
[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:inlookup_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:insynchronize’
[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:inspawn_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:inhandle_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:inmain_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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs