Weird Error, Running out of memeory

I am seeing this error, anyone run into this before?

uncaught exception: abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 67108864, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ") at jsStackTrace@https://code.playcanvas.com/ammo.dcab07b.js:7:15014

I am applying rigid body to 500 elements. Here is the full error:

Blockquote

uncaught exception: abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 67108864, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ") at jsStackTrace@https://code.playcanvas.com/ammo.dcab07b.js:7:15014
stackTrace@https://code.playcanvas.com/ammo.dcab07b.js:7:15185
abort@https://code.playcanvas.com/ammo.dcab07b.js:23:191516
abortOnCannotGrowMemory@https://code.playcanvas.com/ammo.dcab07b.js:7:16035
enlargeMemory@https://code.playcanvas.com/ammo.dcab07b.js:7:16480
ho@https://code.playcanvas.com/ammo.dcab07b.js:16:1
jc@https://code.playcanvas.com/ammo.dcab07b.js:14:1
gf@https://code.playcanvas.com/ammo.dcab07b.js:12:1
Cm@https://code.playcanvas.com/ammo.dcab07b.js:16:1
gn@https://code.playcanvas.com/ammo.dcab07b.js:16:1
xi@https://code.playcanvas.com/ammo.dcab07b.js:11:1
yr@https://code.playcanvas.com/ammo.dcab07b.js:16:1
Ll@https://code.playcanvas.com/ammo.dcab07b.js:16:1
to@https://code.playcanvas.com/ammo.dcab07b.js:16:1
Kh@https://code.playcanvas.com/ammo.dcab07b.js:11:1
Mc@https://code.playcanvas.com/ammo.dcab07b.js:13:1
og@https://code.playcanvas.com/ammo.dcab07b.js:11:1
fs@https://code.playcanvas.com/ammo.dcab07b.js:16:1
AmmoLib/btDiscreteDynamicsWorld.prototype.stepSimulation@https://code.playcanvas.com/ammo.dcab07b.js:23:228950
onUpdate@https://code.playcanvas.com/playcanvas-stable.dbg.js:28966:5
_helper@https://code.playcanvas.com/playcanvas-stable.dbg.js:23452:7
update@https://code.playcanvas.com/playcanvas-stable.dbg.js:23459:5
update@https://code.playcanvas.com/playcanvas-stable.dbg.js:22867:5
makeTick/<@https://code.playcanvas.com/playcanvas-stable.dbg.js:23250:7

If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

cc: @will

Sounds like a limitation of ammo.js? (The library that is used for the physics limitation). Very little that you can do about that unless you compile and replace with your own version of ammo.js.