Skip to content

JavaScript heap out of memory #2974

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

Closed
paweloque opened this issue Nov 1, 2016 · 4 comments
Closed

JavaScript heap out of memory #2974

paweloque opened this issue Nov 1, 2016 · 4 comments

Comments

@paweloque
Copy link

paweloque commented Nov 1, 2016

OS?

Mac OSX - El Capitan

Versions.

angular-cli: 1.0.0-beta.19-3
node: 6.5.0
os: darwin x64

Repro steps.

Yes, run ng serve and the problem happens from time to time with longer ng serve sessions

The log given by the failure.

0ms recording 
0ms additional asset processing 
0ms chunk asset optimization 
 94% asset optimization
<--- Last few GCs --->

 4392933 ms: Mark-sweep 1346.6 (1434.6) -> 1346.6 (1434.6) MB, 1871.2 / 0.0 ms [allocation failure] [GC in old space requested].
 4394594 ms: Mark-sweep 1346.6 (1434.6) -> 1346.6 (1434.6) MB, 1660.4 / 0.0 ms [allocation failure] [GC in old space requested].
 4396303 ms: Mark-sweep 1346.6 (1434.6) -> 1349.1 (1418.6) MB, 1708.6 / 0.0 ms [last resort gc].
 4398054 ms: Mark-sweep 1349.1 (1418.6) -> 1351.8 (1418.6) MB, 1750.5 / 0.0 ms [last resort gc].


<--- JS stacktrace --->

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

Security context: 0x3e00b1acfb51 <JS Object>
    1: createMap [/Users/pawel/workspace/helloclass-frontend/node_modules/typescript/lib/typescript.js:1031] [pc=0x26160200a74f] (this=0x1f1b0eefe531 <an Object with map 0x16b4d0884949>,template=0x3e00b1a04381 <undefined>)
    2: arguments adaptor frame: 0->1
    3: objectTypeRelatedTo [/Users/pawel/workspace/helloclass-frontend/node_modules/typescript/lib/typescript.js:~22533] [pc=0x2616027b81...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [/usr/local/bin/node]
 2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/usr/local/bin/node]
 3: v8::Utils::ReportApiFailure(char const*, char const*) [/usr/local/bin/node]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]
 5: v8::internal::Factory::NewTransitionArray(int) [/usr/local/bin/node]
 6: v8::internal::TransitionArray::Insert(v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Map>, v8::internal::SimpleTransitionFlag) [/usr/local/bin/node]
 7: v8::internal::Map::CopyReplaceDescriptors(v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::DescriptorArray>, v8::internal::Handle<v8::internal::LayoutDescriptor>, v8::internal::TransitionFlag, v8::internal::MaybeHandle<v8::internal::Name>, char const*, v8::internal::SimpleTransitionFlag) [/usr/local/bin/node]
 8: v8::internal::Map::CopyAddDescriptor(v8::internal::Handle<v8::internal::Map>, v8::internal::Descriptor*, v8::internal::TransitionFlag) [/usr/local/bin/node]
 9: v8::internal::Map::CopyWithField(v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::FieldType>, v8::internal::PropertyAttributes, v8::internal::Representation, v8::internal::TransitionFlag) [/usr/local/bin/node]
10: v8::internal::Map::TransitionToDataProperty(v8::internal::Handle<v8::internal::Map>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::Object::StoreFromKeyed) [/usr/local/bin/node]
11: v8::internal::LookupIterator::PrepareTransitionToDataProperty(v8::internal::Handle<v8::internal::JSObject>, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::Object::StoreFromKeyed) [/usr/local/bin/node]
12: v8::internal::StoreIC::LookupForWrite(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::Object::StoreFromKeyed) [/usr/local/bin/node]
13: v8::internal::StoreIC::UpdateCaches(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::Object::StoreFromKeyed) [/usr/local/bin/node]
14: v8::internal::StoreIC::Store(v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::Object>, v8::internal::Object::StoreFromKeyed) [/usr/local/bin/node]
15: v8::internal::Runtime_StoreIC_Miss(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
16: 0x2615ff7092a7
[1]    6802 abort      ng serve

Mention any other details that might be useful.

The problem occurs when running ng serve some time and especially when compile errors or warnings occur.

@celliott181
Copy link
Contributor

celliott181 commented Nov 1, 2016

Known error that's been logged and tagged in #1652, however more data on it is always good!

@filipesilva
Copy link
Contributor

Closing as dupe.

@naveedahmed1
Copy link

naveedahmed1 commented Nov 17, 2016

This should help #1652 (comment)

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
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

4 participants