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

Out of memory without --list-form #141

Open
binary64 opened this issue Dec 10, 2021 · 1 comment
Open

Out of memory without --list-form #141

binary64 opened this issue Dec 10, 2021 · 1 comment

Comments

@binary64
Copy link

I'm running this:

npx dependency-tree --directory=apps/web --ts-config=apps/web/tsconfig.json --list-form  apps/web/pages/index.tsx

But it takes ages and eventually dies with:

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
 1: 0xb00d90 node::Abort() [node]
 2: 0xa1823b node::FatalError(char const*, char const*) [node]
 3: 0xcedbce v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
 4: 0xcedf47 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
 5: 0xea6105  [node]
 6: 0xeb57dd v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
 7: 0xeb84de v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
 8: 0xe79642 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [node]
 9: 0xe71c54 v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Map, v8::internal::AllocationAlignment) [node]
10: 0xe73cc1 v8::internal::FactoryBase<v8::internal::Factory>::NewRawTwoByteString(int, v8::internal::AllocationType) [node]
11: 0x124fb4c v8::internal::IncrementalStringBuilder::Extend() [node]
12: 0xf9e3e0 v8::internal::JsonStringifier::SerializeString(v8::internal::Handle<v8::internal::String>) [node]

However if I add the CLI flag --list-form, it works without crashing!

My project is a standard nx.dev repo.

Many thanks

@XhmikosR
Copy link
Member

XhmikosR commented May 5, 2023

Does this happen with the latest version and Node.js LTS?

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

No branches or pull requests

2 participants