ffmpegwasm / ffmpegwasm/ffmpeg.wasm

RuntimeError: memory access out of bounds when using exec multiple times in a row

Open
#820 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
17.8k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When repeatedly executing an ffmpeg operation (using `ffmpeg.exec`) either in a loop or manually by clicking a button, after few tens of operations (minimum was 15, maximum was 65 depending on the complexity) the worker dies with `RuntimeError: memory access out of bounds` error.

**To Reproduce**
Repeatedly call exec method of the same worker. Reproduced with all exec arguments I tried.

**Expected behavior**
Worker not dying and completing operations as needed.

**Desktop (please complete the following information):**
- OS: MacOS
- Browser chrome, safari

**Extra**

The problem does not happen with reloading the worker between execs.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.