Null function or function signature mismatch

Hello everyone,
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
Screenshot (482)
Thank you

The error doesn’t say anything useful, except that Ammo crashed. It could have happened, if it was expecting a JavaScript function callback for something, but didn’t find it (not implemented?). Or if it was expecting A for an attribute of a method, but got B instead.

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

2 Likes