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

local count too large after instrumentation #46

Closed
orchestrah opened this issue Jul 31, 2024 · 3 comments
Closed

local count too large after instrumentation #46

orchestrah opened this issue Jul 31, 2024 · 3 comments

Comments

@orchestrah
Copy link

Hi !

I ve instrumented wasm and then trying to test it without any analysis script.
But getting following error in Chrome console:

CompileError: WebAssembly.instantiate(): Compiling function #687 failed: local count too large @+4757612

According to this: https://github.com/MIPS/external-v8/blob/master/src/wasm/wasm-limits.h
There is a limit for function locals equal to 50 000 ?

Any workaround on this ? Is it possible to increase this limit without rebuilding Chrome ?
Maybe Wasabi inserting too many locals in some way ?

@doehyunbaek
Copy link

Yeah it is a known problem that Wasabi's insertion of local variables while instrumentaing can exceed the maximum local count. Refer to this issue #42

I have a fork that alleviates this problem to some degree, if you want to try, here is the link:

https://github.com/jakobgetz/wasabi/tree/jakob

@orchestrah
Copy link
Author

Yeah it is a known problem that Wasabi's insertion of local variables while instrumentaing can exceed the maximum local count. Refer to this issue #42

I have a fork that alleviates this problem to some degree, if you want to try, here is the link:

https://github.com/jakobgetz/wasabi/tree/jakob

Tnaks a lot fot quick reply. I ll give it a try today

@orchestrah
Copy link
Author

Dublicate of #42

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

2 participants