EQS crashes editor on "Add Generated Vector" node in custom generator

In the current version (4.13), inside custom generators, calling Add Generated Vector causes a crash when the game tries to run the generator.

The settings are set so that the type is “Point”.

I am sure it is this node because I unhooked it and the generator runs without crashing.

This is the crash that happens:

`Assertion failed: GetDefault()->GetValueSize() == sizeof(TypeValue) [File:D:\Build++UE4+Release-4.13+Compile\Sync\Engine\Source\Runtime\AIModule\Classes\EnvironmentQuery/EnvQueryTypes.h] [Line: 859]

UE4Editor_Core!FDebug::AssertFailed() [d:\build++ue4+release-4.13+compile\sync\engine\source\runtime\core\private\misc\outputdevice.cpp:421]
UE4Editor_AIModule!FEnvQueryInstance::AddItemData() [d:\build++ue4+release-4.13+compile\sync\engine\source\runtime\aimodule\classes\environmentquery\envquerytypes.h:860]
UE4Editor_AIModule!UEnvQueryGenerator_BlueprintBase::AddGeneratedVector() [d:\build++ue4+release-4.13+compile\sync\engine\source\runtime\aimodule\private\environmentquery\generators\envquerygenerator_blueprintbase.cpp:54]
UE4Editor_AIModule!UEnvQueryGenerator_BlueprintBase::execAddGeneratedVector() [d:\build++ue4+release-4.13+compile\sync\engine\source\runtime\aimodule\classes\environmentquery\generators\envquerygenerator_blueprintbase.h:15]
UE4Editor_CoreUObject!UFunction::Invoke() [d:\build++ue4+release-4.13+compile\sync\engine\source\runtime\coreuobject\private\uobject\class.cpp:4280]
UE4Editor_CoreUObject!UObject::CallFunction() [d:\build++ue4+release-4.13+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:697]
UE4Editor_CoreUObject!UObject::ProcessInternal() [d:\build++ue4+release-4.13+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:922]
UE4Editor_CoreUObject!UFunction::Invoke() [d:\build++ue4+release-4.13+compile\sync\engine\source\runtime\coreuobject\private\uobject\class.cpp:4280]
UE4Editor_CoreUObject!UObject::ProcessEvent() [d:\build++ue4+release-4.13+compile\sync\engine\source\runtime\coreuobject\private\uobject\scriptcore.cpp:1305]
UE4Editor_AIModule!UEnvQueryGenerator_BlueprintBase::DoItemGeneration() [d:\build++ue4+release-4.13+compile\sync\engine\intermediate\build\win64\ue4editor\ `

Hello,

I’ve attempted to reproduce this issue in a clean project, but have been unable to do so. Could you please provide the exact steps I’ll need to follow to reproduce it in a clean project, as it’s possible I’m missing a step?

Ok, sure. First, make an EQS Pawn and place it in the map. Then make a new EQS generator based on Env Query Generator Blueprint Base. Inside this Generator, Add this code:

. After that, make a new Environment query, and have it use that test. Set the two variables created in the generator to 10 for both. The context should be querier and the generated item type should be points. It shouldn’t need tests to cause the crash but if it does, we used Project with score only, geometry trace and bool match = false, followed by an Overlap: Box with a 1000 x and 1000 y and 1 z, -50 z offfset, WorldDynamic overlap channel and bool match = false. Then, on the EQS pawn in the map, use this new Query we made as it’s query, and then drag it around in the map to update the query. It should crash the editor. This happens in the game as well, if the query is used at runtime.

Hello,

I’ve been able to reproduce the crash, and have entered a report, which you can track here: Unreal Engine Issues and Bug Tracker (UE-35735)

Thank you for your report.

Have a great day!