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

Wasm cache causes errors on upgrade #1426

Closed
the-frey opened this issue Sep 16, 2022 · 2 comments · Fixed by #1428
Closed

Wasm cache causes errors on upgrade #1426

the-frey opened this issue Sep 16, 2022 · 2 comments · Fixed by #1428
Assignees
Milestone

Comments

@the-frey
Copy link

This maybe is an issue that should be on wasmvm, so apologies if this is the wrong place.

We hit the same issue on Juno's uni testnet as we did back in Feb - @webmaster128 may recall :)

TL;DR moving to wasmvm 1.1 caused errors when cached code was executed, so we had to remove cache (i.e. rm -r $HOME/.juno/data/wasm/cache/modules/v3-wasmer1)

Was asked to make an issue so that it's documented.

@webmaster128
Copy link
Member

webmaster128 commented Sep 16, 2022

Thanks a lot for debugging and reporting. Seems like the Wasmer 2.2 -> 2.3 upgrade was able to bypass our module version detection and silently change module serialization.

Removing the folder is a safe workaround 👍

We should now bump MODULE_SERIALIZATION_VERSION to prevent others from running into the same problem.

@webmaster128
Copy link
Member

I took the liberty to call this a Wasmer bug (wasmerio/wasmer#3193). Not sure if it is one though. Maybe we are just looking for a guarantee Wasmer does not want to give us.

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

Successfully merging a pull request may close this issue.

2 participants