Description

Geometry Scripting plugin isn't available for 4.27.2, and the behavior is the same 5.0.1.

Crash while using Geometry Scripting to add an Array of Vector 2D data to 'Append Buffers to Mesh' node UV0 input pin.

Steps to Reproduce
  1. Create or open any project
  2. Enable the Geometry Script plugin then restart the editor
  3. Create a new Blueprint Class derived from the GenerateDynamicMeshActor
  4. In the Blueprint's Event Graph drag off Event Begin Play then create a 'Get Dynamic Mesh(DynamicMeshComponent)' node
  5. Drag off the Return Value output pin then create an 'Append Buffers to Mesh' node
  6. Right click the Buffers input pin then select Split Structure Pin
  7. Right click and promote to a variable Buffers Vertices, Buffers UV0, and Buffers Triangles.
  8. Compile the Blueprint
  9. Add these elements to the Buffers Vertices array:
    1. 0.0, 0.0, 0.0
    2. 0.0, 10.0, 0.0
    3. 10.0, 10.0, 0.0
    4. 10.0, 0.0, 0.0
  10. Add these elements to the Buffers UV0 array:
    1. 0.0, 0.0
    2. 0.0, 1.0
    3. 1.0, 1.0
    4. 1.0, 0.0
  11. Add these elements to the Buffers Triangles array:
    1. 0, 1, 2
    2. 2, 3, 0
  12. Compile, save, and close the blueprint
  13. Place the Actor in the scene then play in editor

