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

panic during trunk build #318

Closed
felixwatts opened this issue Feb 14, 2022 · 2 comments
Closed

panic during trunk build #318

felixwatts opened this issue Feb 14, 2022 · 2 comments

Comments

@felixwatts
Copy link

When I run trunk build an error message is printed:

thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', /home/felix/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/wasm-bindgen-cli-support-0.2.78/src/descriptor.rs:205:15
stack backtrace:
   0: rust_begin_unwind
             at /rustc/ac50a53359328a5d7f2f558833e63d59d372e4f7/library/std/src/panicking.rs:517:5
   1: core::panicking::panic_fmt
             at /rustc/ac50a53359328a5d7f2f558833e63d59d372e4f7/library/core/src/panicking.rs:101:14
   2: core::panicking::panic_bounds_check
             at /rustc/ac50a53359328a5d7f2f558833e63d59d372e4f7/library/core/src/panicking.rs:77:5
   3: wasm_bindgen_cli_support::descriptor::Descriptor::_decode
   4: wasm_bindgen_cli_support::descriptor::Function::decode
   5: wasm_bindgen_cli_support::descriptor::Descriptor::_decode
   6: wasm_bindgen_cli_support::descriptors::execute
   7: wasm_bindgen_cli_support::Bindgen::generate_output
   8: wasm_bindgen_cli_support::Bindgen::generate
   9: wasm_bindgen::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Feb 14 22:38:40.354 ERROR ❌ error
error from HTML pipeline

Caused by:
    0: error from asset pipeline
    1: wasm-bindgen call returned a bad status

Stack backtrace:
   0: anyhow::error::<impl anyhow::Error>::msg
   1: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   2: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   3: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   4: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   5: tokio::runtime::task::harness::poll_future
   6: tokio::runtime::task::raw::poll
   7: tokio::runtime::thread_pool::worker::Context::run_task
   8: tokio::runtime::task::raw::poll
   9: std::sys_common::backtrace::__rust_begin_short_backtrace
  10: core::ops::function::FnOnce::call_once{{vtable.shim}}
  11: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/ac50a53359328a5d7f2f558833e63d59d372e4f7/library/alloc/src/boxed.rs:1636:9
  12: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/ac50a53359328a5d7f2f558833e63d59d372e4f7/library/alloc/src/boxed.rs:1636:9
  13: std::sys::unix::thread::Thread::new::thread_start
             at /rustc/ac50a53359328a5d7f2f558833e63d59d372e4f7/library/std/src/sys/unix/thread.rs:106:17
  14: start_thread
             at ./nptl/./nptl/pthread_create.c:435:8
  15: __clone
             at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:100
Error: error from HTML pipeline

Caused by:
    0: error from asset pipeline
    1: wasm-bindgen call returned a bad status

Stack backtrace:
   0: anyhow::error::<impl anyhow::Error>::msg
   1: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   2: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   3: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   4: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   5: tokio::runtime::task::harness::poll_future
   6: tokio::runtime::task::raw::poll
   7: tokio::runtime::thread_pool::worker::Context::run_task
   8: tokio::runtime::task::raw::poll
   9: std::sys_common::backtrace::__rust_begin_short_backtrace
  10: core::ops::function::FnOnce::call_once{{vtable.shim}}
  11: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/ac50a53359328a5d7f2f558833e63d59d372e4f7/library/alloc/src/boxed.rs:1636:9
  12: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/ac50a53359328a5d7f2f558833e63d59d372e4f7/library/alloc/src/boxed.rs:1636:9
  13: std::sys::unix::thread::Thread::new::thread_start
             at /rustc/ac50a53359328a5d7f2f558833e63d59d372e4f7/library/std/src/sys/unix/thread.rs:106:17
  14: start_thread
             at ./nptl/./nptl/pthread_create.c:435:8
  15: __clone
             at ./misc/../sysdeps/unix/sysv/linux/x86_64/clone.S:100
@lukechu10
Copy link
Contributor

Make sure you're using the latest version of wasm-bindgen. This is a wasm-bindgen issue, not a trunk issue

@dnaka91
Copy link
Contributor

dnaka91 commented Apr 11, 2022

I'll close this for now.

Don't hesitate to open the issue again, if you still have trouble compiling after updating your wasm-bindgen version.

@dnaka91 dnaka91 closed this as completed Apr 11, 2022
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