Search Issue Tracker

In Progress

Fix In Review for 2021.3.38f1

Votes

0

Found in

2021.3.35f1

Issue ID

UUM-64913

Regression

No

Crash on PhysicsManager2D::Simulate when a Prefab is spawned in Play Mode

--

-

Reproduction steps:
1. Open the “repro-project“
2. Open the “SampleScene“
3. Enter the Play Mode
4. Wait until the “EnemyBody“ shoots a white bullet (happens after around 2 seconds)
5. Observe the crash

Reproducible with: 2021.3.35f1, 2022.2.0a7
No reproducible with: 2022.2.0a9, 2022.3.20f1, 2023.2.12f1, 2023.3.0b9
Couldn’t test with: 2022.2.0a8 (crashes on a different stack trace while opening the project)

Reproducible on: Windows 11 (10.0.22631) (user’s), Windows 10 (22H2)
Not reproducible on: No other environments tested

Notes:

* Not reproducible in Player
* Crash only occurs when the “Rigidbody 2D“ Component is enabled on both “PlayerBody“ and “EnemyBody“ GameObjects
* Crash only occurs if both “Capsule Collider 2D“ and “Enemy Behaviour (Script)“ Components are enabled on the “EnemyBody“ GameObject
* Crash only occurs if all three “Bullet Projectile“, “Gun“ and “Player“ parameters are set. If either of them is empty, the crash doesn’t occur

First few lines of stack trace:
0x00007ff684056268 (Unity) PhysicsManager2D::Simulate
0x00007ff68405279f (Unity) PhysicsManager2D::FixedUpdate
0x00007ff6840528e6 (Unity) `PhysicsManager2D::Initialize'::`2'::FixedUpdatePhysics2DFixedUpdateRegistrator::Forward
0x00007ff683643d3a (Unity) ExecutePlayerLoop
0x00007ff683643ec6 (Unity) ExecutePlayerLoop

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.