ffmpegwasm / ffmpegwasm/ffmpeg.wasm

RuntimeError: memory access out of bounds - after a lot of mp3 conversion

未关闭
#563 5 条评论 9 个 reaction 已指派 0 人 在 GitHub 查看
triage
主要语言
C
星标
17.8k
派生
1.1k
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**
My app needs to convert a list of audio file to a specific mp3 configuration. It does that sequentially, file after file.

But sometimes I get a `RuntimeError: memory access out of bounds`, usually after a certain amount of conversion.

Once I got this, any new conversion throws the same until I reload ffmpeg.

FFmpeg doesn't log anything related to this. After I have the error the first time, it's thrown before any logs come out of ffmpeg when trying to convert.

It doesn't happen with version 11.6

One more thing : the error is thrown by the "exec" command. The writing of the file to prepare conversion works fine.

**To Reproduce**
The code lives in this function: https://github.com/olup/lunii-admin-web/blob/fa27b4275a49166afaf8f5d0a17741bc5275aa72/src/utils/convertors/audio.ts#L31

**Expected behavior**
I would think I'd be able to do as many conversions as I need

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: reported on macos and I beleive windows too
- Browser: chrome
- Version: 0.12.4

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。