-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nan 2.10.0 causing errors #755
Comments
Work around nodejs/nan#755
Work around nodejs/nan#755
Do not see how any of the changes could be related. The stack traces do not indicate any error with makecallback and the deprecation should not have affected anything, since that only makes the compiler emit warnings.
…On March 17, 2018 9:02:37 AM GMT+02:00, Michael Mifsud ***@***.***> wrote:
It appears the native addon Node Sass compiled for Node 9 with Nan
2.10.0 are resulting in errors.
i.e.
```
[1] 9331 illegal hardware instruction npm test
```
There is more detailed information in
sass/node-sass#2293
This may be related the the MakeCallback deprecation. We're happy to
address the deprecation within Node Sass, but the I suspect these
failure were unexpected.
|
I'll aim to do a bisect this week to find the offending commit, however we
are fairly confident the nan bump to be the root cause of the error.
It's possible we have always had a latent bug that this change has surfaced.
…On 17 Mar. 2018 9:18 pm, "Benjamin Byholm" ***@***.***> wrote:
Do not see how any of the changes could be related. The stack traces do
not indicate any error with makecallback and the deprecation should not
have affected anything, since that only makes the compiler emit warnings.
On March 17, 2018 9:02:37 AM GMT+02:00, Michael Mifsud <
***@***.***> wrote:
>It appears the native addon Node Sass compiled for Node 9 with Nan
>2.10.0 are resulting in errors.
>
>i.e.
>```
>[1] 9331 illegal hardware instruction npm test
>```
>
>There is more detailed information in
>sass/node-sass#2293
>
>This may be related the the MakeCallback deprecation. We're happy to
>address the deprecation within Node Sass, but the I suspect these
>failure were unexpected.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#755 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAjZWGMUT40-IiM_ISqYOZuhCf1_gUGWks5tfOL-gaJpZM4SusrQ>
.
|
I cannot exclude a bug in NAN, but I do not see how the changes since 2.9.2 could have this effect. diff |
|
Alright, found the cause of the error, you are doing an asynchronous call where you meant to do a synchronous call. This issue became prominent due to the new async hooks changes made to accomodate Node 10. --- a/src/callback_bridge.h
+++ b/src/callback_bridge.h
@@ -107,7 +107,7 @@ T CallbackBridge<T, L>::operator()(std::vector<void*> argv) {
argv_v8.push_back(Nan::New(wrapper));
return this->post_process_return_value(
- this->callback->Call(argv_v8.size(), &argv_v8[0])
+ Nan::Call(*callback, argv_v8.size(), &argv_v8[0]).ToLocalChecked()
);
} else {
/* |
Great, thanks. I can't try this adjustment on our end and see how it goes.
cc @saper
…On 17 Mar. 2018 11:29 pm, "Benjamin Byholm" ***@***.***> wrote:
Alright, found the cause of the error, you are doing an asynchornous call
where you meant to do a synchronous call. This issue became prominent due
to the new asynch hooks changes made to accomodate Node 10.
--- a/src/callback_bridge.h+++ b/src/callback_bridge.h@@ -107,7 +107,7 @@ T CallbackBridge<T, L>::operator()(std::vector<void*> argv) {
argv_v8.push_back(Nan::New(wrapper));
return this->post_process_return_value(- this->callback->Call(argv_v8.size(), &argv_v8[0])+ Nan::Call(*callback, argv_v8.size(), &argv_v8[0]).ToLocalChecked()
);
} else {
/*
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#755 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAjZWPqueV-bzGe3wc4wuSbN7UhH7RZHks5tfQG7gaJpZM4SusrQ>
.
|
While the problem has been fixed, I still do not know precisely why it occurred, or if it can be easily prevented from our end, so this issue is still not resolved. Perhaps @ofrobots can take a look next week? |
Strange, always trying to do Nan::Get() for a third time on that object causes a crash, even asking for the same property three times. |
It appears the native addon Node Sass compiled for Node 9 with Nan 2.10.0 are resulting in errors.
i.e.
There is more detailed information in sass/node-sass#2293
This may be related the the MakeCallback deprecation. We're happy to address the deprecation within Node Sass, but the I suspect these failure were unexpected.
The text was updated successfully, but these errors were encountered: