NVIDIAGameWorks / PhysX-3.4

NVIDIA PhysX SDK 3.4
https://www.nvidia.com/
2.35k stars 273 forks source link

Memory corruption when adding more than 65536 shapes to a static actor #72

Closed Zeblote closed 5 years ago

Zeblote commented 6 years ago

Adding the shapes seems to work fine at first, however the list keeping track of shapes in the actor begins overwriting itself. At this point, it is no longer possible to remove the shapes and destroying the actor will leave the shapes in the scene. Things still collide with them as if nothing happened.

Then your game probably crashes because you were expecting those shapes to be removed and whatever their userdata pointed at no longer exists when handling collision events.

sschirm commented 6 years ago

Thanks, I added it to our internal bug tracking system. Did you have a look whether there is a warning message in checked/debug builds?