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
- PlayerPrefs get corrupted when a minimized fullscreen Player is closed through the Taskbar
- "To Debug, run app with -diag-job-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations." warning is printed when JobTempMemoryLeakValidation switch is enabled
- Main Thread stalling when loading Audio Source asset asynchronously while preloading another Audio Source asset
- Material artifacts occur in the Material Preview window when baked lighting is applied to scenes
- “ArgumentOutOfRangeException” after saving, reseting and re-add Default Tile Palette Tools to the list in Preferences window
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