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.

`FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.` on node 8

See original GitHub issue

I started getting this error when updating from node 6 to node 8. I can reproduce running this code on my large repository but I haven’t yet tracked it down to which files are exactly causing it:

const glob = require('fast-glob');

const files = glob.sync('**/*.js', {
    bashNative: [],
    onlyFiles: true,
    cwd: process.cwd(),
    ignore: ['node_modules/**'],
});

console.log(files);
FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.
 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::V8::ToLocalEmpty() [/usr/local/bin/node]
 4: node::ReadDir(v8::FunctionCallbackInfo<v8::Value> const&) [/usr/local/bin/node]
 5: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) [/usr/local/bin/node]
 6: v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) [/usr/local/bin/node]
 7: v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) [/usr/local/bin/node]
 8: 0x2b0d0ee0463d
 9: 0x2b0d0eef474a

node v8.9.3, macOS 10.13.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mrmlnccommented, Jan 26, 2018

Thanks for clarifying the problem! So, we well work on the solution here:

Also you can follow to #42.

0reactions
mrmlnccommented, Feb 1, 2018

@jrylan, @robrichard,

Please, try to use npm i fast-glob@next --force for your broken cases. I tried to fix the problem with large directories, temporarily switching to the readdir-enhanced fork.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal ...
How often does it reproduce? Is there a required condition? always. What is the expected behavior? One of two possibilities: A) early error...
Read more >
node js ToLocalChecked Empty MaybeLocal error
node js crashed with this error i want execute sql query. FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal. ... edited Mar 29 at 8:01.
Read more >
FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal. PLS ...
FATAL ERROR : v8::ToLocalChecked Empty MaybeLocal. 1: node::Abort() [node] 2: 0x8ccf9c [node] 3: v8::Utils::ReportApiFailure(char const*, ...
Read more >
v8: MaybeLocal< T > Class Template Reference - v8docs
A MaybeLocal<> is a wrapper around Local<> that enforces a check whether the Local<> is empty before it ... In that case, an...
Read more >
FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.
FATAL ERROR : v8::ToLocalChecked Empty MaybeLocal.. ezezvacss. - Reported Jun 05, 2019. Hello there, when i write code work all perfect.
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