question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v2] FATAL ERROR: v8::HandleScope::CreateHandle()

See original GitHub issue

🐛 bug report

Seems like when I try to build it sporadically spits this node error out. There is no rhyme or reason to it afaik.

here is a full output log with the error

.babelrc

{
  "presets": ["@babel/preset-env", "@babel/preset-react"],
  "plugins": [
    [
      "babel-plugin-styled-components",
      {
        "cssProp": true,
        "displayName": true
      }
    ],
    ["@babel/plugin-proposal-class-properties", { "loose": true }],
    ["@babel/plugin-proposal-optional-chaining"]
  ]
}

.parcelrc

{
  "extends": "@parcel/config-default",
  "transformers": {
    "*.{jpg,png,svg}": ["@parcel/transformer-raw"]
  }
}

script.

{"scripts": {
    "build": "parcel build ./src/index.html --dist-dir dist --no-source-maps"
}}

🤔 Expected Behavior

It builds without Exit 134

😯 Current Behavior

Well it actually builds but the error exit with code 134 which causes CI exit code 1 and not continue the deployment.

💁 Possible Solution

Could be something to do with not enough resources?

🔦 Context

This happens on local and ci builds, and local dev. It also happens when i ctrl-c the dev server. It is sporadic.

💻 Code Sample

Sorry all NDA

🌍 Your Environment

Happens on on my i5 4670k with 16gb ram, win 10 Happens in travis on xenial

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pr1ntrcommented, Oct 20, 2020

Seems to be fixed with node 14. I also think it has to do with the size of the build.

0reactions
mischniccommented, Dec 5, 2020

Thanks! Looking at the “n-api” list in https://github.com/nodejs/node/releases/tag/v12.18.3, I’d say it’s https://github.com/nodejs/node/pull/33508? This issue is linked in there: https://github.com/nodejs/node-addon-api/issues/722, it has the exact same error message we are seeing here.

@NordlingDev @pr1ntr does using 12.18.3 fix it for you? In that case, I’d say upgrading Node is a(n) acceptable (“workaround”).

https://github.com/nodejs/node-addon-api/issues/730#issuecomment-636922311:

will most likely be backported to all LTS versions, we should investigate whether we are able to also fix this in node-addon-api, because folks may not necessarily be running the latest of one of the LTS versions

Read more comments on GitHub >

github_iconTop Results From Across the Web

FATAL ERROR: v8::HandleScope::CreateHandle() Cannot ...
When testing my native addon with iojs 3 I get FATAL ERROR: v8::HandleScope::CreateHandle() Cannot create a handle without a HandleScope I'm ...
Read more >
Fatal error in v8::HandleScope::CreateHandle() # Cannot ...
We were usign NextJS (the build failed with this "v8::HandleScope::CreateHandle()" error). Locally everything was working fine, ...
Read more >
FATAL ERROR: v8::HandleScope::CreateHandle() Cannot ...
Hi, I'm getting the following error, any thoughts by chance? Everything was working fine, although I was getting an error from Browserlist ...
Read more >
Cannot create a handle without a HandleScope
Here's the exact error I get: # # Fatal error in v8::HandleScope::CreateHandle() # Cannot create a handle without a HandleScope
Read more >
Need Help with building project : r/nextjs - Reddit
FATAL ERROR : v8::HandleScope::CreateHandle() Cannot create a handle without a HandleScope 1: 0xa89e60 node::Abort() [node] 2: 0x9ade29 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found