Open vaibhavsagar opened 5 months ago
@vaibhavsagar Thanks for reporting this.
120 128.3 panicked at 'capacity overflow', library/alloc/src/raw_vec.rs:517:5
Seems to related to memory? Could you check if it causes out of memory?
Thanks for your response! Where do you do think I'm running out of memory, is it the Docker daemon, and how would I check this? The computer I'm running this on has 32GB of RAM installed which I think should be enough?
I ran it again while watching htop
in a separate window and I got the same error even though total system RAM usage did not go above 3GB. I tried having docker stats
open as well but weirdly did not see anything.
It seems that wasi-vfs fails to package large files that are over several GB. I keep on investigating the root cause but, as a workaround, you can avoid the failure by using a smaller image. (On my machine, small-haskell
is 2.79GB
. Could you create smaller image if possible?)
Thanks for investigating! I also tried with haskell:slim-buster
and got the same error, even though it's a little smaller (2.28GB
). Do you know what the size limit is?
I managed to get this working with a <1.5GB container, I'm guessing the limit is 2GB.
Hi, I can't seem to get this working when I try to convert a container image built by Nix to WASM. Here's what my Nix expression looks like:
And here are the commands I'm running:
Am I using the tool incorrectly?