AndreasMadsen / trace

Creates super long stack traces
https://trace.js.org
MIT License
194 stars 18 forks source link

Getting "node::AsyncWrap::AsyncWrap init hook threw" error when using 2.0.2 #21

Closed saintedlama closed 8 years ago

saintedlama commented 8 years ago

maintainer edit: If you are experiencing this issue, please file a new issue. This is a common error message and can be caused by many different things.

After updating to 2.0.2 (from 2.0.1) I'm getting a FATAL ERROR: node::AsyncWrap::AsyncWrap init hook threw error when using trace.

Tested with node.js versions 4.2.3 and 4.2.4 on windows

AndreasMadsen commented 8 years ago

The tests parse, so I will need a testcase to debug this.

AndreasMadsen commented 8 years ago

Node 4.2.5 have been released. This is compatible with latest version of trace (2.2.1), this should solve any issues.

aleung commented 8 years ago

@AndreasMadsen Which node.js 5.x version is compatible with trace 2.3.0? I'm using node 5.3.0 have the same issue.

AndreasMadsen commented 8 years ago

@aleung 2.3.0 is definitely compatible with 5.7.0

I tested on node 5.3.0 and it appears that npm installs async-hook@1.3.0 (works with 5.7.0) as a trace dependency, where is should install async-hook@1.2.0 (works with 5.3.0 to 5.6.x). The engine field is correctly specified, npm just don't use it for version selection.

The best I can suggests, is that you manually replace the async-hook with async-hook@1.2.0. If you have any better ideas please let me know.

Your issue has very little todo with this issue. The error is very common when using async-wrap / async-hook,. But I understand the confusing. I've edited the first comment to notify others.

AndreasMadsen commented 8 years ago

Tracking issue: https://github.com/nodejs/LTS/issues/86