Search Issue Tracker

Fixed in 2017.1.X



Found in


Issue ID




Crash in physx::PxsBroadPhaseContextSap::batchUpdate after indeterminate time in play mode



Reproduction steps:
1. Open project attached (
2. Open scene crashtest1.
3. Press play.
4. Wait for 1-3 minutes.

Expected result: Unity will keep working.
Actual result: Unity crashes.

Notes: It might be related to object creation/destruction but it is not totally clear which kinds of objects will trigger it and which will not.

Reproduced on: 5.5.0f3, 5.5.0p4, 5.5.1p3, 5.6.0b7.
Works fine on: 5.5.0b11.
Regression introduced in: 5.5.0f1

Comments (22)

  1. freyaprogrammer

    Feb 23, 2017 16:27

    Here is how to reproduce it:
    create a new scene
    make a gameobject with rigidbody set to kinematic (gravity off)
    create two child objects with quad mesh + meshcollider

    create new script:
    public GameObject[] Collider; //both children objects
    public GameObject Mother; //parent object

    void Update () {
    Mother.transform.localScale = UnityEngine.Random.insideUnitSphere;
    for (int i = 0; i < Collider.Length; i++)
    Collider[i].SetActive(Random.Range(0f, 1f) < 0.5f);


    put it into scene - assign the objects -> press play and it crashes after a few seconds

  2. freyaprogrammer

    Feb 23, 2017 14:56

    In my case it seems to occur when rapidly enabling/disabling Mesh Collider over a Quad while also scaling it

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.