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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Uninitialized variable warning appears in the Inspector of a custom shader when the variable is initialized
- "Failed creating toolbar element from ID..." error is thrown when resetting the Scene view Overlay layout while an Asset Transformer Toolbox overlay is active
- Entity ID for Font Assets is serialized twice which throws an error when using Debug Inspector
- Play Mode can be entered when disabling Adaptive Performance and pressing either the Play Mode button or the keyboard shortcut to enter Play Mode before recompilation leading to errors and warnings thrown
- Parent ListView element also becomes selected when inner ListView element is selected
Resolution Note (fix version 2021.3.19f1):
Back-ported a fix from a newer PhysX version
Resolution Note (fix version 2021.3.19f1):
This is an exact copy of UUM-24659 that was created by accident