How to reproduce:
1. Extract and open the attached “IN-132815.zip“ project
2. Open the Assets/Scene/SampleScene.unity scene
3. Open the Project’s solution in Rider
4. In Rider Navigate to the Assets folder
5. Open the “Example.cs” Script
6. Click on the “Unity” logo looking icon and select “Attach to Unity Editor“
7. Create a breakpoint at line 15: “if (targetCollider != null“
8. Navigate back to the Unity Editor
9. Enter Play mode and wait for the breakpoint to activate
10. Once the focus switches back to Rider, try to expand and otherwise inspect the “targetCollider” variable
11. Observe the crash
Reproducible with: 6000.3.0a1, 6000.3.9f1, 6000.4.0b9, 6000.5.0a7
Not reproducible with: 6000.0.68f1, 6000.2.0b2
Reproducible on: Ubuntu 22.04, macOS 26.2 (M1 Silicon), Windows 11
Notes:
- This only happens with spawned GameObjects
- The crash also occurs when using Visual Studio 2022
First few lines of stacktrace:
0x00007FFF22029966 (Unity) Physics::PhysxCompatibility::GetGeometryHolderFromCollider
0x00007FFF21442BB5 (Unity) PhysXGeometryHolderExtension_CUSTOM_GetGeometryHolder
0x000002412A95DCF8 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.LowLevelPhysics.PhysXGeometryHolderExtension:GetGeometryHolder_Injected (intptr,UnityEngine.LowLevelPhysics.GeometryHolder&)
0x000002412A95DB13 (Mono JIT Code) UnityEngine.LowLevelPhysics.PhysXGeometryHolderExtension:GetGeometryHolder (UnityEngine.Collider)
0x000002412A95D48B (Mono JIT Code) UnityEngine.Collider:get_GeometryHolder ()