In Game Play scene while I was playing ,I got error saying “Error loading scripts. Open the browser console for details.” In console it was displaying this error of Ammo.wasm
You could compile a custom Ammo without any optimizations to see a better callstack. However, if it doesn’t happen always, it will be hard to debug. Try to remember what you did when error happened and see if you can reproduce it easily.
I don’t know which version you are running, but I would update the Ammo.js file trio: https://github.com/playcanvas/engine/tree/main/examples/src/lib/ammo