grunt-contrib-watch icon indicating copy to clipboard operation
grunt-contrib-watch copied to clipboard

Watch Error: FSEventStreamFlushSync(): failed assertion

Open tbremer opened this issue 9 years ago • 37 comments

I am getting the following error after Running "watch" task restarts

2015-03-02 11:19 grunt[7732] (FSEvents.framework) FSEventStreamFlushSync(): failed assertion '(SInt64)last_id > 0LL'

Happens with these versions:

$ node 0.11.6 - 0.12.0
$ npm 2.5.1

Related Grunt Config:

...
watch: {
  sass: {
    files: [
      '<%= configs.sassPaths.answ_sass + configs.minimatch %>',
      '<%= configs.sassPaths.sass_lib + configs.minimatch %>'
    ],
    options: {
      nospawn: true
    }
  }
}
...

tbremer avatar Mar 02 '15 17:03 tbremer

Get exactly the same message when watch restarts. Happens on several projects with different configurations and on two different Macs.

Tested with those versions:

$ node v0.12.0
$ npm 2.3.0, 2.5.0, 2.7.0, 2.7.1

crimann avatar Mar 09 '15 15:03 crimann

This happens for me too

tannerlinsley avatar Mar 11 '15 16:03 tannerlinsley

+1 Ditto

TheBox193 avatar Mar 12 '15 15:03 TheBox193

Same here. Can't seem to find a solution...

lancepadgett avatar Mar 12 '15 17:03 lancepadgett

+1 Yeah, same here. Watch task seems to actually work, but nonetheless the message is a bit annoying. I am on Yosemite 10.10.2

alphanull avatar Mar 16 '15 19:03 alphanull

Same here...

I think the problem is node.js in v0.12.0, on an older version no problems..

greenchapter avatar Mar 21 '15 09:03 greenchapter

Same problem. Upgraded to node.js v0.12.1, and it is still there.

infinityplusone avatar Mar 26 '15 19:03 infinityplusone

Same problem.

ThomasHoadley avatar Mar 27 '15 13:03 ThomasHoadley

Does anyone write an bugreport to the nodejs guys?

greenchapter avatar Mar 27 '15 15:03 greenchapter

Same here

$ node v0.12.2
$ npm 2.7.4
OSX 10.10.2 (14C1514)
grunt[22532] (FSEvents.framework) FSEventStreamFlushSync(): failed assertion '(SInt64)last_id > 0LL'

vemec avatar Apr 08 '15 02:04 vemec

If anyone wants to try this in io.js, should be fixed there.

vladikoff avatar Apr 08 '15 02:04 vladikoff

Still happening for me as well

node v0.12.2 npm 2.7.5 grunt-contrib-watch 0.6.1 OS X 10.10.3

This seems to happen more when it has to run an uglify or concat task. But both are at the latest version.

of6 avatar Apr 17 '15 18:04 of6

Same here on

node v0.12.0 and v0.12.2 npm 2.5.1 and 2.7.4 grunt-contrib-watch 0.6.1 OS X 10.9.5

Happens only if I set the option spawn: false or nospawn: true. The tasks don't run correctly, it's not just the message for me.

Seams to work with node v0.10.26.

woerndl avatar Apr 18 '15 13:04 woerndl

Same problem - Seems to be functioning fine, but always gives this error.

Node: v0.12.2,
NPM: 2.7.5,
grunt: 0.4.5,
grunt-contrib-concat: 0.5.1,
grunt-contrib-imagemin: 0.9.4,
grunt-contrib-uglify: 0.9.1,
grunt-contrib-watch: 0.6.1,
grunt-sass: 0.18.1,
OS X 10.10.2
(FSEvents.framework) FSEventStreamFlushSync(): failed assertion '(SInt64)last_id > 0LL'

SudoCat avatar Apr 27 '15 08:04 SudoCat

Can confirm.

jwgmeligmeyling avatar May 02 '15 11:05 jwgmeligmeyling

same here

