Skip to content

Bullet Physics: memory access out of bounds #18613

Open
@GeTechG

Description

@GeTechG

Cocos Creator version

3.8.5

System information

Windows 11

Issue description

There is a complete freeze of the engine and a bunch of errors at random times, and I could not understand the specific reasons, from my observations the bug is observed when there is a new collision with something, conditionally the player goes into the trigger. Also I used in the project Configurable constraint, PointToPointConstraint maybe it will help.

Relevant error log output

Uncaught RuntimeError: memory access out of bounds
    at 001ca272:0x19291
    at 001ca272:0x36c8c
    at 001ca272:0x3875b
    at 001ca272:0x38964
    at 001ca272:0x68e46
    at 001ca272:0x65ab9
    at Object.DynamicsWorld_stepSimulation (bullet.release.wasm.js:10:32466)
    at BulletWorld.step (bullet-world.ts:196:12)
    at PhysicsSystem.postUpdate (physics-system.ts:367:39)
    at Director.tick (director.ts:791:38)

Steps to reproduce

Complex scene with many colliders, Configurable constraint, PointToPointConstraint.
Take the ball, throw it into the trigger, and then walk around the trigger, it may not work right away, you need to turn around sharply and crash in, you may need to restart a few times.

Bandicam.2025-04-15.19-36-52-531.mp4

Minimal reproduction project

test_PHYS_BUG.zip

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions