[SOLVED] What is this Ammo error?

failed to initialize module=Ammo error=wasm module aborted.

[ammo.wasm.js?id=189206084&branchId=4abe96f5-328f-4cbb-81d8-d9db76db44f4&t=6b7ab3989e4f9f17c86e44380f9181c6:20]: abort(OOM). Build with -s ASSERTIONS=1 for more info.

RuntimeError: abort(OOM). Build with -s ASSERTIONS=1 for more info.
at na (https://launch.playcanvas.com/api/assets/files/ammo.js/ammo.wasm.js?id=189206084&branchId=4abe96f5-328f-4cbb-81d8-d9db76db44f4&t=6b7ab3989e4f9f17c86e44380f9181c6:20:72)
at g (https://launch.playcanvas.com/api/assets/files/ammo.js/ammo.wasm.js?id=189206084&branchId=4abe96f5-328f-4cbb-81d8-d9db76db44f4&t=6b7ab3989e4f9f17c86e44380f9181c6:26:198)
at https://launch.playcanvas.com/api/assets/files/ammo.js/ammo.wasm.wasm?id=189206085&branchId=4abe96f5-328f-4cbb-81d8-d9db76db44f4&t=a6819ea71a53e67f1dfe3e42957c2971:wasm-function[93]:0x6efa
at https://launch.playcanvas.com/api/assets/files/ammo.js/ammo.wasm.wasm?id=189206085&branchId=4abe96f5-328f-4cbb-81d8-d9db76db44f4&t=a6819ea71a53e67f1dfe3e42957c2971:wasm-function[288]:0x1290d
at https://launch.playcanvas.com/api/assets/files/ammo.js/ammo.wasm.wasm?id=189206085&branchId=4abe96f5-328f-4cbb-81d8-d9db76db44f4&t=a6819ea71a53e67f1dfe3e42957c2971:wasm-function[1345]:0x4e494
at https://launch.playcanvas.com/api/assets/files/ammo.js/ammo.wasm.wasm?id=189206085&branchId=4abe96f5-328f-4cbb-81d8-d9db76db44f4&t=a6819ea71a53e67f1dfe3e42957c2971:wasm-function[1346]:0x4e4ab
at https://launch.playcanvas.com/api/assets/files/ammo.js/ammo.wasm.wasm?id=189206085&branchId=4abe96f5-328f-4cbb-81d8-d9db76db44f4&t=a6819ea71a53e67f1dfe3e42957c2971:wasm-function[1390]:0x52dc0
at https://launch.playcanvas.com/api/assets/files/ammo.js/ammo.wasm.wasm?id=189206085&branchId=4abe96f5-328f-4cbb-81d8-d9db76db44f4&t=a6819ea71a53e67f1dfe3e42957c2971:wasm-function[1386]:0x52684
at https://launch.playcanvas.com/api/assets/files/ammo.js/ammo.wasm.wasm?id=189206085&branchId=4abe96f5-328f-4cbb-81d8-d9db76db44f4&t=a6819ea71a53e67f1dfe3e42957c2971:wasm-function[1370]:0x516fc
at https://launch.playcanvas.com/api/assets/files/ammo.js/ammo.wasm.wasm?id=189206085&branchId=4abe96f5-328f-4cbb-81d8-d9db76db44f4&t=a6819ea71a53e67f1dfe3e42957c2971:wasm-function[1369]:0x516d0

Im in the middle of a game jam so any help would be appreciated.

Update: did some research, and took off the collision of the bullet. Now playcanvas just crashes.

Fixed it

Can you share the cause of this error please?

Sure, I did some research and it said that OOM meant out of memory, meaning that there were too many entities with collisions to too complex collisions. As I had held down the button that cloned the bullets, not just tapped, I opted for the too many collisions. I took off all the collisions and it crashed because of the entities. All I had to do was use setInterval for a timer so that too many didn’t spawn at once and crash.

1 Like

Great, thanks for sharing @Codeknight999!

No problem @Albertos !