wasm-vk icon indicating copy to clipboard operation
wasm-vk copied to clipboard

one data segment error

Open kenorb opened this issue 3 years ago • 0 comments

For the testing purposes, I've tried to run secp256k1.wasm (build from aspectron/secp256k1-wasm), but the following error happens:

wasm-vk$ RUST_BACKTRACE=1 ./target/debug/wasm-vk secp256k1.wasm 
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `2`,
 right: `1`: wasm-vk currently only supports one data segment!', src/spirv.rs:199:17
stack backtrace:
   0: rust_begin_unwind
             at /build/rustc-x6z3hG/rustc-1.59.0+dfsg1~ubuntu1~llvm/library/std/src/panicking.rs:498:5
   1: core::panicking::panic_fmt
             at /build/rustc-x6z3hG/rustc-1.59.0+dfsg1~ubuntu1~llvm/library/core/src/panicking.rs:116:14
   2: core::panicking::assert_failed_inner
   3: core::panicking::assert_failed
             at /build/rustc-x6z3hG/rustc-1.59.0+dfsg1~ubuntu1~llvm/library/core/src/panicking.rs:154:5
   4: wasm_vk::spirv::Ctx::imports
             at ./src/spirv.rs:199:17
   5: wasm_vk::spirv::Ctx::module
             at ./src/spirv.rs:136:9
   6: wasm_vk::main
             at ./src/main.rs:86:13
   7: core::ops::function::FnOnce::call_once
             at /build/rustc-x6z3hG/rustc-1.59.0+dfsg1~ubuntu1~llvm/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

What is missing?

kenorb avatar Jun 21 '22 14:06 kenorb