2019-09-20 at 2:00 pm #19067
Hi, This is my second and hopefully the last problem I have with my upcoming configurator. When I move my furnitures and play a couple of seconds with the collision feature I made with puzzles, I get a frozen WebGL screen with this message in the console :
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 allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 “). Build with -s ASSERTIONS=1 for more info. ammo.js:316:300
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 allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0
Maybe some sort of un infinite loop in my puzzles, but I remember someone had this kind of message with an older version of Verge3d.
Thanks for any help (and for the fast answers to my previous posts in this section)2019-09-20 at 2:30 pm #19070
This memory overflow error hints that your are using too high-poly meshes as physical objects. Try using Box shapes instead of Mesh whenever possible.
https://www.soft8soft.com/docs/manual/en/puzzles/Physics.html#create_physics_body2019-09-20 at 2:38 pm #19072
I actually use Box but I have a lot of “hidden” furnitures which are listed as collision objects. Do you think Physics is calculating collision for hidden objects ?2019-09-20 at 2:42 pm #190752019-09-20 at 2:46 pm #19076
Ouch. It means that while I’m gently playing with 2 or 3 furnitures, more than 30 others are fighting in silence !
Thank you. Im’ gonna try to activate Physics only for the elements actually in scene, and let you know if I get rid of the error message.2019-09-20 at 3:11 pm #19077
- You must be logged in to reply to this topic.