Error: async hook stack has become corrupted - from meteor-tool/.1.6.1.194

Hi there,

I’m getting this error message all of a sudden (since about 1h) without any code change.

Seems to come from V8 and there is a reference to the meteor-tool/.1.6.1.194:

Error: async hook stack has become corrupted (actual: 0, expected: 620)
1: node::AsyncWrap::PopAsyncIds(v8::FunctionCallbackInfo<v8::Value> const&) [/Users/andreaswest/.meteor/packages/meteor-tool/.1.6.1.194wnfx.1kqp++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node]
2: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) [/Users/andreaswest/.meteor/packages/meteor-tool/.1.6.1.194wnfx.1kqp++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node]
3: 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) [/Users/andreaswest/.meteor/packages/meteor-tool/.1.6.1.194wnfx.1kqp++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node]
4: v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) [/Users/andreaswest/.meteor/packages/meteor-tool/.1.6.1.194wnfx.1kqp++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node]

Has anyone else run into this problem?

Any suggestions? Thanks in advance!

1 Like

Same happens here while debugging using via Jetbrains Webstorm, specially when using ‘Step Into’ function:

W20180417-16:03:04.927(-3)? (STDERR) Debugger attached.
W20180417-16:03:04.928(-3)? (STDERR) Error: async hook stack has become corrupted (actual: 0, expected: 7380)
W20180417-16:03:04.928(-3)? (STDERR)  1: v8::SnapshotCreator::`default constructor closure'
W20180417-16:03:04.928(-3)? (STDERR)  2: v8::internal::StackGuard::ArchiveSpacePerThread
W20180417-16:03:04.928(-3)? (STDERR)  3: v8::internal::wasm::SignatureMap::Find
W20180417-16:03:04.929(-3)? (STDERR)  4: v8::internal::Builtins::CallableFor
W20180417-16:03:04.929(-3)? (STDERR)  5: v8::internal::Builtins::CallableFor
W20180417-16:03:04.929(-3)? (STDERR)  6: v8::internal::Builtins::CallableFor
W20180417-16:03:04.930(-3)? (STDERR)  7: 000002770C8843C1
=> Exited with code: 1

Restart WebStorm, that solved it for me. It’s one of their weird errors