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

server still crashed on 0.6.1 CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #131

Closed
exonuclease opened this issue Apr 21, 2017 · 19 comments
Labels

Comments

@exonuclease
Copy link

exonuclease commented Apr 21, 2017

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [/usr/share/code/libnode.so]
2: 0x7f23b86632a7 [/usr/share/code/libnode.so]
3: v8::Utils::ApiCheck(bool, char const*, char const*) [/usr/share/code/libnode.so]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/share/code/libnode.so]
5: v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/usr/share/code/libnode.so]
6: v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/share/code/libnode.so]
7: 0x3768afe08206
[Info - 上午8:27:56] Connection to server got closed. Server will restart.
Fedora25
vscode 1.11.2

@soundtina
Copy link

still creshed!

[0421/092928:ERROR:tcp_listen_socket.cc(76)] Could not bind socket to 127.0.0.1:6005
[0421/092928:ERROR:node_debugger.cc(86)] Cannot start debugger server

@visamz
Copy link

visamz commented Apr 21, 2017

+1024

@visamz
Copy link

visamz commented Apr 21, 2017

workbench.main.js:29 Connection is closed.: Error: Connection is closed.
at ConnectionError.Error (native)
at new ConnectionError (C:\Users\BYENDS.vscode\extensions\octref.vetur-0.6.1\client\node_modules\vscode-jsonrpc\lib\main.js:116:28)
at throwIfClosedOrDisposed (C:\Users\BYENDS.vscode\extensions\octref.vetur-0.6.1\client\node_modules\vscode-jsonrpc\lib\main.js:481:19)
at Object.sendNotification (C:\Users\BYENDS.vscode\extensions\octref.vetur-0.6.1\client\node_modules\vscode-jsonrpc\lib\main.js:522:13)
at C:\Users\BYENDS.vscode\extensions\octref.vetur-0.6.1\client\node_modules\vscode-jsonrpc\lib\main.js:627:32
at e.invoke (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:16423)
at e.fire (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:20054)
at e.cancel (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:22821)
at e.cancel (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:23431)
at ._oncancel (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:58954)
at _cancelAction (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:55158)
at Object.enter (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:50915)
at _run (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:53226)
at cancel (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:52391)
at _cancelAction (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:53474)
at Object.enter (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:4:50915)e.onUnexpectedError @ workbench.main.js:29
workbench.main.js:29 [Extension Host] rejected promise not handled within 1 second

@visamz
Copy link

visamz commented Apr 21, 2017

I can't coding continue.. pls fix it

@vv13
Copy link

vv13 commented Apr 21, 2017

still crashed. need your help!

@soundtina
Copy link

just open the static folder, don't open the folder that both contain satic and node_modules

@minororange
Copy link

+10086 i need your help @octref

@mgesmundo
Copy link

@octref please fix this!

@askz
Copy link

askz commented Apr 21, 2017

@mgesmundo please be nice

@octref
Copy link
Member

octref commented Apr 21, 2017

Was able to repro. Looking into it...

It seems to happen randomly. If anyone have a good repro case it'd help me a lot for solving the issue.
Good repro means some sort of small vue project that you don't mind sharing on GitHub and let me try it.

@octref
Copy link
Member

octref commented Apr 26, 2017

Can people having problem try this:

  • Create a tsconfig.json or jsconfig.json file in your project root
  • Put this in it
{
  "exclude": [
    "node_modules"
  ]
}

Does your project still crash?

@exonuclease
Copy link
Author

@octref I have created jsconfig.json and still crash

@octref
Copy link
Member

octref commented Apr 27, 2017

@exonuclease How large is your project?
Do you have any sub-project that also has node_modules in it?

@exonuclease
Copy link
Author

@octref Umm...more than ten .vue files not very large
No and i also add files.exclude to my settings.json it still doesn't work

@octref
Copy link
Member

octref commented Apr 27, 2017

@exonuclease
Is your project secret or do you mind sharing with me?

@exonuclease
Copy link
Author

@octref sorry it is secret.
I will try to find an open resource project that can cause this

@octref
Copy link
Member

octref commented Apr 27, 2017

@exonuclease That'd help a lot, thanks!

@exonuclease
Copy link
Author

@octref this project https://github.com/mrgodhani/rss-reader
run npm install and open .vue file it caused another error...
/home/guoyifan/.vscode/extensions/octref.vetur-0.6.3/client/server/node_modules/typescript/lib/typescript.js:23318
var symbol = container.locals.get(node.text);
^

TypeError: Cannot read property 'get' of undefined
at isNameOfExportsOrModuleExportsAliasDeclaration (/home/guoyifan/.vscode/extensions/octref.vetur-0.6.3/client/server/node_modules/typescript/lib/typescript.js:23318:46)
at bindStaticPropertyAssignment (/home/guoyifan/.vscode/extensions/octref.vetur-0.6.3/client/server/node_modules/typescript/lib/typescript.js:23396:17)
at bindWorker (/home/guoyifan/.vscode/extensions/octref.vetur-0.6.3/client/server/node_modules/typescript/lib/typescript.js:23079:29)
at bind (/home/guoyifan/.vscode/extensions/octref.vetur-0.6.3/client/server/node_modules/typescript/lib/typescript.js:22974:13)
at visitNode (/home/guoyifan/.vscode/extensions/octref.vetur-0.6.3/client/server/node_modules/typescript/lib/typescript.js:14662:20)
at Object.forEachChild (/home/guoyifan/.vscode/extensions/octref.vetur-0.6.3/client/server/node_modules/typescript/lib/typescript.js:14826:24)
at bindEachChild (/home/guoyifan/.vscode/extensions/octref.vetur-0.6.3/client/server/node_modules/typescript/lib/typescript.js:21771:16)
at bindBinaryExpressionFlow (/home/guoyifan/.vscode/extensions/octref.vetur-0.6.3/client/server/node_modules/typescript/lib/typescript.js:22416:17)
at bindChildrenWorker (/home/guoyifan/.vscode/extensions/octref.vetur-0.6.3/client/server/node_modules/typescript/lib/typescript.js:21831:21)
at bindChildren (/home/guoyifan/.vscode/extensions/octref.vetur-0.6.3/client/server/node_modules/typescript/lib/typescript.js:21746:17)
[Info - 上午10:05:33] Connection to server got closed. Server will restart.
/home/guoyifan/.vscode/extensions/octref.vetur-0.6.3/client/server/node_modules/typescript/lib/typescript.js:23318
var symbol = container.locals.get(node.text);
^

@octref octref closed this as completed in 73a5ec9 Apr 27, 2017
@octref
Copy link
Member

octref commented Apr 27, 2017

The problem is you have app/node_modules which gets module resolved (imagine every js file under there getting parsed by TS)...
But now vetur should handle node_modules even if it's not in top directory.
Wait for 0.6.4.

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

No branches or pull requests

8 participants