-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
wasm-vips
is unstable on Node 18.14.2+
and 19.4.0+
#45
Comments
To fix compatibility with Node v18.14.2+ and v19.4.0+.
I was aware of this and reported this a couple of weeks ago at nodejs/node#46446 (comment). Unfortunately, that particular v8 commit is not cherry-picked at the time of writing. This issue manifests with zlib-ng (both with v2.0.6 and the upcoming v2.0.7) when decompressing a zlib stream via I just pushed commit 7f4de7a as a workaround, but a better fix would be for Node.js to cherry-pick that particular v8 commit, as this may affect other Wasm projects as well. |
I see, thank you! |
I just opened PR nodejs/node#47092 for this. |
Haha, I am currently compiling Node with the patch applied, with the intent to create that PR. I guess I will spare my poor CPU. |
I am guessing that you are already well into getting a [v19.x] PR ready as well, but let me know if you want me to do anything. After all, I do have the patch ready 😄 |
I had a PR ready for v19.x, but I wasn't sure if commits from v18.x are cherry-picked to v19.x and/or whether there was a plan to update V8 there. Both would make that possible PR redundant. I just asked at nodejs/node#47092 (comment) if it's needed/appropriate to submit a PR for that. |
I could be wrong, but I believe the common workflow is to commit the fix directly to |
In that case, commit nodejs/node@f226350 would solve this as well. The corresponding PR of that commit does not have the |
Node 18.16.0 has been released with a fix for this. This issue still affects Node v19.x, I just opened PR nodejs/node#47535 for that (commit nodejs/node@f226350 was supposed to be included in the upcoming Node v20 release). |
According to https://github.com/nodejs/release#end-of-life-releases Node v19.x has been EOLed, so I think v19.10.0 will not be released. I'll close, thanks for reporting this! |
It seems to me like they will release it at some point, but as you say, it really isn't important as long as all supported versions are fixed :) |
Node has recently made a change to the WASM interpreter that is causing errors in
wasm-vips
. The errors seem completely random and affect many modules, but the most affected module seems to belibspng
which cannot decode even a simple png file.The issue was introduced in Node
18.14.2
and19.4.0
. I was not able to reproduce this error in the Chromium browser, version110.0.5481.177
and112.0.5615.20
.The issue does not affect
wasm-vips
version0.0.4
, although I am not sure when exactly the issue was "introduced". Maybe with the switch to Meson forlibvips
? I know for sure that b24ca0b and later is affected.I hope this is not OS-specific, but FYI I have only run these tests on Ubuntu 22.04, on an Intel 10th-gen x64 chip.
I noticed the errors while working on EWAB, but the test suite also reports errors on these versions:
Full test suite report
Pending fixes:
The text was updated successfully, but these errors were encountered: