wasmi: Wasmi versions `0.32.0-beta.6` cannot run `ffmpeg.wasm` correctly

  1. put wasmi_cli in your path https://github.com/yamt/toywasm/blob/master/benchmark/notes.md#wasmi
  2. checkout toywasm https://github.com/yamt/toywasm and cd into the directory
  3. run the following
(venv) spacetanuki% ./test/run-ffmpeg.sh wasmi_cli --dir .video --
executing File(".ffmpeg/ffmpeg.wasm")::_start() ...
.video/video-1080p-60fps-2s.mp4: Invalid data found when processing input
(venv) spacetanuki% 

0.32.0-beta.5 doesn’t work. 0.32.0-beta.6 doesn’t work. today’s master (352f8ae72c0d8f7c46b8c1beba01342ae5a1a89b) doesn’t work. v0.31.0 works.

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 20

Commits related to this issue

Most upvoted comments

How did you make WAMR fast interpreter print the instructions? That’s pretty handy.

it only has a primitive printf-style logging. (WASM_DEBUG_PREPROCESSOR) i performed a cumbersome manual post-processing. that’s one of reasons why i prefer smaller test cases. 😃

I also wanted to implement something like this in Wasmi with its own bytecode for inspection and debugging purposes.

yea, it would be great to have. almost must to have i suspect.

forgot to note: it’s macOS/x86-64 if it matters.

spacetanuki% sw_vers
ProductName:    macOS
ProductVersion: 12.7.2
BuildVersion:   21G1974
spacetanuki% 

Ideally can you provide me with the ffmeq.wasm file that you have used so that I can properly reproduce?

you can download it from https://assets.runno.dev/ffmpeg/ffmpeg.wasm

the script automatically download it: https://github.com/yamt/toywasm/blob/b73e2ae6403ce18e477a884ab8634d1d7c840dda/test/run-ffmpeg.sh#L48