When "Set Avoidance Enabled" is run in Construction Script Engine crashes since 4.6 and 4.6.1

Hey, when I have the Node “Set Avoidance Enabled” (target is the character movement component) in the construction script of a character, the engine crashes on compile and on clicking of the “components” tab of the actor (and all of its childs which are running the parent construction script). When “Enabled” is not checked, it doesn’t crash, but when its checked, engine crashes.

I had this problem with 4.6 and since I submitted the crash report at least 10 times I thought it would not be necessary to post this on answerhub, but unfortunately it still is not fixed in 4.6.1… So please fix this, I don’t want to use 4.5.1 forever (there I have no problem).

MachineId:C093024B4F8D72EA90A2EBB7201E91B6
EpicAccountId:

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

UE4Editor_Engine + 2097124 bytes
UE4Editor_Engine + 9699909 bytes
UE4Editor_Engine + 9949529 bytes
UE4Editor_Engine + 2207645 bytes
UE4Editor_Engine + 2303444 bytes
UE4Editor_CoreUObject + 563956 bytes
UE4Editor_CoreUObject + 1348671 bytes
UE4Editor_CoreUObject + 1471421 bytes
UE4Editor_CoreUObject + 1477214 bytes
UE4Editor_CoreUObject + 1350042 bytes
UE4Editor_CoreUObject + 1477214 bytes
UE4Editor_CoreUObject + 563956 bytes
UE4Editor_CoreUObject + 1475014 bytes
UE4Editor_Engine + 1640529 bytes
UE4Editor_Engine + 1442437 bytes
UE4Editor_UnrealEd + 10072090 bytes
UE4Editor_UnrealEd + 10045544 bytes
UE4Editor_UnrealEd + 9881715 bytes
UE4Editor_UnrealEd + 10046107 bytes
UE4Editor_UnrealEd + 9881715 bytes
UE4Editor_Kismet + 727159 bytes
UE4Editor_Kismet + 992849 bytes
UE4Editor_Kismet + 1007926 bytes
UE4Editor_Slate + 588774 bytes
UE4Editor_Slate + 1535133 bytes
UE4Editor_Slate + 1030727 bytes
UE4Editor_Slate + 1037049 bytes
UE4Editor_Slate + 1435577 bytes
UE4Editor_Slate + 2116506 bytes
UE4Editor_Slate + 2296435 bytes
UE4Editor_Slate + 432060 bytes
UE4Editor_Slate + 160583 bytes
UE4Editor_Slate + 832224 bytes
UE4Editor_Slate + 770598 bytes
UE4Editor_Core + 2484713 bytes
UE4Editor_Core + 2400763 bytes
UE4Editor_Core + 2489275 bytes
UE4Editor_Core + 2387186 bytes
user32 + 105425 bytes
user32 + 104666 bytes
UE4Editor_Core + 2490486 bytes
UE4Editor!FEngineLoop::Tick() + 3434 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.6\engine\source\runtime\launch\private\launchengineloop.cpp:2193]
UE4Editor!GuardedMain() + 479 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.6\engine\source\runtime\launch\private\launch.cpp:131]
UE4Editor!GuardedMainWrapper() + 26 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.6\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor!WinMain() + 249 bytes [d:\buildfarm\buildmachine_++depot+ue4-releases+4.6\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
UE4Editor!__tmainCRTStartup() + 329 bytes [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]

It should not be crashing, I’ll look into it, but I’ll also mark SetAvoidanceEnabled as unsafe to be called in ConstructionScript since it is unsafe to be called there.

Why do you need to call it at that point anyway? The problem is that ConstructionScript is an editor-time thing, not gameplay, and SetAvoidanceEnabled is gameplay related. Use EventBeginPlay instead.

BTW, if you have problems, crashes, whatnot, post it on AnswerHub. I’ve no idea who’s processing the submitted crash reports, but I know do get notifies about answerhub threads tagged with AI tags :slight_smile:

Cheers,

–mieszko