r4victor / syncabook

📖🎧 A tool for creating ebooks with synchronized text and audio (EPUB3 with Media Overlays)
MIT License
264 stars 27 forks source link

malloc() failed when allocating D_matrix #11

Open ravigupta-art opened 2 years ago

ravigupta-art commented 2 years ago

I have been getting this error when using a docker image on raspberry pi

marknefedov commented 2 years ago

Same error on Fedora 35 x86_64

marknefedov commented 2 years ago

Solved by enabling overcommit.

ravigupta-art commented 2 years ago

@markusgod How to enable overcommit?

marknefedov commented 2 years ago

https://github.com/r4victor/afaligner/issues/2

bridgewaterrobbie commented 1 year ago

This also happened to me when using docker. Not sure if there is a good way to do overcommit there.

marknefedov commented 1 year ago

Docker shares kernel with the host, so you need to enable overcommit on the host. https://forums.docker.com/t/how-to-set-the-vm-overcommit-memory-parameter-when-running-docker-desktop-on-win11/130691

versae commented 1 year ago

I had the same issue in Linux and as suggested by @markusgod, running the next code before invoking syncabook made it work for me.

$ echo 1 | sudo tee /proc/sys/vm/overcommit_memory