Results:
Editor crashes with an Assertion

Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 691] Array index out of bounds: 0 from an array of size 0
Callstack
Error: === Critical error: ===
Error: 
Error: Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\build\++UE5\Sync\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 691] 
Error: Array index out of bounds: 0 from an array of size 0
Error: 
Error: 
Error: [Callstack] 0x00007ffef5fb1cf9 UnrealEditor-GeometryScriptingCore.dll!<lambda_b4cb582b9c2659008bff11e585ba2df5>::operator()() [D:\build\++UE5\Sync\Engine\Plugins\Experimental\GeometryScripting\Source\GeometryScriptingCore\Private\MeshBasicEditFunctions.cpp:512]
Error: [Callstack] 0x00007ffeee99fe75 UnrealEditor-GeometryFramework.dll!UDynamicMesh::EditMeshInternal() [D:\build\++UE5\Sync\Engine\Source\Runtime\GeometryFramework\Private\UDynamicMesh.cpp:141]
Error: [Callstack] 0x00007ffeee99fd08 UnrealEditor-GeometryFramework.dll!UDynamicMesh::EditMesh() [D:\build\++UE5\Sync\Engine\Source\Runtime\GeometryFramework\Private\UDynamicMesh.cpp:129]
Error: [Callstack] 0x00007ffef5fc29cc UnrealEditor-GeometryScriptingCore.dll!UGeometryScriptLibrary_MeshBasicEditFunctions::AppendBuffersToMesh() [D:\build\++UE5\Sync\Engine\Plugins\Experimental\GeometryScripting\Source\GeometryScriptingCore\Private\MeshBasicEditFunctions.cpp:548]
Error: [Callstack] 0x00007ffef6036c33 UnrealEditor-GeometryScriptingCore.dll!UGeometryScriptLibrary_MeshBasicEditFunctions::execAppendBuffersToMesh() [D:\build\++UE5\Sync\Engine\Plugins\Experimental\GeometryScripting\Intermediate\Build\Win64\UnrealEditor\Inc\GeometryScriptingCore\MeshBasicEditFunctions.gen.cpp:288]
Error: [Callstack] 0x00007fff0e31a75a UnrealEditor-CoreUObject.dll!UObject::execCallMathFunction() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:945]
Error: [Callstack] 0x00007fff0e31cd2f UnrealEditor-CoreUObject.dll!UObject::execLetObj() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:2692]
Error: [Callstack] 0x00007fff0e2e2e11 UnrealEditor-CoreUObject.dll!ProcessLocalScriptFunction() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1082]
Error: [Callstack] 0x00007fff0e2b922e UnrealEditor-CoreUObject.dll!ProcessScriptFunction<void (__cdecl*)(UObject *,FFrame &,void *)>() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:912]
Error: [Callstack] 0x00007fff0e2e29ff UnrealEditor-CoreUObject.dll!ProcessLocalFunction() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1143]
Error: [Callstack] 0x00007fff0e2e2e11 UnrealEditor-CoreUObject.dll!ProcessLocalScriptFunction() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1082]
Error: [Callstack] 0x00007fff0e2e2124 UnrealEditor-CoreUObject.dll!UObject::ProcessInternal() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:1170]
Error: [Callstack] 0x00007fff0e0bbc07 UnrealEditor-CoreUObject.dll!UFunction::Invoke() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\Class.cpp:5912]
Error: [Callstack] 0x00007fff0e2e1717 UnrealEditor-CoreUObject.dll!UObject::ProcessEvent() [D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\ScriptCore.cpp:2003]
Error: [Callstack] 0x00007fff0ebb0244 UnrealEditor-Engine.dll!AActor::ProcessEvent() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:1030]
Error: [Callstack] 0x00007fff0eb79eb6 UnrealEditor-Engine.dll!AActor::BeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:3909]
Error: [Callstack] 0x00007fff0eb84e3f UnrealEditor-Engine.dll!AActor::DispatchBeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\Actor.cpp:3849]
Error: [Callstack] 0x00007fff1097ec92 UnrealEditor-Engine.dll!AWorldSettings::NotifyBeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\WorldSettings.cpp:283]
Error: [Callstack] 0x00007fff0f4b9e21 UnrealEditor-Engine.dll!AGameStateBase::HandleBeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\GameStateBase.cpp:205]
Error: [Callstack] 0x00007fff108a8238 UnrealEditor-Engine.dll!UWorld::BeginPlay() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\World.cpp:4908]
Error: [Callstack] 0x00007fff0f474725 UnrealEditor-Engine.dll!UGameInstance::StartPlayInEditorGameInstance() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\GameInstance.cpp:500]
Error: [Callstack] 0x00007fff0bdc9898 UnrealEditor-UnrealEd.dll!UEditorEngine::CreateInnerProcessPIEGameInstance() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:3052]
Error: [Callstack] 0x00007fff0bdfec66 UnrealEditor-UnrealEd.dll!UEditorEngine::OnLoginPIEComplete_Deferred() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1568]
Error: [Callstack] 0x00007fff0bdca342 UnrealEditor-UnrealEd.dll!UEditorEngine::CreateNewPlayInEditorInstance() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1830]
Error: [Callstack] 0x00007fff0be1d42a UnrealEditor-UnrealEd.dll!UEditorEngine::StartPlayInEditorSession() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:2798]
Error: [Callstack] 0x00007fff0be20c37 UnrealEditor-UnrealEd.dll!UEditorEngine::StartQueuedPlaySessionRequestImpl() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1148]
Error: [Callstack] 0x00007fff0be20521 UnrealEditor-UnrealEd.dll!UEditorEngine::StartQueuedPlaySessionRequest() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:1051]
Error: [Callstack] 0x00007fff0b7bdcb3 UnrealEditor-UnrealEd.dll!UEditorEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1665]
Error: [Callstack] 0x00007fff0c14a666 UnrealEditor-UnrealEd.dll!UUnrealEdEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:474]
Error: [Callstack] 0x00007ff6ae1e82f6 UnrealEditor.exe!FEngineLoop::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5215]
Error: [Callstack] 0x00007ff6ae200d9c UnrealEditor.exe!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:183]
Error: [Callstack] 0x00007ff6ae200e8a UnrealEditor.exe!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:147]
Error: [Callstack] 0x00007ff6ae203c4d UnrealEditor.exe!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:283]
Error: [Callstack] 0x00007ff6ae215564 UnrealEditor.exe!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:330]
Error: [Callstack] 0x00007ff6ae218736 UnrealEditor.exe!__scrt_common_main_seh() [d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
Error: [Callstack] 0x00007fff8d0f7c24 KERNEL32.DLL!UnknownFunction []
Error: [Callstack] 0x00007fff8ea0d721 ntdll.dll!UnknownFunction []

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - LD & Modeling - Modeling Tools
Affects Versions5.0.2
Target Fix5.0.3
Fix Commit20644771
Main Commit20656849
Release Commit20644771
CreatedJun 13, 2022
ResolvedJun 15, 2022
UpdatedJan 25, 2023