ffmpegwasm / ffmpegwasm/ffmpeg.wasm

wasm-ld: error: initial memory too small

Open
#317 1 comment 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

![image](https://user-images.githubusercontent.com/18612047/151758879-7b8a4f71-eff7-4dfe-8e34-ea46734789c6.png)

When I was customizing the configure file, I reported an "initial memory too small" error during the build process. I tried to make changes to the "INITIAL_MEMORY" and "ALLOW_MEMORY_GROWTH" properties, but it didn't seem to work, the error still exists!

![image](https://user-images.githubusercontent.com/18612047/151758949-19391e81-97ea-4259-90aa-e79067ca9631.png)

So I made a forcible modification to emscripten's settings.js file, and it worked. Here's how
1. Copy the settings.js file and modify the default properties
![image](https://user-images.githubusercontent.com/18612047/151759520-a2989085-a39f-4709-b481-c500ef8818b4.png)

2. Move the modified setting.js file to build.sh
![image](https://user-images.githubusercontent.com/18612047/151759698-d64282ef-6708-4bda-aae6-239f08b28330.png)

Is there a final solution here?

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.