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

macOS Sierra bug #2039

Closed
quantizor opened this issue Nov 1, 2016 · 6 comments
Closed

macOS Sierra bug #2039

quantizor opened this issue Nov 1, 2016 · 6 comments

Comments

@quantizor
Copy link
Contributor

Not sure if this is Jest-specific or just a general node issue, but running jest --watch causes:

2016-11-01 15:46 node[5187] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-01 15:46 node[5187] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-11-01 15:46 node[5187] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: Error watching file for changes: EMFILE
    at exports._errnoException (util.js:1026:11)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1274:11)

Since I upgraded to Sierra. Using Node 7.

@cpojer
Copy link
Member

cpojer commented Nov 1, 2016

Did you reinstall all node_modules, node and whatever else is part of node/jest?

@quantizor
Copy link
Contributor Author

So that definitely helped, yes. Now I'm just running into some other badness:

Test Suites: 28 passed, 28 of 29 total
Tests:       635 passed, 635 total
Snapshots:   0 total
Time:        72s
<--- Last few GCs --->

[8452:0x103000000]    69208 ms: Mark-sweep 1422.5 (1492.9) -> 1422.5 (1492.9) MB, 1814.6 / 0.0 ms  allocation failure GC in old space requested
[8452:0x103000000]    71052 ms: Mark-sweep 1422.5 (1492.9) -> 1422.3 (1461.9) MB, 1844.7 / 0.0 ms  last resort gc 
[8452:0x103000000]    72890 ms: Mark-sweep 1422.3 (1461.9) -> 1422.3 (1461.9) MB, 1837.1 / 0.0 ms  last resort gc 


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x319fc73c0d31 <JS Object>
    2: InnerArraySort(aka InnerArraySort) [native array.js:~531] [pc=0x152aec4d16b8](this=0x319fc7304311 <undefined>,q=0xddc5c36dc81 <JS Array[7]>,r=7,aC=0x319fc7304311 <undefined>)
    3: sort [native array.js:~750] [pc=0x152aec4cbeef](this=0xddc5c36dc81 <JS Array[7]>,aC=0x319fc7304311 <undefined>)
    4: arguments adaptor frame: 0->1
    5: printObject(aka printObject) [/Users/esj/code/lion/c...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [/Users/esj/.nvm/versions/node/v7.0.0/bin/node]
 2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/Users/esj/.nvm/versions/node/v7.0.0/bin/node]
 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/Users/esj/.nvm/versions/node/v7.0.0/bin/node]
 4: v8::internal::Factory::NewFixedArray(int, v8::internal::PretenureFlag) [/Users/esj/.nvm/versions/node/v7.0.0/bin/node]
 5: v8::internal::TypeFeedbackVector::New(v8::internal::Isolate*, v8::internal::Handle<v8::internal::TypeFeedbackMetadata>) [/Users/esj/.nvm/versions/node/v7.0.0/bin/node]
 6: v8::internal::SharedFunctionInfo::FindOrCreateLiterals(v8::internal::Handle<v8::internal::SharedFunctionInfo>, v8::internal::Handle<v8::internal::Context>) [/Users/esj/.nvm/versions/node/v7.0.0/bin/node]
 7: v8::internal::JSFunction::EnsureLiterals(v8::internal::Handle<v8::internal::JSFunction>) [/Users/esj/.nvm/versions/node/v7.0.0/bin/node]
 8: v8::internal::Compiler::Compile(v8::internal::Handle<v8::internal::JSFunction>, v8::internal::Compiler::ClearExceptionFlag) [/Users/esj/.nvm/versions/node/v7.0.0/bin/node]
 RUNS  src/app/datasets/tableview/index.spec.js

Test Suites: 28 passed, 28 of 29 total
Tests:       635 passed, 635 total
Snapshots:   0 total
Time:        118s

@quantizor
Copy link
Contributor Author

I think it's related to this #1772

@cpojer
Copy link
Member

cpojer commented Nov 2, 2016

closing in favor of the other issue.

@cpojer cpojer closed this as completed Nov 2, 2016
@hkrutzer
Copy link

Had the original issue as well (FSEventStreamStart etc), facebook/react-native#9309 (comment) fixed it for me (increasing max open files and installing watchman 2.7 with brew).

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants