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

binaryen has version requirements. The building guide is a little bit confusing. #19039

Open
e899b9 opened this issue Dec 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@e899b9
Copy link

e899b9 commented Dec 22, 2024

Describe the bug

I encoutered a bug of self-hosted Ruffle building from sources.
Building process completes without any issues.
However, the following error is raised when loading Ruffle player:

Error name: RangeError
Error message: WebAssembly.Table.grow(): failed to grow table by 4

And, I realized that

  • It happens from "nightly-2024-10-19", i.e., wasm-bindgen-cli>=0.2.95
  • It is caused by using an old version of binaryen and I was able to build successfully using "binaryen version 121".

The building guide says that

using your Linux distribution's package manager (sudo apt install binaryen, sudo dnf install binaryen)

However, "wasm-opt version 108" provided via APT causes the above issue.
This is the source of confusion.
I think it would be better to specify the version requirements for wasm-opt in the building process.

Thanks.

Expected behavior

Finish loading Ruffle player.

Content Location

The bug is not related to the specific Flash content.

Affected platform

Self-hosted version

Operating system

Ubuntu-24.04 under WSL-2

Browser

Mozilla Firefox 133, Google Chrome 131, Microsoft Edge 131

Additional information

Version of Ruffle

nightly-2024-12-21

Version of Requirements

rustc 1.83.0
openjdk 21.0.5
Node.js v22.12.0
npm 11.0.0
wasm-bindgen-cli v0.2.97
wasm-opt version 108

@e899b9 e899b9 added the bug Something isn't working label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant