You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ moon testtest tonyfettes/torch/internal/mnist/test.mbt::0 failed: RuntimeError: requested new array is too large
at moonbit.bytes_make (wasm://wasm/00034692:wasm-function[15]:0x92f)
at Bytes::new.fn/13 (wasm://wasm/00034692:wasm-function[37]:0xc2a)
at Buffer::grow_if_necessary.fn/20 (wasm://wasm/00034692:wasm-function[44]:0xe0b)
at Buffer::write_char.fn/21 (wasm://wasm/00034692:wasm-function[45]:0xe42)
at $moonbitlang/x/fs/internal/ffi.string_from_extern.fn/96 (wasm://wasm/00034692:wasm-function[127]:0x22a7)
at $moonbitlang/x/fs._read_to_string.fn/99 (wasm://wasm/00034692:wasm-function[130]:0x22de)
at $moonbitlang/x/fs.read_to_string.fn/101 (wasm://wasm/00034692:wasm-function[132]:0x2347)
at $tonyfettes/torch/internal/mnist.__test_746573742e6d6274_0.fn/103 (wasm://wasm/00034692:wasm-function[136]:0x24e1)
at $tonyfettes/torch/internal/mnist.__test_746573742e6d6274_0.clo/126 (wasm://wasm/00034692:wasm-function[23]:0xa31)
at *main*/130 (wasm://wasm/00034692:wasm-function[149]:0x27bb)
Total tests: 1, passed: 0, failed: 1.
The text was updated successfully, but these errors were encountered:
For a file that is larger than some limit (400M in my case),
@fs.read_to_string!
will report that the allocation is too large for the runtime.Environment
Backend: WasmGC
Version:
Steps to reproduce
Create a project folder with following content:
main.mbt
:moon.mod.json
:moon.pkg.json
:Download a large file.
Decompress the gzip-ed JSON file.
Install dependencies
Run the test
The text was updated successfully, but these errors were encountered: