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-pack build panics on Installing wasm-bindgen... step #1229

Open
Niedzwiedzw opened this issue Feb 16, 2023 · 2 comments
Open

wasm-pack build panics on Installing wasm-bindgen... step #1229

Niedzwiedzw opened this issue Feb 16, 2023 · 2 comments

Comments

@Niedzwiedzw
Copy link

Niedzwiedzw commented Feb 16, 2023

Finished release [optimized] target(s) in 0.08s
[INFO]: License key is set in Cargo.toml but no LICENSE file(s) were found; Please add the LICENSE file(s) to your project directory
[INFO]: Installing wasm-bindgen...
thread 'main' panicked at 'unknown instruction Block(Block { seq: Id { idx: 1 } })', crates/wasm-interpreter/src/lib.rs:367:18
stack backtrace:
0: rust_begin_unwind
1: core::panicking::panic_fmt
2: wasm_bindgen_wasm_interpreter::Interpreter::call
3: wasm_bindgen_wasm_interpreter::Interpreter::interpret_descriptor
4: wasm_bindgen_cli_support::descriptors::execute
5: wasm_bindgen_cli_support::Bindgen::generate_output
6: wasm_bindgen_cli_support::Bindgen::generate
7: wasm_bindgen::main
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
Error: Running the wasm-bindgen CLI
Caused by: failed to execute wasm-bindgen: exited with exit status: 101
full command: "/home/niedzwiedz/.cache/.wasm-pack/wasm-bindgen-5f26acfc988649a3/wasm-bindgen" "/home/niedzwiedz/crionis/crio-app/target/wasm32-unknown-unknown/release/editor.wasm" "--out-dir" "/home/niedzwiedz/crionis/crio-app/pkg" "--typescript" "--target" "bundler" "--out-name" "index"

EDIT: https://github.com/rustwasm/wasm-bindgen/blob/629a623adfe27c67a21408c120d3466965575e45/crates/wasm-interpreter/src/lib.rs#L367 this is the line that crashes

@Niedzwiedzw Niedzwiedzw changed the title installing wasm-bindgen panics wasm-pack build panics on Installing wasm-bindgen... step Feb 16, 2023
@hucancode
Copy link

hucancode commented Apr 1, 2023

I also got panic with wasm-pack new hello-wasm

    Finished dev [unoptimized + debuginfo] target(s) in 55.38s
     Running `target/debug/wasm-pack new hello-wasm`
[INFO]: ⬇️  Installing cargo-generate...
fish: Job 1, 'cargo run -- new hello-wasm' terminated by signal SIGSEGV (Address boundary error)

I guess my case is more related to this #1245

@drager
Copy link
Member

drager commented Jun 17, 2023

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

3 participants