ffmpegwasm / ffmpegwasm/ffmpeg.wasm

RuntimeError: abort(LinkError: WebAssembly.instantiate(): Import #258 module="a" function="Rd" error: function import requires a callable)

オープン
#314 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C
スター
17.8k
フォーク
1.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

**Describe the bug**
Approximately 50% of the time we run into this issue in the console which prevents ffmpeg wasm from running.

`Uncaught (in promise) RuntimeError: abort(LinkError: WebAssembly.instantiate(): Import #258 module="a" function="Rd" error: function import requires a callable). Build with -s ASSERTIONS=1 for more info.`

![image](https://user-images.githubusercontent.com/19605764/151019948-8190da00-00b0-402b-9f29-b557b658c966.png)

We are using version 0.9.7 of @ffmpeg/ffmpeg.

How we are instantiating ffmpeg:

```
const ffmpeg = createFFmpeg({
log: false,
corePath: 'https://unpkg.com/@ffmpeg/core@0.10.0/dist/ffmpeg-core.js',
});
```

Note this issue **did not** occur before chrome implemented cross origin isolation requiring headers.

Things we have tried:

1. Updating to latest versions of @ffmpeg/ffmpeg + ffmpeg/core
2. Setting the core path manually

This issue does not occur when:

We remove `Cross-Origin-Opener-Policy: same-origin` and `Cross-Origin-Embedder-Policy: require-corp` headers, and launch chrome with flag to enable SharedBufferArray (but we can't really tell users of our app to run chrome with this flag on every time).

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。