WASM version not working: Cannot read properties of undefined (reading 'buffer')
envgap__ggml-org__whisper.cpp-3059-pr3134
01 / FAILURE SIGNATURE
As reported upstream
main.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'buffer')
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
97916476537245463d47c25cf800dd2275c76fcd- Manifest
examples/bench.wasm/CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
ggml-org/whisper.cpp #3059 · read the original issue
I am running WebAssembly version from the demo website (https://ggml.ai/whisper.cpp/) and it doesn't work for me at all. Steps to reproduce:
1. Windows 10 19045.5737, Chrome version: 135.0.7049.43
2. Go to https://ggml.ai/whisper.cpp/
3. Download any model, for example base-q5_1
4. Choose any wav file or get input from microphone
5. Click Transcribe
Result: nothing happens, browser window stops accepting mouse clicks. In dev console the following error appears:

Text:
```helpers.js:14 js: processing - this might take a while ...
helpers.js:14
main.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'buffer')
at __emval_get_property (main.js:1:1363053)
at 003a4462:0xc49cf
at 003a4462:0xc5157
at Object.full_default (eval at craftInvokerFunction (main.js:1:1), <anonymous>:9:10)
at whisper.cpp/:647:42
```
I have tried to build whisper.cpp and run it locally but result is the same. How can this be fixed?04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]