asterius
asterius copied to clipboard
JavaScript heap out of memory
Describe the bug I try to convert docx to html and get errors from terminal, eg. 'JavaScript heap out of memory'.
btw, I convert T.Text to T.Text, like markdown to html, is successful,and I convert BSL.ByteString to T.Text is block by (reader def input)
To Reproduce code: https://github.com/pasicopan/wasm-pandoc
// test in broswer
git clone https://github.com/pasicopan/wasm-pandoc
cd wasm-pandoc
make start
// test in nodejs
git clone https://github.com/pasicopan/wasm-pandoc
cd wasm-pandoc
make startNode
cd _build/asterius
node --experimental-wasi-unstable-preview1 --trace-warnings wasm-pandoc.mjs
Expected behavior convert BSL.ByteString to T.Text, eg. 'docx' to 'html' successful
Environment
- MacOS: 12.2.1 (21D62)
- docker: mac docker app v4.5.0 (74594)
- nodejs: 16.13.1
- browser: mac chrome v96.0.4664.110