Description

Ran into a crash when trying to programmatically add foliage to a large WP level with some unloaded IFAs. 

Steps to Reproduce
  1. In a World Partition level, unload all the Instanced Foliage Actors via the Outliner
  2. Via an Editor Utility Blueprint or Widget, run the AddInstances function on the Editor World to add a foliage instance of whatever FoliageType you have available. If all your IFAs are unloaded, you should just need to pass in a single transform at 0,0,0. 

 

Callstack
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000000000005f0
UnrealEditor_Foliage!AInstancedFoliageActor::AddFoliageType() [D:\UE5\Engine\Source\Runtime\Foliage\Private\InstancedFoliage.cpp:3750]
UnrealEditor_Foliage!AInstancedFoliageActor::AddInstances() [D:\UE5\Engine\Source\Runtime\Foliage\Private\InstancedFoliage.cpp:4982]
UnrealEditor_Foliage!AInstancedFoliageActor::execAddInstances() [D:\UE5\Engine\Intermediate\Build\Win64\UnrealEditor\Inc\Foliage\UHT\InstancedFoliageActor.gen.cpp:38]
UnrealEditor_CoreUObject!UObject::execCallMathFunction() [D:\UE5\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1069]
UnrealEditor_CoreUObject!ProcessLocalScriptFunction() [D:\UE5\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1203]
UnrealEditor_CoreUObject!UObject::ProcessInternal() [D:\UE5\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1300]
UnrealEditor_CoreUObject!UFunction::Invoke() [D:\UE5\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:6411]
UnrealEditor_CoreUObject!UObject::ProcessEvent() [D:\UE5\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:2131]
UnrealEditor_Engine!FLatentActionManager::TickLatentActionForObject() [D:\UE5\Engine\Source\Runtime\Engine\Private\LatentActionManager.cpp:314]
UnrealEditor_Engine!FLatentActionManager::ProcessLatentActions() [D:\UE5\Engine\Source\Runtime\Engine\Private\LatentActionManager.cpp:232]
UnrealEditor_Engine!UWorld::Tick() [D:\UE5\Engine\Source\Runtime\Engine\Private\LevelTick.cpp:1557]
UnrealEditor_UnrealEd!UEditorEngine::Tick() [D:\UE5\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1695]
UnrealEditor_UnrealEd!UUnrealEdEngine::Tick() [D:\UE5\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:519]
UnrealEditor!FEngineLoop::Tick() [D:\UE5\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5812]
UnrealEditor!GuardedMain() [D:\UE5\Engine\Source\Runtime\Launch\Private\Launch.cpp:188]
UnrealEditor!GuardedMainWrapper() [D:\UE5\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:107]
UnrealEditor!LaunchWindowsStartup() [D:\UE5\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:244]
UnrealEditor!WinMain() [D:\UE5\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:284]
UnrealEditor!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-194345 in the post.

0
Login to Vote

Unresolved
CreatedAug 31, 2023
UpdatedFeb 13, 2024
View Jira Issue