tweag / asterius

DEPRECATED in favor of ghc wasm backend, see https://www.tweag.io/blog/2022-11-22-wasm-backend-merged-in-ghc
1.98k stars 55 forks source link

JavaScript heap out of memory #895

Open pasicopan opened 2 years ago

pasicopan commented 2 years ago

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