GithubHelp home page GithubHelp logo

Comments (6)

alexander-akait avatar alexander-akait commented on July 28, 2024 3

Leak in babel inside babel-helper-mark-eval-scopes

from babel-minify-webpack-plugin.

etagwerker avatar etagwerker commented on July 28, 2024

I can confirm that this error is happening to me too:

Compiling…
Compilation failed:
[BABEL] Note: The code generator has deoptimised the styling of /home/app/src/node_modules/nitro-storybook/fonts/regular.js as it exceeds the max of 500KB.
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [node]
 2: 0x121a2cc [node]
 3: v8::Utils::ReportOOMFailure(char const*, bool) [node]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]
 5: v8::internal::Factory::NewTransitionArray(int) [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) [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) [node]
 8: v8::internal::Map::CopyAddDescriptor(v8::internal::Handle<v8::internal::Map>, v8::internal::Descriptor*, v8::internal::TransitionFlag) [node]
 9: 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::PropertyConstness, v8::internal::Object::StoreFromKeyed) [node]
10: v8::internal::LookupIterator::PrepareTransitionToDataProperty(v8::internal::Handle<v8::internal::JSObject>, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::Object::StoreFromKeyed) [node]
11: v8::internal::Object::AddDataProperty(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::Object::ShouldThrow, v8::internal::Object::StoreFromKeyed) [node]
12: v8::internal::JSObject::DefineOwnPropertyIgnoreAttributes(v8::internal::LookupIterator*, v8::internal::Handle<v8::internal::Object>, v8::internal::PropertyAttributes, v8::internal::Object::ShouldThrow, v8::internal::JSObject::AccessorInfoHandling) [node]
13: v8::internal::Runtime_DefineDataPropertyInLiteral(int, v8::internal::Object**, v8::internal::Isolate*) [node]
14: 0x1ca20620463d


<--- Last few GCs --->

[137:0x41bda90]  1468904 ms: Mark-sweep 1410.7 (1537.9) -> 1410.7 (1536.9) MB, 6593.3 / 0.1 ms  (+ 0.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 6593 ms) last resort GC in old space requested
[137:0x41bda90]  1474602 ms: Mark-sweep 1410.7 (1536.9) -> 1410.7 (1536.9) MB, 5697.2 / 0.0 ms  last resort GC in old space requested


<--- JS stacktrace --->

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

Security context: 0x9a4fd2a5ee1 <JSObject>
    2: from [native array.js:1] [bytecode=0x14af8cd8f419 offset=116](this=0x9a4fd285519 <JSFunction Array (sfi = 0x1e01bc927809)>,arrayLike=0x2be2b24fffe1 <Set map = 0x180e72184eb1>,mapfn=0x1e01bc902311 <undefined>,receiver=0x1e01bc902311 <undefined>)
    3: arguments adaptor frame: 1->3
    4: hasEval(aka hasEval) [/home/app/src/node_modules/babel-helper-mark-eval-scopes/lib/index.js:~53] [pc=0x...


script returned exit code 1

So I don't think it's an isolated incident.

from babel-minify-webpack-plugin.

dractw avatar dractw commented on July 28, 2024

Bump the same issue

from babel-minify-webpack-plugin.

poseidonphp avatar poseidonphp commented on July 28, 2024

Is there something i can do in my environment to fix this? Or does it need to be fixed in the babel package? If it's out of my control, is there an ETA for an available fix/patch?

from babel-minify-webpack-plugin.

apurvapunde avatar apurvapunde commented on July 28, 2024

i am also facing this issue, please help

from babel-minify-webpack-plugin.

dmt0 avatar dmt0 commented on July 28, 2024

Build worked for me using NODE_OPTIONS="--max-old-space-size=4096" environment variable, even though it took excruciatingly long time. Setting it to a higher value doesn't seem to help.

from babel-minify-webpack-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.