Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Warning: spawn EMFILE Use --force to continue. #14

Closed
johowie opened this Issue · 3 comments

2 participants

johowie Andi Smith
johowie

I am resizing a directory of 4000 images. I constantly get the following error:
"Warning: spawn EMFILE Use --force to continue."

I have tried the following tweaks to my system:

$ ulimit -n 10480
-bash: ulimit: open files: cannot modify limit: Operation not permitted

$ launchctl limit maxfiles 4096 4096
- doesnt seem to take effect

I have even tried to change the dependency in this task on 'fs' to 'graceful-fs' .
after installing graceful-fs via npm:

/*
 * grunt-imagemagick
 * https://github.com/icagstrout/grunt-imagemagick
  *
  * Copyright (c) 2012 Arne Strout
  * Licensed under the MIT license.
  */

 var grunt=require('grunt');
 //var fs=require('fs');
 var fs = require('graceful-fs');
 var path=require('path');

which had no effect either.

after three days of trying to get something automated for resizing all these images, I am completely lost.

I hope someone can shed some light on this problem

OS: OSX 10.9
node: v0.8.16
grunt: v0.4.1

my question on stack overflow: http://stackoverflow.com/questions/19850817/resizing-4000-images-using-a-grunt-plugin

Andi Smith
Owner

Have you tried separating the 4000 images in to multiple sub-tasks?

Andi Smith
Owner

Hi @johowie,

Are you still seeing this issue. Did you try separating in to multiple sub-tasks?

Please let me know if this is still a problem, otherwise I will close this issue with "won't fix".

Thanks,
Andi

Andi Smith
Owner

Closing due to no response and no other users reporting the issue. Please re-open if this affects you.

Andi Smith andismith closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.