-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
cmd/compile: wasm: LinkError: "data segment does not fit in memory" #34395
Comments
Thanks @Splizard. It will be very helpful to have further details for us to debug this further. Since it is readily reproducible for you, may I also ask you to run a |
This is most likely due to 460f9c6. Could you please check if increasing the |
Same problem here (main.wasm is 33Mb size), and my project won't run on go 1.13. Is there a flag way to change initialSize, or does one has to recompile wasm ? |
You have to recompile the Go distribution with the new |
Thanks Agniva.
Changing initialSize to 128Mb, cleaning and then recompiling my code worked :) |
Let's try to come up with a minimal example that triggers this bug. Maybe a large global array? |
Change https://golang.org/cl/199358 mentions this issue: |
There is a regression from 1.12 to 1.13, a program that successfully compiles and runs on Firefox and Google Chrome in Go 1.12 will not run when compiled with Go 1.13
Firefox gives the error:
Google Chrome gives the error:
The project is quite large and the Web Assembly file is ~50mb when uncompressed.
I'm happy to provide further details on request, however, I don't have a trivial program that reproduces this.
I am using the appropriate wasm_exec files for both versions.
The text was updated successfully, but these errors were encountered: