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

AI Navigation

-

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
<...>

  1. Resolution Note (fix version 2020.2):

    Fixed in: 2020.2.0a16

Comments (1)

  1. friuns

    Jan 02, 2021 02:45

    lol they fixed it by creating new bugs :D

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.