WebAssembly Memory Limit Error: "Cannot enlarge memory arrays" in engine-wasm.js

Note:- Version of WebViewer 2023 SP1

Hi team,

I’m encountering a WebAssembly memory issue while working with HOOPS Communicator. The application crashes with the following error:

engine-wasm.js:846 Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 2066874368, (2) compile with -s ALLOW_MEMORY_GROWTH=1, or (3) compile with -s ABORTING_MALLOC=0

It appears the WASM heap is reaching ~2GB and failing to grow further.


Environment

  • HOOPS Communicator Version: (mention your version)

  • Browser: (Chrome / Edge / version)

  • OS: (Windows / macOS)


Observations

  • Memory keeps increasing during interactions

  • Crash happens after prolonged usage or multiple updates

  • Likely hitting browser WASM memory limit (~2GB)


Thanks in advance!

Are you loading an SCS file? If so, for large models, SCS is really designed for smaller models, as mentioned in our docs:

Choose SCS when only small models will be viewed.

Also, you are using an older version of Communicator (now called Visualize Web). We’ve since made performance improvements in loading models in new versions.