Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another EPIPE error on resize #11

Open
cibulka opened this issue Sep 16, 2015 · 8 comments
Open

Another EPIPE error on resize #11

cibulka opened this issue Sep 16, 2015 · 8 comments

Comments

@cibulka
Copy link

cibulka commented Sep 16, 2015

Hello!

I'm getting another EPIPE error with both gulp-image-resize and gulp-gm. Console output is a little different from #8, so I'm opening a new issue. Here it goes:

stream.js:94
      throw er; // Unhandled stream error in pipe.
            ^
Error: Error: write EPIPE
    at finish (/Users/Cibulka/Documents/Web/itvar.dev/node_modules/cibulka-gulp-tasks/node_modules/gulp-image-resize/node_modules/gulp-gm/index.js:40:21)
    at gm.<anonymous> (/Users/Cibulka/Documents/Web/itvar.dev/node_modules/cibulka-gulp-tasks/node_modules/gulp-image-resize/node_modules/async/lib/async.js:485:30)
    at gm.emit (events.js:118:17)
    at gm.<anonymous> (/Users/Cibulka/Documents/Web/itvar.dev/node_modules/cibulka-gulp-tasks/node_modules/gulp-image-resize/node_modules/gulp-gm/node_modules/gm/lib/getters.js:70:16)
    at Socket.cb (/Users/Cibulka/Documents/Web/itvar.dev/node_modules/cibulka-gulp-tasks/node_modules/gulp-image-resize/node_modules/gulp-gm/node_modules/gm/lib/command.js:318:16)
    at Socket.g (events.js:199:16)
    at Socket.emit (events.js:107:17)
    at onwriteError (_stream_writable.js:317:10)
    at onwrite (_stream_writable.js:335:5)
    at WritableState.onwrite (_stream_writable.js:105:5)

The weird thing is that the plugin worked as expected untill yesterday. The only events that, I think, could affect the plugin was:

  1. I ran npm install to check my NPM setup before project deployment.
  2. I installed some missing Homebrew dependency because of brew doctor output. libxml it was?

Any thoughts? Thank you!

@cibulka
Copy link
Author

cibulka commented Sep 16, 2015

Also, if that helps, I use gulp-imagemin and from today, the tests for gifsicle and optipng started to fail - not on each npm install, but often.

@terryvi
Copy link

terryvi commented Sep 18, 2015

I am meeting the same question~

@msokk
Copy link

msokk commented Sep 21, 2015

Newly released gm1.19.0 has a bug with png/jpg images, the stream closes too early, causing EPIPE or ECONNRESET.

aheckmann/gm#448

@MadLittleMods
Copy link

@msokk 👍 updating to gm@1.20.0 worked great :) - I was trying to use gulp-image-resize

@normanrz
Copy link
Member

normanrz commented Oct 4, 2015

I suppose doing npm upgrade should resolve this issue. Just tried it on my machine and the tests worked again.

@igorpronin
Copy link

Hallo, i have the same problem, using gulp-image-resize.

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: Error: write EPIPE
    at finish (C:\_projects\zench-okm\node_modules\gulp-image-resize\node_modules\gulp-gm\index.js:40:21)
    at gm.<anonymous> (C:\_projects\zench-okm\node_modules\gulp-image-resize\node_modules\async\lib\async.js:485:30)
    at emitMany (events.js:108:13)
    at gm.emit (events.js:182:7)
    at gm.<anonymous> (C:\_projects\zench-okm\node_modules\gulp-image-resize\node_modules\gulp-gm\node_modules\gm\lib\getters.js:70:16)
    at Socket.cb (C:\_projects\zench-okm\node_modules\gulp-image-resize\node_modules\gulp-gm\node_modules\gm\lib\command.js:318:16)
    at Socket.g (events.js:260:16)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at onwriteError (_stream_writable.js:304:10)

Updating npm couldn't solve it.

@Scriptura
Copy link

Scriptura commented May 13, 2016

Hello. Same for me.
Edit. No, it was a mistake: I did not load the imagemagick and graphicsmagick library.
Thank you

@OmarFaruque
Copy link

I also facing same problem using 'gulp-image'
showing error Unhandled promise rejection (rejection id: 2): Error in plugin 'gulp-image'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants