Coder Social home page Coder Social logo

Comments (11)

wez avatar wez commented on May 5, 2024

can you also collect the watchman log(s) from this system, and ideally the git hash or at least the watchman version number so we can make sure we're looking at the right code?

from watchman.

wez avatar wez commented on May 5, 2024

(edited the description to highlight the pertinent part of the crash logs)

from watchman.

dturner-tw avatar dturner-tw commented on May 5, 2024

Version is 2.9.9 -- here are some logs (but I don't know which ones precede the crashes; once we start getting those, we kill watchman and restart). The git sha this corresponds to should be d924624.

1411390858: tid=2024162064 file limit is 2048 kern.maxfilesperproc=10240
1411390858: tid=2024162064 raised file limit to 10240
1411390858: tid=2024162064 failed to parse json from /var/folders/tf/wfsrwyg94_52s4xcgp1qb4nc0000gp/T//.watchman.arass.state: unable to open /var/folders/tf/wfsrwyg94_52s4xcgp1qb4nc0000gp/T//.watchman.arass.state: No such file or directory
1411390858: tid=48873472 path /Users/arass/workspaces/birdcage is on filesystem type hfs
1411393538: tid=48873472 sync_to_now: /Users/arass/workspaces/birdcage/.git/.watchman-cookie-tw-mbp-arass-499-1-4823 timedwait failed: Operation timed out
1411398571: tid=46772224 sync_to_now: /Users/arass/workspaces/birdcage/.git/.watchman-cookie-tw-mbp-arass-499-1-52846 timedwait failed: Operation timed out
1411400009: tid=2024162064 file limit is 2048 kern.maxfilesperproc=10240
1411400009: tid=2024162064 raised file limit to 10240
1411400009: tid=2024162064 path /Users/arass/workspaces/birdcage is on filesystem type hfs
1411486646: tid=2024162064 file limit is 2048 kern.maxfilesperproc=10240
1411486646: tid=2024162064 raised file limit to 10240
1411486646: tid=2024162064 path /Users/arass/workspaces/birdcage is on filesystem type hfs
1411489759: tid=274206720 path /Users/arass/workspaces/science is on filesystem type hfs
1411489894: tid=274206720 sync_to_now: /Users/arass/workspaces/birdcage/.git/.watchman-cookie-tw-mbp-arass-34459-1-4790 timedwait failed: Operation timed out
1411499501: tid=2024162064 file limit is 2048 kern.maxfilesperproc=10240
1411499501: tid=2024162064 raised file limit to 10240
1411499501: tid=2024162064 path /Users/arass/workspaces/science is on filesystem type hfs
1411499501: tid=2024162064 path /Users/arass/workspaces/birdcage is on filesystem type hfs

from watchman.

wez avatar wez commented on May 5, 2024

sync_to_now: /Users/arass/workspaces/birdcage/.git/.watchman-cookie-tw-mbp-arass-499-1-4823 timedwait failed: Operation timed out

I wouldn't expect this to happen unless the client is specifying a very low timeout for the query, or if the .git directory is somehow not being watched. In the past, this was easy to do accidentally by listing .git in the ignore_dirs configuration, but this should not longer be possible. Is there a .watchmanconfig for this repo too?

Regardless, the crash is the thing I'd like to track in this particular issue (unless this happens to be something like a deadlock between the sync and the age out, but I don't see indications of that in the gist you posted)

from watchman.

dturner-tw avatar dturner-tw commented on May 5, 2024

The timeout is 600 ms -- is that too low? There is no .watchmanconfig.

from watchman.

wez avatar wez commented on May 5, 2024

We've got a handle on the query timeouts portion of this; it's a class of error around fsevents going bad, either because there are too many clients, or because of a change in security context. #60 is probably the closest thing we have to talk to that, although it is focused on large number of watches. The thread there links to a couple of diffs in review on our public phabricator instance that will help avoid and better surface this class of error.

I haven't seen any other incidences of this class of crash. Once the patches I mentioned above land, it would be great if you could get those running and see if this issue is still lurking, and we can debug from there.

from watchman.

dturner-tw avatar dturner-tw commented on May 5, 2024

Sorry for the delay; I was on vacation. I'll upgrade us internally and let you know if we still have issues.

from watchman.

dturner-tw avatar dturner-tw commented on May 5, 2024

We upgraded to b5bc4ab but are still seeing crashes:
https://gist.github.com/dturner-tw/c66e246d6448693aecbc

from watchman.

dturner-tw avatar dturner-tw commented on May 5, 2024

Another user just got the same crash as https://gist.github.com/dturner-tw/c66e246d6448693aecbc#file-watchman_2014-12-20-152606_localhost-crash

from watchman.

wez avatar wez commented on May 5, 2024

Finally(!) found some cycles to dig in to this and pushed a fix.
Thanks for your patience!

from watchman.

dturner-tw avatar dturner-tw commented on May 5, 2024

Thanks!

from watchman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.