Description

The editor will crash after calling Move To Location on an AI Pawn that is using a DetourCrowdAIController

Steps to Reproduce
  1. Open the editor
  2. Create a new Top Down Project
  3. Create a new DetourCrowdAIController
  4. Create a new Pawn
  5. Add a Floating Pawn Movement component to the Pawn
  6. Set the Pawn's AI Controller to the DetourCrowd controller created earlier
  7. On Begin Play, call MoveToLocation using GetRandomReachablePointInRadius as the Location and GetAIController to plug into the Controller pin
  8. Place the pawn in the level
  9. PIE

Result: Editor crashes

Alternate Repro w/ Project:

  1. Open the attached project
  2. PIE

Result: Editor crashes

Callstack

Access violation - code c0000005 (first/second chance not available)

UE4Editor_AIModule!UCrowdFollowingComponent::UpdateCachedDirections() [d:\sean.flint_z5610_streammain\engine\source\runtime\aimodule\private\navigation\crowdfollowingcomponent.cpp:335]
UE4Editor_AIModule!UCrowdFollowingComponent::ApplyCrowdAgentVelocity() [d:\sean.flint_z5610_streammain\engine\source\runtime\aimodule\private\navigation\crowdfollowingcomponent.cpp:389]
UE4Editor_AIModule!UCrowdManager::ApplyVelocity() [d:\sean.flint_z5610_streammain\engine\source\runtime\aimodule\private\navigation\crowdmanager.cpp:799]
UE4Editor_AIModule!UCrowdManager::Tick() [d:\sean.flint_z5610_streammain\engine\source\runtime\aimodule\private\navigation\crowdmanager.cpp:294]
UE4Editor_Engine!UNavigationSystem::Tick() [d:\sean.flint_z5610_streammain\engine\source\runtime\engine\private\ai\navigation\navigationsystem.cpp:890]
UE4Editor_Engine!UWorld::Tick() [d:\sean.flint_z5610_streammain\engine\source\runtime\engine\private\leveltick.cpp:1334]
UE4Editor_UnrealEd!UEditorEngine::Tick() [d:\sean.flint_z5610_streammain\engine\source\editor\unrealed\private\editorengine.cpp:1643]
UE4Editor_UnrealEd!UUnrealEdEngine::Tick() [d:\sean.flint_z5610_streammain\engine\source\editor\unrealed\private\unrealedengine.cpp:396]
UE4Editor!FEngineLoop::Tick() [d:\sean.flint_z5610_streammain\engine\source\runtime\launch\private\launchengineloop.cpp:3215]
UE4Editor!GuardedMain() [d:\sean.flint_z5610_streammain\engine\source\runtime\launch\private\launch.cpp:166]
UE4Editor!GuardedMainWrapper() [d:\sean.flint_z5610_streammain\engine\source\runtime\launch\private\windows\launchwindows.cpp:134]
UE4Editor!WinMain() [d:\sean.flint_z5610_streammain\engine\source\runtime\launch\private\windows\launchwindows.cpp:210]
UE4Editor!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:253]
kernel32
ntdll

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - AI
Affects Versions4.154.164.18
Target Fix4.17
Fix Commit3536642
Main Commit3555226
Release Commit3536642
CreatedJul 5, 2017
ResolvedJul 13, 2017
UpdatedApr 27, 2018