Skip to content

Build client WASM fails with Rust 1.85 #2325

Closed
@jpraynaud

Description

@jpraynaud

Why

The build of the WASM client fails in the CI since the release of Rust 1.85.

⚠️ This currently blocks the delivery pipeline.

The error is:

[INFO]: ⬇️  Installing wasm-bindgen...
thread 'main' panicked at crates/wasm-interpreter/src/lib.rs:245:21:
mithril_common::signable_builder::interface::_::__ctor::h4977fb9f7c35308c: Read a negative address value from the stack. Did we run out of memory?
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: Running the wasm-bindgen CLI
Caused by: Running the wasm-bindgen CLI
Caused by: failed to execute `wasm-bindgen`: exited with exit status: 101
  full command: "/home/jp/.cache/.wasm-pack/wasm-bindgen-c59d5019a2b42393/wasm-bindgen" "/home/jp/Works/Cardano/Mithril/mithril/target/wasm32-unknown-unknown/release/mithril_client_wasm.wasm" "--out-dir" "/home/jp/Works/Cardano/Mithril/mithril/mithril-client-wasm/dist/node" "--typescript" "--target" "nodejs"
make: *** [Makefile:13: build] Error 1

See https://github.com/input-output-hk/mithril/actions/runs/13441903928/job/37559631936#step:5:203 for more details

What

Investigate and fix the problem

How

  • Investigate the problem
  • Create a fix

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions