How to reproduce:
1. Open the “SkinningBonesCrash.zip“ project
2. Open the “SampleScene“
3. Import the attached “SkinWeightScript.cs“ file
4. Create an Empty GameObject
5. Attach the “SkinWeightScript“ to the GameObject
6. Enter Play Mode
7. Observe the Editor
Expected results: The Editor enters Play Mode
Actual results: The Editor crashes
Reproducible in: 2021.3.41f1, 2022.3.39f1, 6000.0.12f1
Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested
Notes:
- Reproducible in the Player, and there are suspicions that this can affect any platform
- In the “Project Settings > Quality”, the “Skin Weights“ dropdown does not have an option for “None“, but Scripting API does
First 5 lines of the Stacktrace:
0x00007FF7C11B2F38 (Unity) SkinVerticesGenericCPU<255,1,1>
0x00007FF7C11B794C (Unity) SkinMeshCPU
0x00007FF7C11B7074 (Unity) DeformSkinnedMeshJob
0x00007FF7C120184A (Unity) ujob_execute_job
0x00007FF7C1200C7D (Unity) lane_guts