facebookarchive / nuclide

An open IDE for web and native mobile development, built on top of Atom
https://nuclide.io
Other
7.79k stars 683 forks source link

100% usage as Nuclide spawns HG diffs #480

Open AutomatedTester opened 8 years ago

AutomatedTester commented 8 years ago

Issue and Steps to Reproduce

When I open atom, with nuclide, to work on a local copy of http://hg.mozilla.org/integration/mozilla-inbound/ after about 10 seconds my fans start going and when I look at processes running I have a number of processes calling HG commands for diffs.

e.g.

USER              PID  %CPU %MEM      VSZ    RSS   TT  STAT STARTED      TIME COMMAND
dburns          36643  39.8  0.4  2543984  75464   ??  R     8:23PM   0:00.34 /usr/bin/python /usr/local/bin/hg diff --unifie
dburns          36640  39.5  0.4  2543216  74568   ??  R     8:23PM   0:00.33 /usr/bin/python /usr/local/bin/hg diff --unifie
dburns          36635  38.6  0.5  2548108  80972   ??  R     8:23PM   0:00.55 /usr/bin/python /usr/local/bin/hg diff --unifie
dburns          36647  37.5  0.1  2472516  15184   ??  R     8:23PM   0:00.14 /usr/bin/python /usr/local/bin/hg diff --unifie
dburns          36648  35.1  0.1  2472772  15328   ??  R     8:23PM   0:00.14 /usr/bin/python /usr/local/bin/hg diff --unifie

If I disable Nuclide and restart atom against the same repo this no longer happens. I am not sure if this is related to #457 or a regression that might have similar root cause as #84.

Expected Behavior

Not eat all my CPU causing my fans to roar at me

Actual Behavior

It was just spawning hg processes for diffs for some reason

Versions

└── (empty)

hansonw commented 8 years ago

Fixed in c6fadf8dd3996fc6e97ec40f60444849c27b99a8. We'll probably release this next Monday, apologies for the inconvenience in the meantime :(