jywarren / mapmill

A Hot-or-Not styled crowdsourcing engine for sorting raw map imagery
http://mapmill.org
21 stars 0 forks source link

'Empty input file' error #8

Closed harry-wood closed 9 years ago

harry-wood commented 11 years ago

On mapmill.org this error crops up every now again. I guess 'Empty input file' is a problem.

MiniMagick::Error in MapperController#index

Command ("identify -ping /tmp/mini_magick20121105-15328-1ga1ogj-0.JPG") failed: {:output=>"identify: Empty input file `/tmp/mini_magick20121105-15328-1ga1ogj-0.JPG' @ error/jpeg.c/EmitMessage/233.\n", :status_code=>1} RAILS_ROOT: /media/earth/sites/mapmill.org

Application Trace | Framework Trace | Full Trace /media/earth/sites/mapmill.org/vendor/gems/mini_magick-3.2.1/lib/mini_magick.rb:392:in run' /media/earth/sites/mapmill.org/vendor/gems/mini_magick-3.2.1/lib/mini_magick.rb:374:inrun_command' /media/earth/sites/mapmill.org/vendor/gems/mini_magick-3.2.1/lib/mini_magick.rb:178:in valid?' /media/earth/sites/mapmill.org/vendor/gems/mini_magick-3.2.1/lib/mini_magick.rb:143:increate' /media/earth/sites/mapmill.org/vendor/gems/mini_magick-3.2.1/lib/mini_magick.rb:53:in read' /media/earth/sites/mapmill.org/vendor/gems/mini_magick-3.2.1/lib/mini_magick.rb:114:inopen' /media/earth/sites/mapmill.org/vendor/gems/mini_magick-3.2.1/lib/mini_magick.rb:113:in open' /media/earth/sites/mapmill.org/app/models/image.rb:40:inthumb' /media/earth/sites/mapmill.org/app/controllers/mapper_controller.rb:36:in `index'

jywarren commented 11 years ago

odd... thanks for the report -- is it consistent for each image, or goes away upon refresh of the page?

On Mon, Nov 5, 2012 at 7:12 PM, harry-wood notifications@github.com wrote:

On mapmill.org this error crops up every now again. I guess 'Empty input file' is a problem.

MiniMagick::Error in MapperController#index

Command ("identify -ping /tmp/mini_magick20121105-15328-1ga1ogj-0.JPG") failed: {:output=>"identify: Empty input file `/tmp/mini_magick20121105-15328-1ga1ogj-0.JPG' @ error/jpeg.c/EmitMessage/233.\n", :status_code=>1} RAILS_ROOT: /media/earth/sites/mapmill.org

Application Trace | Framework Trace | Full Trace /media/earth/sites/ mapmill.org/vendor/gems/mini_magick-3.2.1/lib/mini_magick.rb:392:in run' /media/earth/sites/ mapmill.org/vendor/gems/mini_magick-3.2.1/lib/mini_magick.rb:374:in run_command' /media/earth/sites/ mapmill.org/vendor/gems/mini_magick-3.2.1/lib/mini_magick.rb:178:in valid?' /media/earth/sites/ mapmill.org/vendor/gems/mini_magick-3.2.1/lib/mini_magick.rb:143:increate' /media/earth/sites/ mapmill.org/vendor/gems/mini_magick-3.2.1/lib/mini_magick.rb:53:in read' /media/earth/sites/ mapmill.org/vendor/gems/mini_magick-3.2.1/lib/mini_magick.rb:114:inopen' /media/earth/sites/ mapmill.org/vendor/gems/mini_magick-3.2.1/lib/mini_magick.rb:113:in open' /media/earth/sites/mapmill.org/app/models/image.rb:40:inthumb' /media/earth/sites/mapmill.org/app/controllers/mapper_controller.rb:36:in`index'

— Reply to this email directly or view it on GitHubhttps://github.com/jywarren/mapmill/issues/8.

harry-wood commented 11 years ago

yes it goes away on refresh.

You not seeing the same error? I only have to sit and classify five or six images and it comes with this.

jywarren commented 11 years ago

Hmm, what site are you sorting? I wonder if "mini_magick20121105-15328-1ga1ogj-0.JPG" is a clue that someone else is viewing that and somehow the temp file is being deleted as 2 thumbnails are generated at the same time?

Does it ever occur a second time on a given page?

jywarren commented 9 years ago

closing due to MapMill 2: https://github.com/publiclab/mapmill