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 during build #444

Closed
pslcs opened this issue Oct 19, 2022 · 3 comments
Closed

Out of memory during build #444

pslcs opened this issue Oct 19, 2022 · 3 comments

Comments

@pslcs
Copy link

pslcs commented Oct 19, 2022

After installing package and adding a simple editor component build fails with reason JavaScript heap out of memory
Tried increasing available memory to 12GB, but it did not help.

<--- Last few GCs --->
[80:0x57e9ab0]   201719 ms: Mark-sweep 2011.5 (2098.0) -> 1997.7 (2092.3) MB, 1270.1 / 0.1 ms  (average mu = 0.257, current mu = 0.048) allocation failure scavenge might not succeed
[80:0x57e9ab0]   202916 ms: Mark-sweep 2014.2 (2092.8) -> 2005.2 (2099.1) MB, 1160.6 / 0.1 ms  (average mu = 0.157, current mu = 0.031) allocation failure scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
 1: 0xb09[98](https://gitlab.***.***/***/***/***/-/jobs/1727343#L98)0 node::Abort() [node]
 2: 0xa1c235 node::FatalError(char const*, char const*) [node]
 3: 0xcf784e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
 4: 0xcf7bc7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
 5: 0xeaf465  [node]
 6: 0xebf12d v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
 7: 0xec1e2e v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
 8: 0xe8336a v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
 9: 0x11fc0b6 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
10: 0x15f0b19  [node]

Used code:

<MDEditor
  onChange={(text) => setNotes(text || '')}
  value={notes}
/>

Using latest version 3.19.0

@jaywcjlove
Copy link
Member

@pslcs I don't have your project and I don't know how you work.

@pslcs
Copy link
Author

pslcs commented Oct 19, 2022

Figured it is library issue since only change was to add this component, however as no one else is having it, this is probably due to my project.

@pslcs pslcs closed this as completed Oct 19, 2022
@jaywcjlove
Copy link
Member

@pslcs Because a lot of "into language" highlight files are loaded

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