jonmagic/pdf_archive — Issue #1: NoMethodError (undefined method `gsub' for nil:NilClass
Author: hjhart
Created: 2011-12-01 19:28:38+00:00
State: open

It seems that the process is not receive some data at while trying to process a file. The NilClass it's geting should be the result from some system output (line 19, image_magick_proccessor.rb). Am I missing some dependency?

result = `#{command.join(' ')}`

Partial stack track below:

11:08:26 worker.1 | /Users/james/.rvm/gems/ruby-1.9.2-p290@global/bin/rake: No such file or directory - gs -dNODISPLAY -q -sFile=/Users/james/Sites/pdf_archive/tmp/cache/4ed7d09344c6c3b634000001/20111201-1108-46645-2810/Filename-trying-to-find.PDF /Users/james/.rvm/gems/ruby-1.9.2-p290@pdf_archive/gems/grim-0.3.0/lib/pdf_info.ps
11:08:26 worker.1 | Job 4ed7d09344c6c3b634000003:ProcessPdf:[BSON::ObjectId('4ed7d09344c6c3b634000001')] failed
11:08:26 worker.1 |
11:08:26 worker.1 | NoMethodError (undefined method `gsub' for nil:NilClass):
11:08:26 worker.1 | /Users/james/.rvm/gems/ruby-1.9.2-p290@pdf_archive/gems/grim-0.3.0/lib/grim/image_magick_processor.rb:19:in `count'
11:08:26 worker.1 | /Users/james/.rvm/gems/ruby-1.9.2-p290@pdf_archive/gems/grim-0.3.0/lib/grim/pdf.rb:30:in `count'
11:08:26 worker.1 | /Users/james/Sites/pdf_archive/lib/process_pdf.rb:6:in `perform'
11:08:26 worker.1 | /Users/james/.rvm/gems/ruby-1.9.2-p290@pdf_archive/gems/qu-0.1.3/lib/qu/payload.rb:23:in `perform'
11:08:26 worker.1 | /Users/james/.rvm/gems/ruby-1.9.2-p290@pdf_archive/gems/qu-0.1.3/lib/qu/worker.rb:49:in `work'
11:08:26 worker.1 | /Users/james/.rvm/gems/ruby-1.9.2-p290@pdf_archive/gems/qu-0.1.3/lib/qu/worker.rb:57:in `block in start'