ffmpeg.wasm icon indicating copy to clipboard operation
ffmpeg.wasm copied to clipboard

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

Open olup opened this issue 2 years ago • 5 comments

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

olup avatar Aug 24 '23 20:08 olup

Same in Ubuntu using Vite+React and ffmpeg.wasm 0.12.7

Were you able to solve the issue?

Soykertje avatar Dec 09 '23 11:12 Soykertje

did you resolve it? My song converter app struggles the same problem

piscopancer avatar Jan 07 '24 11:01 piscopancer

same on:

YolineWu avatar Jan 20 '24 06:01 YolineWu

still no updates on this?

Oniely avatar Aug 13 '24 11:08 Oniely