Search Issue Tracker
Fixed in 2020.2.X
Votes
0
Found in
2020.2.0a3
2020.2.0a11
Issue ID
1251783
Regression
Yes
Crash when script has RequireComponent(typeof(NavMeshAgent)) attribute but GameObject doesn't have NavMeshAgent Component
How to reproduce:
1. Open the attached "case_1251783.zip" project
2. Load "Test" scene
-- Observe the crash
Reproducible with: 2020.2.0a3, 2020.2.0a13
Not reproducible with: 2018.4.23f1, 2019.3.16f1, 2019.4.0f1, 2020.1.0b11 2020.2.0a2
First lines of the stack trace:
0x00007FF71F458479 (Unity) Transform::GetTransformAccess
0x00007FF71FB72F54 (Unity) NavMeshAgent::SmartReset
0x00007FF71F1B593F (Unity) InitializeComponentCreatedFromCode
0x00007FF71F1AFBFC (Unity) AddComponentUnchecked
0x00007FF71F1AF7FA (Unity) AddComponent
<...>
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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0a16