Search Issue Tracker

Fixed

Fixed in 2021.3.19f1

Votes

0

Found in

2020.3.44f1

2021.3.17f1

Issue ID

UUM-23140

Regression

No

[Physics] Build crashes in UnityEngine.Physics:Simulate_Internal_Injected when many objects are spawned at the same spot

--

-

Steps to reproduce:
1. Open the attached user's project "Collision Memory Bug Repro.zip"
2. Perform a Windows build
3. Open the CMD and navigate to the built Player folder
4. Run the Player via CMD: "Collision Memory Bug Repro.exe" -debugallocator
5. In the Player, press "1" from the keyboard, and will see the crash shortly

Expected results: Player does not crash
Actual results: The player crashes after pressing the key "1".

Reproducible on: 2020.3.44f1, 2021.3.17f1
Not reproducible on: 2022.2.3f1, 2023.1.0a25

Notes:
-On 2022.2.x and 2023.1.x warning is outputted in the console which might be the reason it's not reproducible on those streams:
Assets\Scripts\ColliderTestManager.cs(13,9): warning CS0618: 'Physics.autoSimulation' is obsolete: 'Physics.autoSimulation has been replaced by Physics.simulationMode'

Stack trace:
0x000001E66009FB8F (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Physics:Simulate_Internal_Injected (UnityEngine.PhysicsScene&,single)
0x000001E66009FABB (Mono JIT Code) UnityEngine.Physics:Simulate_Internal (UnityEngine.PhysicsScene,single)
0x000001E66009F74B (Mono JIT Code) [C:\build\output\unity\unity\Modules\Physics\ScriptBindings\Dynamics.bindings.cs:1481] UnityEngine.Physics:Simulate (single)
0x000001E66009F173 (Mono JIT Code) [D:\Cases\IN-28998_Collision Memory Bug Repro\Assets\Scripts\ColliderTestManager.cs:26] ColliderTestManager:Update ()
0x000001E65FF56878 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FF8DB04FEB4 (mono-2.0-bdwgc) mono_jit_set_domain
0x00007FF8DAF8E764 (mono-2.0-bdwgc) mono_object_get_virtual_method
0x00007FF8DAF8E8FC (mono-2.0-bdwgc) mono_runtime_invoke

  1. Resolution Note (fix version 2021.3.19f1):

    Back-ported a fix from a newer PhysX version

  2. Resolution Note (fix version 2021.3.19f1):

    This is an exact copy of UUM-24659 that was created by accident

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.