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
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0a16