Node v0.12.2
grunt-cli v0.1.13
grunt v0.4.5
grunt-contrib-watch 0.6.1
OS X 10.10.3

yumyo avatar May 03 '15 14:05 yumyo

I'm also experiencing this issue

OSX: v10.10.2
Node v0.12.2
Npm v2.7.5
Packages:
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

paulhayes avatar May 09 '15 18:05 paulhayes

Same here. node: v0.12.0

Removing spawn from Watch > Scripts > Options:{ } stops the error. What is spawn anyway again?

digitalcraftco avatar May 12 '15 19:05 digitalcraftco

Might this potentially be why? https://github.com/bdkjones/fseventsbug/wiki/realpath()-And-FSEvents

mikehdt avatar Jul 18 '15 13:07 mikehdt

@digitalcraftco solution worked with v0.12.7, removing all spawns from watch: {} task (even if they're false)

juanbrujo avatar Jul 21 '15 20:07 juanbrujo

@juanbrujo Thanks for the follow up. Indeed this has fixed the issue for newer versions.

digitalcraftco avatar Jul 21 '15 21:07 digitalcraftco

Interesting. Is 0.11.6 the earliest node version this manifests in? We've had the above linked io.js issue for this for a while but haven't really been able to debug it.

Fishrock123 avatar Jul 30 '15 23:07 Fishrock123

@digitalcraftco It defines whether a new task should be spawned or not. See https://github.com/gruntjs/grunt-contrib-watch#optionsspawn

Removing spawn from options does avoid but not fix the issue.

flekschas avatar Aug 12 '15 20:08 flekschas

+1 getting this as well still.

tconroy avatar Oct 20 '15 21:10 tconroy

Interesting to note, as soon as you remove the spawn = false property the compile time jumps up dramatically, in my case from 0.3sec to 4.3sec !!

I just came across this error (with spawn set to false) maybe this is of help ->

(node) warning: possible EventEmitter memory leak detected. 11 change listeners added. Use emitter.setMaxListeners() to increase limit. Trace at StatWatcher.addListener (events.js:179:15) at Object.fs.watchFile (fs.js:1289:8) at Gaze._pollFile (/Applications/MAMP/htdocs/bla/node_modules/grunt-contrib-watch/node_modules/gaze/lib/gaze.js:329:10) at /Applications/MAMP/htdocs/bla/node_modules/grunt-contrib-watch/node_modules/gaze/lib/gaze.js:411:12 at Array.forEach (native) at /Applications/MAMP/htdocs/bla/node_modules/grunt-contrib-watch/node_modules/gaze/lib/gaze.js:409:11 at iterate (/Applications/MAMP/htdocs/bla/node_modules/grunt-contrib-watch/node_modules/gaze/lib/helper.js:52:5) at Object.forEachSeries (/Applications/MAMP/htdocs/bla/node_modules/grunt-contrib-watch/node_modules/gaze/lib/helper.js:66:3) at Gaze._initWatched (/Applications/MAMP/htdocs/bla/node_modules/grunt-contrib-watch/node_modules/gaze/lib/gaze.js:354:10) at Gaze._internalAdd (/Applications/MAMP/htdocs/bla/node_modules/grunt-contrib-watch/node_modules/gaze/lib/gaze.js:193:10)

teejayhh avatar Nov 19 '15 20:11 teejayhh

I see similar messages in a C app using libuv and uv_fs_event* I wrote as well. Linked to https://github.com/nodejs/node/issues/854 which mentions this issue.

jlujan avatar Nov 26 '15 07:11 jlujan

Absolutely nothing changed in my dependencies for the last month at least and I randomly just started seeing this

maruf89 avatar Dec 10 '15 23:12 maruf89

@maruf89 Did you change OS X versions?

Fishrock123 avatar Dec 10 '15 23:12 Fishrock123

No, I'm still on Yosemite 10.10.3 - The only thing that changed is I got a hard drive cable replaced but no software/npm deps changed

maruf89 avatar Dec 11 '15 00:12 maruf89

+1 having same issue

ogmios2 avatar May 13 '16 06:05 ogmios2