Skip to content
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

Remove node cache when failed to deserialize #13128

Closed
saschanaz opened this issue Dec 29, 2020 · 2 comments
Closed

Remove node cache when failed to deserialize #13128

saschanaz opened this issue Dec 29, 2020 · 2 comments

Comments

@saschanaz
Copy link
Collaborator

saschanaz commented Dec 29, 2020

NODE_CODE_CACHING: failed to deserialize, bad cache file? (C:\Users\Kagami\Documents\GitHub\jxl-wasm\lib/cjxl.wasm.3947234607.cached)

This occurs when the cache is outdated because of the updated wasm binary. The fix is to manually remove it but this should really be automatic.

@saschanaz
Copy link
Collaborator Author

saschanaz commented Dec 29, 2020

It seems it's rewritten actually, I wonder whether it's Node.js side issue. Manual call to v8.deserialize fails:

Uncaught Error: Unable to deserialize cloned data.

@saschanaz
Copy link
Collaborator Author

nodejs/node#18265 (comment). Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant