Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Bug Cloth Crash on 2019.4.25

Discussion in 'Physics' started by LightStriker, May 13, 2021.

  1. LightStriker

    LightStriker

    Joined:
    Aug 3, 2013
    Posts:
    2,717
    We updated from 2019.4.20 to 2019.4.25.

    Now all our cloth on character equipment crashes.

    If I go and edit a prefab in text mode to disable the Cloth component, I get this in the Editor;

    Code (CSharp):
    1. IndexOutOfRangeException: Index was outside the bounds of the array.
    2. UnityEditor.ClothInspector.InitSelfAndInterCollisionSelection () (at <d4ac95dcd11e4742ab912a6127ca6eb7>:0)
    3. UnityEditor.ClothInspector.InitInspector () (at <d4ac95dcd11e4742ab912a6127ca6eb7>:0)
    4. UnityEditor.ClothInspector.OnEnable () (at <d4ac95dcd11e4742ab912a6127ca6eb7>:0)
    Here's the crash callstack
    Code (CSharp):
    1. 0x00007FF6A8A86CFA (Unity) DeformSkinnedMesh
    2. 0x00007FF6A9A2CA31 (Unity) Unity::Cloth::Create
    3. 0x00007FF6A9A2BF3A (Unity) Unity::Cloth::AwakeFromLoad
    4. 0x00007FF6A7843676 (Unity) AwakeFromLoadQueue::InvokePersistentManagerAwake
    5. 0x00007FF6A7844140 (Unity) AwakeFromLoadQueue::PersistentManagerAwakeFromLoad
    Anybody else has experienced this?

    EDIT:
    We found out Cloth now crashes if the SkinnedMeshRenderer has NULL bones. Since we have equipement we put on players, we use the player's bones. Looks like now having NULL bones in a prefab is bad.
     
    Last edited: May 13, 2021
  2. prof_jerz

    prof_jerz

    Joined:
    Dec 16, 2018
    Posts:
    6
    Thanks for the update. Any idea how to fix this problem on something that does't have bones -- a flag? I assume we have to add a bone -- something I guess I'll be Googling next?